Jan 18, 2018
重新对齐文本到固定长度
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
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
首先通过 homebrew 安装:
brew install neovim
然后安装 python 支持,好多 vim 插件都需要
pip install neovim
May 30, 2017
To use go to definition and other advanced IDE feature, we need to generate tag files for vim to figure out where to find the functions or variables.
To generate a tag file
By default, the generate tag file will be located at ./tags directory, we need to …
May 29, 2017
Vim command of g
gd 本地定义
gD 全局声明
g* 搜索
g# 反向搜索
gf 打开文件
g] 跳到tag定义的地方
Ctrl-O
to go back to files
Ctrl-I
to go to new files