Skip to content

Instantly share code, notes, and snippets.

@madskjeldgaard
Last active November 5, 2018 19:47
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 madskjeldgaard/5f0c21e5e1ca2117cef547dcfa024676 to your computer and use it in GitHub Desktop.
Save madskjeldgaard/5f0c21e5e1ca2117cef547dcfa024676 to your computer and use it in GitHub Desktop.
change vim keys for scvim
" Put these in your .vimrc to change <F5>, <F6> and <F12> to something else, reload VIM or resource your .vimrc (by running :source $MYVIMRC in VIM) and then it should work
au Filetype supercollider nnoremap <buffer> <leader>a :call SClang_block()<CR>
au Filetype supercollider inoremap <buffer> <leader>a :call SClang_block()<CR>a
au Filetype supercollider vnoremap <buffer> <leader>a :call SClang_line()<CR>
au Filetype supercollider vnoremap <buffer> <leader>b :call SClang_line()<CR>
au Filetype supercollider nnoremap <buffer> <leader>b :call SClang_line()<CR>
au Filetype supercollider inoremap <buffer> <leader>b :call SClang_line()<CR>a
au Filetype supercollider nnoremap <buffer> <leader>. :call SClangHardstop()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment