Skip to content

Instantly share code, notes, and snippets.

@scampi
Last active September 26, 2017 08: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 scampi/2c633ac3533b1afc0099e2ea25775040 to your computer and use it in GitHub Desktop.
Save scampi/2c633ac3533b1afc0099e2ea25775040 to your computer and use it in GitHub Desktop.
VIM stuff

Replace an unknown character

Sessions

  • :mksession
  • vim -S

https://bocoup.com/weblog/sessions-the-vim-feature-you-probably-arent-using

Saved search

  • add source regexlist.vim to init.vim
  • edit regexlist and add following olet MyRegExName = 'something'
  • do a search: /<C-R>=MyRegExName<CR><CR>

http://stackoverflow.com/questions/2201174/save-commonly-used-regex-patterns-in-vim

Edit a remote file

  • vim scp://user@host/path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment