Paste text in visual mode without yank
http://stackoverflow.com/a/5093286/2609042
xnoremap p pgvy
cheetsheet vim-cheetsheet
在 VIM 中格式化压缩后的 JSON 文件: %!python -m json.tool
https://robots.thoughtbot.com/vim-splits-move-faster-and-more-naturally
install
./configure --prefix=/usr --with-features=huge make sudo make install
vim will be install at /usr/bin/vim
- incremental number sequence: http://stackoverflow.com/questions/9903660/vi-how-to-generate-a-number-sequence
vsp open file from relative path: :expand('%')
markdown table align https://github.com/junegunn/vim-easy-align
Learn Vimscript the hard way
Chapter 1
-
echo
andechom
command -
use
"
to comment a line, but it doesn't always work. -
use
!
postfix to toggle a boolean option -
:set <name>=<value>
set options with values -
use
?
postfix to check what an option is set to - you can set multiple options in one line
:resize splits:
ctrl-w <
, ctrl-w >
, ctrl-w =