GoConqr has a new look! Let us know what you think.

Flashcards

VIM SHORTCUT

Fen Pin INFORMATIQUE English 112 cards

Cards in this deck (112)

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

Information

Description
ALL VIM (terminal text editor) shortcuts you need to know to be a coding ninja
Created by
Fen Pin · Jul 2017
Updated
Jul 25, 2017
Views
37
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?