Vim常用命令案例记录
-
Run bash(e.g. ls) in vim
:!ls
-
Window's movement
Ctrl-w + h/j/k/l
move the cursor to the left, below, above, or right window respectivelyCtrl-w + ←/↓/↑/→
jusk like last item
- Compare diff of two text
vimdiff <(echo "str1") <(echo "str2")