本篇記錄一下 Linux vim 文字編輯器的常用快捷鍵,特別是trace code時,善用快捷鍵會快很多,效率大幅提升。
名稱 | Linux | 備註 |
---|---|---|
Go to Definition | Ctrl +] |
跳至定義處(要配合用ctags) |
Navigate Back | Ctrl +t |
返回 |
Retrace your movements in file in backwards | Ctrl +o |
往後 |
Retrace your movements in file in forwards. | Ctrl +i |
往前 |
Find Usage / Find Reference | :cs find s |
要配合用cscope |
參考
In vim, how do I go back to where I was before a search? - Stack Overflow
https://stackoverflow.com/questions/53911/in-vim-how-do-i-go-back-to-where-i-was-before-a-search
VIM: Jump Back To Previous or Last Cursor Position - nixCraft
https://www.cyberciti.biz/faq/unix-linux-vim-go-back-to-last-cursor-position/