~/snippets/neovim
Published on

Vim/Neovim

63 words1 min read

To remove all commented lines in a file

:g/^\s*#/d
  • ^ Move to first non-blank character of the line

  • g_ Move the last non-blank character of the line

  • ~ Toggle case of current character