Skip to content

Instantly share code, notes, and snippets.

@stonecauldron
Created March 8, 2015 18:18
Show Gist options
  • Select an option

  • Save stonecauldron/8c67586759a60fa9e945 to your computer and use it in GitHub Desktop.

Select an option

Save stonecauldron/8c67586759a60fa9e945 to your computer and use it in GitHub Desktop.
#!/bin/sh
executable=$1
cd "$executable"
echo "set makeprg=make\ -C\ ../build" > .vimrc
echo "nnoremap <F4> :make!<cr>" >> .vimrc
echo "nnoremap <F5> :!cd ../build/${executable};./${executable}<cr>" >> .vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment