Reading 7 Habits for Effective Text Editing 2.0
7 Habits For Effective Text Editing 2.0 - YouTube
by Bram Moolenaar , Vim的作者談有效率的編輯 , Slide Here
Task list: 😄
概述
7 個增進文字處理效率的好習慣
Slides
The problem
- 好的工具是你能熟練使用的程式,能發揮它 100% 的功用比什麼都重要。
- Don’t try to learn everything , just learn what you need.
三個基本步驟
發現問題之後,精進的頻驟可以是:
- Find inefficiency 找到沒效率的地方
- Find a quicker way 研究快捷的方法
- Make it a habbit 養成習慣
See Also
- “The 7 habits of highly effective people” - Stephen R. Covey
Habit 1: Moving around quickly
search
- 設定
set hlsearch
: 找到的關鍵字高亮度
*
: 直接找遊標上的字
- 設定 Folding 可以把用不到的資訊先隱藏起來
Habit 2: Don’t type it twice
auto complete:
Ctrl-N,Ctrl-P
: 可以快速完成有輸入過的字
omni-colpletion
: complete from language references
Habit 3: Fix it when it’s wrong
自動修正,spell correction:
- 打開拼字檢查
iabbrev teh the
: 可以把容易打錯的,設為自動修正
Habit 4: A file seldom comes alone
使用 ctags 之類的軟體,查語言的manual
quickfix
window
gf
Goto file
[I
to search keyword in include files
Habit 5: Let’s work together
整合功能程式? email, office , pdf document
Habit 6: Text is structured
寫簡單的程式,整理有規則的文件,如: log
Habit 7: Sharpen the saw
- 時常整理你常用到的指令
- Learn from what you did 從作中學
- 其他內容:
- folding
- automatic indenting
- Plugins (generic and filetype specific)
- edit files over a network
- advanced scripting
Summary
Step 1: Detect inefficiency
- Find out what you waste time on
Step 2: Find a quicker way
- read the on-line help
- read the quick reference, books, etc.
- ask friends and colleagues
- search the internet
- do it yourself
Step 3: Make it a habit
- do it
- keep on improving
And
- 不要只用最基本的功能,也不需要細讀使用手冊,
- 能在日常的使用中,熟悉編輯器的功能最好。
- Don’t try to learn everything , just learn what you need.
Q and A
pass
參考連結
- 7 Habits For Effective Text Editing 2.0 - YouTube