Skip to content

Latest commit

 

History

History
118 lines (116 loc) · 5.13 KB

Vim.md

File metadata and controls

118 lines (116 loc) · 5.13 KB

Vim/NeoVim configuration

Installed plugins

Customized key binding

  • gi: go insert mode in the last insert location
  • C-d, C-u: page up, page down
  • C-x C-l: line completion
  • C-o, C-i: jump back, jump forward (out/in)
  • ds', ds": remove quotes (' or ")
  • AMOUNT C-a: add AMOUNT to number under cursor, if no AMOUNT specified then add one (or cycle through words)
  • AMOUNT C-x: subtract AMOUNT to number under cursor, if no AMOUNT specified then subtract one (or cycle through words)
  • ,m: switch mouse on/off
  • ,l: switch cursor line on/off
  • ,n: switch line numbers on/off
  • ,n: switch relative line numbers on/off
  • -: enter command mode
  • jklñ: left, down, up, right
  • C-w jklñ: go to left, down, up, right panel
  • hj: beginning of the line
  • : end of the line
  • gb: go back
  • ,zz: center de current line in the screen
  • s: jump anywhere typing two characters and then the label
  • zR: open all folds
  • zM: close all folds
  • zi: toggle folds
  • ENTER: open/close folds (in visual mode create a fold)
  • C-h, C-j: move between tabs
  • A-PageUp, A-PageUp: move tab
  • C-t: new tab
  • ,s: clear search
  • ,G: grep in open buffers
  • \: grep
  • +: grep this word
  • ,c: switch showing special characters on/off
  • ,z: hightlight all instances of word under cursor, when idle
  • ,f: open file tree
  • ,F: search file
  • ,B: search buffer
  • ,p: show full filename and path
  • gF: open file under cursor in a horizontal split
  • gFF: open file under cursor in a new tab
  • .: repeat last action and move to the beginning of the edition
  • Y: copy until the end of the line
  • ,p: paste yank
  • qq: start recording macro q
  • q: end recording macro
  • QQ: run macro q
  • F2: switch paste mode on/off
  • gw: swap words
  • gl: append line after next line
  • gL: cut line and paste before this line
  • C-Up,C-Down,C-l, C-k: move line or visual selection up and down
  • ,S: remove spaces at the end of the line
  • gV: select what you just pasted
  • ,v: select until end of the line
  • ,u, ,U: change case of whole word
  • ,", ,', ,(, ,[, ,{: surround word or visual selection with ", ', (), [] or {}
  • ,), ,]: interchange () and []
  • ~: change between lower case, UPPER CASE and Tittle Case
  • SPC t: open/close symbols & tags panel
  • M-F5: show spell checker suggestions
  • C-s: activate spell checker for Spanish
  • C-g: activate spell checker for English
  • M-F6: deactivate spell checker
  • F3: count words of the document
  • ,=: underline word with "=" (Markdown)
  • ,-: underline word with "-" (Markdown)
  • :Goyo: distraction-free writing
  • ,ww: open default VimWiki
  • ,wt: open default VimWiki in a new tab
  • ,ws: select VimWiki to open
  • ,wd: delete current VimWiki file
  • ,wr: rename current VimWiki file
  • ,ev: edit vimrc
  • ,sv: run vimrc