diff --git a/vim/vimrc b/vim/vimrc index a50c883..2e323b5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,9 @@ set nocompatible +source ~/.vim/ui.vim +source ~/.vim/autocommands.vim +source ~/.vim/bundles.vim + " For when you forget to sudo.. Really Write the file. cmap w!! w !sudo tee % >/dev/null @@ -10,15 +14,12 @@ set shell=zsh map rt :!ctags --extra=+f -R * set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/ +" Theme development help cmap :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' \ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" -let g:ragtag_global_maps = 1 - " Align cucumber tables -inoremap :call align()a - function! s:align() let p = '^\s*|\s.*\s|\s*$' if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) @@ -29,28 +30,13 @@ function! s:align() call search(repeat('[^|]*|',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) endif endfunction - -" Prevents 'DiscretionaryEnd' being inserted when pressing in -" insert mode on new files. Blame SuperTab -let g:SuperTabCrMapping = 0 -let g:SuperTabDefaultCompletionType = "context" - -" snipMate config -let g:snips_author = 'Bodaniel Jeanes' - -"clojure -let vimclojure#ParenRainbow=1 -autocmd FileType clojure AutoCloseOff +inoremap :call align()a " Quick editing of common dot-files map vv :edit $MYVIMRC map gg :edit $MYGVIMRC map .. :cd ~/.config:enew -source ~/.vim/ui.vim -source ~/.vim/autocommands.vim -source ~/.vim/bundles.vim - if filereadable(expand('~/.vimrc.local')) source ~/.vimrc.local endif