Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 891 Bytes

vimtips.md

File metadata and controls

48 lines (33 loc) · 891 Bytes

vim tips:

  • <c-^>

  • vimdiff

  • vim ins completion

  • vip, or (v) select inside paragraph

Insert mode:

  • delete word in insert mode

  • delete whoel line

  • insert from register " # insert the last yank/delete % # insert file name / # insert last search term : # insert last command line

  • do one normal mode

  • helpgrep

  • navigating help files:

  • search and replace whole project:

  • vimgrep then quickfix list

  • cdo

Normal mode:

  • gv e-selects the last visual selection.
  • gi switches Vim to insert mode at the position where you last left insert mode
  • g; go to last edit
  • close all windows including quickfix

Visual mode:

  • o goes to the end of selections

Telescope: C-? for help C-n, C-p -> better than arrow keys C-c, close

TODO: hotkey to close quickfix window?