Karteikarten
VIM SHORTCUT
Karten in diesem Stapel (112)
- 1:helpopen help for keyboard
- 2:oopen file
- 3:saveassave a file as
- 4:closeclose current page
- 5Kopen man page for the word under cursor
- 6iinsert before the cursor
- 7hmove cursor to left
- 8jmove cursor down
- 9k" " up
- 10l" " right
- 11H"" top screen
- 12M"" middle of the screen
- 13Iinsert at the beginning of the line
- 14ainsert (append) after the cursor
- 15Ainsert at the end of the line
- 16oappend (open) a new line below the current one
- 17Oappend a new line above the current one
- 18eainsert at the end of the word
- 19escexit insert mode
- 20rreplace
- 21Jjoin line below the current one
- 22ccchange (replace) the entire line
- 23cwchange to the end of the word
- 24c$change to the end of the line
- 25sdelete character and substitute text
- 26Sdelete line and substitute text (as cc)
- 27xptranspose two letters (dlt n paste actually)
- 28uundo
- 29ctrl+rredo
- 30.repeat cmd
- 31yyyank (copy) a line
- 32nbr+yyyank nbr lines
- 33ywyank the characters of the word from the cursor position to the next word
- 34y$yank "till the end of the line
- 35pput
- 36PPut
- 37dddelete
- 38nbr+dddelete (cut actually) nbr of lines
- 39dwdelete the characters of word from the cursor pos to the start of the next word
- 40Ddelete to the end of the line
- 41d$delete to the end of the line
- 42xcut character
- 43:wwrite save the file but don't exit
- 44:w !sudo tee %write the current file using sudo
- 45:wq / :x / ZZwrite and quit
- 46:qquit fails in case of unsaved changed
- 47:q! / ZQquit and throw away unsaved changed
- 48/patrnsearch for patrn
- 49?patternsearch backward for patrn
- 50\vpatrnvery magic patrn non alphanum characters are interpreted as special regex* no escaping needed
- 51>shift text right
- 52<shift text left
- 53yyank marked txt
- 54ddelete marked txt
- 55-switch
- 56vstart visual mode
- 57Vstart linewise visual mode
- 58omove to other end of marked area
- 59ctrl + vstart visual block mode
- 60O (visual mode)move to other corner of block
- 61o (v mode)move to other end of marked area
- 62Lmv cursor to the bottom of the screen
- 63wjump forwards to the start of a word
- 64Wjump forwards to the start of a words that can contains ponctuation
- 65ejump forwards to the end of a word
- 66Ejump forwards to the end of a word that can contain ponctuation
- 67bjumb backward to the start of a word
- 68Bjump backward to a ponctuated word
- 69%move to matching character ( default supported pairs '()';'{}','[]' - use :h matchpairs in vim for more info)
- 700jump 2 the start of the line
- 71^jump to the first non blank character
- 72g_jump to the last non blank character of the line
- 73gggo to the first line of the doc
- 74Ggo to the last line of the doc
- 755Ggo to line five
- 76fxjump to the occurence of characer x
- 77txjump to before next occurence of the character x
- 78(jump to the next §
- 79)jump to the previous §
- 80zzcenter cursor on the screen
- 81Ctrl + bmove back one on full screen
- 82Ctrl + fmove forward one full screen
- 83Ctrl + dmove forward 1/2 a screen
- 84Ctrl + umove back 1/2 a screen
- 85Nbr + movement cmdrepeat the cmd nbr of time
ex : 4j : moves 4 lines down - 86:e fileedit in a new buffer
- 87:bnext /:bngo to next buffer
- 88:bpgo to previous buffer
- 89:bddelete a buffer/close a file
- 90:lslist all open buffers
- 91:sp fileopen a file in a new buffer and split window
- 92:vsp fileopen a file in a new buffer and vertically split window
- 93Ctrls + wssplit window
- 94Ctrl + wwswitch windows
- 95Ctrl + wqquit a window
- 96Ctrl + wvsplit vertically
- 97Ctrl + whmove cursor to the left window
- 98Ctrl + wlmove cursor to the right window (vertical split)
- 99Ctrl + wjmove to the window below (horizontal split)
- 100Ctrl + wkmove cursor to the window above (vertical split)
- 101:tabnewopen a file in a new tab (:tabnew file)
- 102Ctrl + wTmove the current split window into its own tab
- 103gtor :tabnext / :tabn move to the next tab
- 104gTor :tabprev / :tabp move to the previous tab
- 105#gtmobe to the tab nbr #
- 106:tabmove #move current tab to the #th position (indexed from 0)
- 107:tabclose/tabcclose the current tab and all its windows
- 108:tabo/tabonlyclose all tabs except the current one
- 109:tabdo cmdrun the cmd command on all tabs (e.g. :tabdo q - close all the opened tabs)
- 110nrepeat search (patrn) in the same direction
- 111Nrepeat search in the opposite direction
- 112—
Informationen
- Beschreibung
- ALL VIM (terminal text editor) shortcuts you need to know to be a coding ninja
- Erstellt von
- Fen Pin · Jul 2017
- Aktualisiert
- 25 Jul 2017
- Aufrufe
- 37
- Tags
- Bewertung