Yifei Kong

Jan 18, 2018

一些 vim 小技巧

重新对齐文本到固定长度

gq<motion>

check if mapping is replaced

:verbose map <Key>

using map may cause infinite recursion!

force set syntax

# vim: set filetype=javascript

exit

使用 Ctrl-C 而不是esc 使用ZZ而不是:wq

window management

use ctrl-w r to swap pane

folding

{selection}zf or zf{motion} for manual folding

history

Ctrl-O to …

Jun 14, 2017

vim 中的拼写检查

basic usage

:set spell to open, :set nospell to disable, :set spell! to toggle.

]s and [s to go to next and previous spell error. z= to see suggestions, but it's not good. use :nnoremap \s ea<C-X><C-S>

Use set spell to check spellings in vim, if you find …

Jun 09, 2017

May 30, 2017

May 29, 2017