aboutsummaryrefslogtreecommitdiffstats
path: root/.scvimrc
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
committerDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
commit67b0ec5741d327d27afe88783d85fcf2c4c4f204 (patch)
tree4ea47807c5e775927b96eb79933c09fbfcd0468e /.scvimrc
downloaddotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.gz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.bz2
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.xz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.zip
First commit
Diffstat (limited to '.scvimrc')
-rw-r--r--.scvimrc67
1 files changed, 67 insertions, 0 deletions
diff --git a/.scvimrc b/.scvimrc
new file mode 100644
index 0000000..b172bdf
--- /dev/null
+++ b/.scvimrc
@@ -0,0 +1,67 @@
+let g:sclangKillOnExit = 1
+let g:sclangTerm = "urxvt -e"
+"let g:sclangTerm = "tmux send-keys -t 1"
+let g:sclangPipeLoc = "/tmp/sclang-pipe"
+let g:sclangPipeAppPidLoc = "/tmp/sclangpipe_app-pid"
+
+au BufWinEnter,BufNewFile,BufRead *.sc set filetype=supercollider
+au BufWinEnter,BufNewFile,BufRead *.sc let &iskeyword="@,48-57,_,192-255" | runtime ftplugin/supercollider.vim
+au BufWinEnter,BufNewFile,BufRead *.sc set sw=2 ts=2 autoindent "this line can be changed however you like
+
+"sc help files
+au BufWinEnter,BufNewFile,BufRead *.scd set filetype=supercollider
+au BufWinEnter,BufNewFile,BufRead *.scd let &iskeyword="@,48-57,_,192-255,-,|" | runtime ftplugin/supercollider.vim
+au BufWinEnter,BufNewFile,BufRead *.scd set sw=2 ts=2 autoindent "this line can be changed however you like
+
+" ================ Indentation ======================
+
+set autoindent
+set smartindent
+set smarttab
+set shiftwidth=2
+set softtabstop=2
+set tabstop=2
+set expandtab
+
+filetype plugin on
+filetype indent on
+
+" Display tabs and trailing spaces visually
+set list listchars=tab:\ \ ,trail:ยท
+
+set nowrap "Don't wrap lines
+set linebreak "Wrap lines at convenient points
+
+
+"required for matching
+au Filetype supercollider,supercollider_help let b:match_skip = 's:scComment\|scString\|scSymbol'
+au Filetype supercollider,supercollider_help let b:match_words = '(:),[:],{:}'
+
+"indenting if you want it
+"au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc runtime indent/sc_indent.vim
+
+
+"supercollider vim keybindings
+"expand('<cword>') gives current word under cursor without having to yank
+
+au Filetype supercollider,supercollider_help nmap <buffer> K :call SChelp(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help imap <buffer>  :call SChelp(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help nmap <buffer> :call SCdef(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help imap <buffer> :call SCdef(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help nmap <buffer> <F1> :call HelpBrowser(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F1> :call HelpBrowser(expand('<cword>'))<CR>a
+au Filetype supercollider,supercollider_help vmap <buffer> <F1> :call HelpBrowser(expand('<cword>'))<CR>
+au Filetype supercollider,supercollider_help nmap <buffer> <F5> :call SClang_block()<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F5> :call SClang_block()<CR>a
+au Filetype supercollider,supercollider_help vmap <buffer> <F5> :call SClang_send()<CR>
+au Filetype supercollider,supercollider_help vmap <buffer> <F6> :call SClang_send()<CR>
+au Filetype supercollider,supercollider_help nmap <buffer> <F6> :call SClang_send()<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F6> :call SClang_send()<CR>a
+au Filetype supercollider,supercollider_help nmap <buffer> <F7> :call SClang_TempoClock_clear()<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F7> :call SClang_TempoClock_clear()<CR>a
+au Filetype supercollider,supercollider_help nmap <buffer> <F8> :call SClang_free("s")<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F8> :call SClang_free("s")<CR>a
+au Filetype supercollider,supercollider_help nmap <buffer> <F12> :call SClang_thisProcess_stop()<CR>
+au Filetype supercollider,supercollider_help imap <buffer> <F12> :call SClang_thisProcess_stop()<CR>a
+
+"end of scvim (supercollider vim)