Handy Vim shortcuts
- Line Numbers
- Set line number with
- :set nu
- Unset line numbers with
- :set nonu
- Set relative line numbers with
- :set relativenumber.
- Copy selected lines from vim visual mode to system clipboard.
- "+y and then paste it outside vim.
- Make vim paste the content from outside properly.
- :set paste
- unfold code
- zo
- fold code
- zc
No comments:
Post a Comment