https://github.com/mykolaharmash/vim-cheat-sheet
https://github.com/mykolaharmash/vim-cheat-sheet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mykolaharmash/vim-cheat-sheet
- Owner: mykolaharmash
- Created: 2014-02-10T15:04:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T22:20:05.000Z (over 10 years ago)
- Last Synced: 2025-04-04T21:16:50.303Z (6 months ago)
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## VIM cheat sheet
### :Commands
### Visual mode
* :"+y - yank to "+" register to put block in system clipboard#### Buffers
* :bufdo e! - re-read all buffers from disk (e.g. after "git pull")
* :"_d - delete line to "black hole" buffer to note pollute registers#### Tabs
* :tabm i - move tab to i-position (count from 0)#### Plugins
* :CtrlPClearAllCaches - clear cache of CtrlP plugin, if we have new files to search* * *
### Shortcuts
* Ctrl + l - refresh screen
* 0D - delete all text in line
* ^D - delete all text in line starting from first non-blank character
* gg=G - reindent file* * *
### Custom Key Maps
* nmap ,d :b#bd# - switch to previous buffer && close current
* * *
### Usefull configs
* autocmd BufLeave,FocusLost * silent! wall - autosave buffer on focus lost