Skip to content

Instantly share code, notes, and snippets.

@markjlorenz
Last active December 20, 2015 07:39
Show Gist options
  • Select an option

  • Save markjlorenz/6095161 to your computer and use it in GitHub Desktop.

Select an option

Save markjlorenz/6095161 to your computer and use it in GitHub Desktop.
Vim Mappings
" Run app.js and put the output in a new buffer below the current one
:bel new | r !node app.js
" And map it to ",r"
:map ,r :bel new \| r !node app.js <cr>
" And stop warning me about unsaved data
:map ,r :bel new \| setlocal buftype=nofile \| r !node app.js <cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment