More VIM Notes
March 2021
  • q: - opens the command line window. Good for yanking and viewing previous commands

  • :UltiSnipsEdit - opens the ultiSnips file for the current buffers filetype. See which snippets are defined.

The Valuable Dev has the following gems that I’d like to start using.

  • gf - edit the file at the file path under the cursor

  • gx - open the file at the file path under the cursor

  • [m, ]m - move to the start or end of a method

  • @: - repeat the last command

  • :<C-f> - open command history list

  • >> will indent a line. . will repeat the operation, so >>.. would indent a line 3 times.

    You can use this along with a count, which will do the indention for n number of lines (with the current line being the top line). 3>>.. will indent 3 lines 3 blocks to the right.

  • <C-y> - moves screen up one line, and moves the cursor if it would go off the screen

  • <C-e> - moves the screen down one lines, and moves the cursor if the would go off screen

  • <C-f> - move screen down one page, with cursor at top of screen

  • <C-b> - move screen up one page, with cursor at bottom of screen

Vim for Python has some great notes on linting and code completion plugins that I’ve either copied or was more or less doing already.