diff --git a/vimrc b/vimrc index 6d331c6..f4a0484 100644 --- a/vimrc +++ b/vimrc @@ -95,7 +95,7 @@ set fuoptions=maxvert,maxhorz else set t_Co=256 - set background=light + " set background=light " bar cursor in insert mode, block cursor in normal node if exists('$TMUX') let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" @@ -187,25 +187,22 @@ " cd change directory to that of current file " d diff current buffer with written file " gb - git blame - " gd - write, diff against HEAD + " gd - write, git diff HEAD " gs - git status - " gw - write, add to index + " gw - write, git add " k fix syntax highlighting - " m open in Marked.app " n line number toggling " p paste from system clipboard " r regen ctags - " s spelling: " sa - add word to dictionary " sn - next misspelling " sp - previous misspelling " ss - toggle spelling - " s? - suggestions - " tc - toggle cursor tracking + " s? - spelling suggestions " tp - toggle paste mode " y yank to system clipboard, follow with normal yank operations + " Y yank to system clipboard, current line " , turn off search highlighting - " _ PLUGIN: intro to tcomment commands, see 'help tcomment-maps' " I always hit this when I mean I, O or J nnoremap K @@ -234,20 +231,10 @@ cnoremap nnoremap $ - " option-backspace over words - " this does NOT work in terminal vim, only macvim - inoremap ciw - cnoremap - - cnoremap - cnoremap - " autoclose pairs let g:AutoClosePairs_add = "'" let g:AutoCloseProtectedRegions = ["Comment", "String", "Character"] - " open this in Marked - nnoremap m :silent !open -a Marked.app '%:p' " fix syntax highlighting nnoremap k :syntax sync fromstart @@ -317,11 +304,6 @@ nnoremap nnoremap -" Tabs -" ============================================================================= - nnoremap :tabnext - nnoremap :tabprevious - " File Navigation " ============================================================================= let g:netrw_liststyle=4 @@ -340,11 +322,6 @@ nnoremap gb :Gblame nnoremap gw :Gw - nnoremap gv :Gitv --all - nnoremap gV :Gitv! --all - let g:Gitv_DoNotMapCtrlKey = 1 - - " Utilities " ============================================================================= " just sudo it @@ -362,18 +339,6 @@ endif endfunction - " Stoner Coder Bro says: - " whoa, i totally changed this file brah! Like, what happened? - " Now you can help stoner coder bro figure out what he did - nnoremap d :call DiffOrig() - function! DiffOrig() - if &diff - wincmd p | bdel | diffoff - else - vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis - endif - endfunction - " UPPER CASE -> lower case -> Title Case " from http://vim.wikia.com/wiki/Switching_case_of_characters function! TwiddleCase(str) @@ -388,17 +353,6 @@ endfunction vnoremap ~ ygv"=TwiddleCase(@")Pgv - " :( http://briancarper.net/blog/590/cursorcolumn--cursorline-slowdown - function! CursorTrack() - if &cursorline - set nocursorline nocursorcolumn - else - set cursorline cursorcolumn - endif - redraw - endfunction - nnoremap tc :call CursorTrack() - " Pasteboard " ============================================================================= " For yanking to / pasting from system clipboard