Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ugovaretto/ab40e3bf9466884f6e4792f1a7f5937e to your computer and use it in GitHub Desktop.
Save ugovaretto/ab40e3bf9466884f6e4792f1a7f5937e to your computer and use it in GitHub Desktop.
Create Vim command executing multiple commands
command! -nargs=0 -complete=command CodeBlock execute '%s/\[code.*\]/```cpp/g | %s/\[\/code.*\]/```/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment