- Working with files:
:edit
- will open file or refresh current file:w
- will write save the file:q
- will close the file
- Multiple windows:
:split
- split window horinzontally:vplit
- split window vertically- Ctrl-w - move to another window
:only
- keep only current section
- Buffers:
:new
- will split window horizontally:vnew
- will split window horizontally:edit
- will open file and create new buffer for it:ls
- will open list of buffers:bd
- will close buffer
- Working with make files:
:make
- compiles code:copen
- opens mini window with errors:cclose
- closes mini window with errors:cw
- toggles mini window with errors
- Register:
:reg
- opens window with all saved information in register"5p
- pastes the fifth element
- Nerd Tree
- Gruvbox(theme)
- vim multiple cursors:
- Ctrl-n - start multicursor:
- Ctrl-n - next
- Ctrl-x - skip
- Ctrl-p - remove
- Alt-n - all matches
- Ctrl-n - start multicursor:
- vim surround
- :cs"'
- :ds"
- emmet vim:
- Ctrl-y, - emmet
- lightline
- vim fugitive
- :Gstatus
- :Gdelete
- :Git
- tabular
- :Tab/
- Ctrl-f
:NERDTreeToggle
- Ctrl-r
:source .vimrc
:PlugInstall
- Ctrl-t
:tabnew
- Ctrl-Up
:tabp
- Ctrl-Down
:tabn
- Ctrl-a
:Gstatus
- Ctrl-h
:tabp
- Ctrl-l
:tabn