Usage Link to heading

  • :vim /pattern/g **/*.java adds matches to quickfix list.
  • :vim /pattern/g src/** means everything in src folder.
  • vimgrep is shortened to vim.
  • **/* means everything.

Quickfix list Link to heading

  • :copen opens quickfix list, can be shortened to :cope
  • :cnext and :cprev, can be shortened to :cn and :cp
  • ctrl-ww moves window
  • :cc <number>

Search and replace project-wide example: Link to heading

  • cdo: s/textToFind/replaceText | update
  • update saves the buffer, instead of typing :w for all the buffers.

Notes: Link to heading

  • unimpaired-vim plugin to use shortcuts like [q to navigate quickfix list.
  • In C, make command already automatically errors into quickfix list.