Skip to content

Instantly share code, notes, and snippets.

@ayubmalik
Last active July 11, 2023 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayubmalik/7df522f1789cb1fb813a9882a93a2c27 to your computer and use it in GitHub Desktop.
Save ayubmalik/7df522f1789cb1fb813a9882a93a2c27 to your computer and use it in GitHub Desktop.
Neovim Cheat Sheet

Neovim cheat sheet

argdo

run substitute on all args

:set hidden
:argdo %s/\a/*/ge

populate argslist with *.txt :args *.txt or command args `ag -g *.txt`

revert all unsaved :argdo edit!

paste last ex command

e.g. :argdo <ctrl-r>

gn visual

e.g. change visual selected cgn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment