2010-11-30 12:26:57 +11:00
|
|
|
set nocompatible
|
|
|
|
|
2011-09-21 08:33:32 +10:00
|
|
|
source ~/.vim/ui.vim
|
|
|
|
source ~/.vim/autocommands.vim
|
|
|
|
source ~/.vim/bundles.vim
|
|
|
|
|
2011-12-29 14:00:16 +11:00
|
|
|
" This helps with RVM etc
|
|
|
|
set shell=zsh
|
|
|
|
|
2011-02-21 15:56:13 +11:00
|
|
|
" For when you forget to sudo.. Really Write the file.
|
|
|
|
cmap w!! w !sudo tee % >/dev/null
|
|
|
|
|
2011-12-29 14:00:16 +11:00
|
|
|
" Send visual selection to gist.github.com
|
|
|
|
" Requires gist (brew install gist)
|
|
|
|
vnoremap <leader>G :w !gist -p -t %:e \| pbcopy<cr>
|
2010-12-22 00:14:07 +11:00
|
|
|
|
2010-12-06 13:06:09 +11:00
|
|
|
" CTags
|
|
|
|
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
|
2011-09-21 08:26:27 +10:00
|
|
|
set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/
|
2010-12-06 13:06:09 +11:00
|
|
|
|
2011-11-16 05:27:34 +11:00
|
|
|
" ,w - write file
|
|
|
|
nnoremap <silent> ,w :write<CR>
|
|
|
|
|
2011-12-29 14:00:49 +11:00
|
|
|
set pastetoggle=<Leader>p
|
|
|
|
map <leader>p :set invpaste paste?<CR>
|
2011-11-16 05:27:34 +11:00
|
|
|
|
2011-09-21 08:33:32 +10:00
|
|
|
" Theme development help
|
2011-11-08 17:30:01 +11:00
|
|
|
nmap <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
|
2011-03-24 16:28:27 +11:00
|
|
|
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
|
|
|
|
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
|
|
|
|
|
2011-02-18 12:45:40 +11:00
|
|
|
" Quick editing of common dot-files
|
2011-02-09 00:42:20 +11:00
|
|
|
map <Leader>vv :edit $MYVIMRC<CR>
|
|
|
|
map <Leader>gg :edit $MYGVIMRC<CR>
|
2011-09-21 08:26:27 +10:00
|
|
|
map <Leader>.. :cd ~/.config<CR>:enew<CR>
|
|
|
|
|
2011-01-15 16:32:50 +11:00
|
|
|
if filereadable(expand('~/.vimrc.local'))
|
|
|
|
source ~/.vimrc.local
|
|
|
|
endif
|
2011-02-09 00:42:20 +11:00
|
|
|
|