Filetype specific formatting & helpdoc

This commit is contained in:
Sonny Bakker 2017-11-03 20:42:22 +01:00
parent 7ca47f91c2
commit 3312476bb3
4 changed files with 5 additions and 15 deletions

52
vim/doc/myhelp.txt Normal file
View file

@ -0,0 +1,52 @@
*myhelp.txt* For Vim version 7.4 Last change: 2014 October 8
*myhelp*
Cheat sheet for vim keybindings
===============================================================================
CONTENTS
1. Normal Mode..................................|myhelp-normal|
2. Insert Mode..................................|myhelp-insert|
3. Visual Mode..................................|myhelp-visual|
4. Extra's .....................................|myhelp-insert|
===============================================================================
1. Normal Mode
- :q Quit vim
- :q! Quit vim without saving
- :qa! Quit all windows without saving
- :w Write to file
- e Move one word forward
- b Move one word backward
- Shift+4 Move to the end of the line
- ^ Move to the beginning of the line
- [[ Move section forward
- ]] Move section backwards
- ]m Move section forward
- [m Move section backwards
- :ls List all buffers
- :b N Open buffer N
- :vert sb N Open buffer in vertical split
- :tabe Edit file in new tab
- gt Switch to next tab
- gT Switch to previous tab
- yy Copy line
- dd Cut line
- p Paste into new line
===============================================================================
2. Insert Mode
- ALT p paste clipboard
===============================================================================
3. Visual Mode
- CTRL v Visual block mode
===============================================================================
4. Extra
- CRTL v + deletion + insert char + escape insert character in selected
line

2
vim/doc/tags Normal file
View file

@ -0,0 +1,2 @@
myhelp myhelp.txt /*myhelp*
myhelp.txt myhelp.txt /*myhelp.txt*