X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=.vimrc;h=96eabb40aa4038df4008d6996353f3ce69ac745a;hb=42d95e4a5a038c7c2c42a80fc3d6b04ad53d25dd;hp=96d427c1d15ac45a0cad00f6385486906462cf96;hpb=7830b14ed921a73617d08332d8e5dc9beef02082;p=cmccabe-etc diff --git a/.vimrc b/.vimrc index 96d427c..96eabb4 100644 --- a/.vimrc +++ b/.vimrc @@ -1,17 +1,17 @@ -" Colin's vimrc +" Colin's vimrc " " || www %%% " vwv || )_(,;;;, ,;,\_/ www " )_( || \|/ \_/ )_(\| (_) -" \| \ || /\\|/ |/ \| \|// | +" \| \ || /\\|/ |/ \| \|// | " "___\|//V\\||//_\V/_\|//_______\\|//V/\\|/__ -"*************** navigation *************** +"*************** navigation *************** set history=500 set tags=./tags;../../../../ -"*************** search stuff *************** +"*************** search stuff *************** set incsearch set hlsearch set showmatch @@ -19,7 +19,7 @@ set nowrapscan set ignorecase set smartcase -"*************** formatting *************** +"*************** formatting *************** :filetype plugin on :filetype indent on set linebreak @@ -28,25 +28,34 @@ set ruler syntax on highlight Comment ctermfg=darkcyan highlight Constant ctermfg=red +highlight Search cterm=reverse +highlight Error ctermfg=white ctermbg=1 set t_Co=256 set et -"*************** bell *************** +"*************** bell *************** set vb t_vb="." set visualbell - -"*************** movement stuff *************** + +"*************** movement stuff *************** set splitbelow set splitright imap +set pastetoggle= -"*************** gui stuff *************** +"*************** gui stuff *************** set guifont=fixed set guioptions-=T set laststatus=2 "noremap  -"*************** colin's auto-commenter *************** +"*************** comand-mode stuff *************** +" This abbreviation makes it easier to type :e . +" When you type '%%' in command mode, it will be expanded to the directory name +" of the file you're currently editing. +cabbr %% expand('%:p:h') + +"*************** colin's auto-commenter *************** map ,/ :s/^/\/\//:nohlsearch map ,,/ :s/^\/\///:nohlsearch map ,# :s/^/#/:nohlsearch @@ -63,9 +72,10 @@ map \B :ConqueTermVSplit /bin/bash "command Bash execute ":ConqueTerm bash" "*************** grep plugin *************** -:let Grep_Default_Filelist = '*.c *.cpp *.cc *.rb *.h *.t *.py *.rst' +:let Grep_Default_Filelist = '*.c *.cpp *.cc *.rb *.h *.t *.py *.rst *.go *.java *.S' :let Grep_Skip_Files = 'core.* *.svn *~ *.swp *.swo *.bak cscope.out cscope.files' "*************** pre-filled registers ****************** -let @s="Signed-off-by: Colin McCabe " let @w="Signed-off-by: Colin McCabe " +let @x="Signed-off-by: Colin Patrick McCabe " +let @s="Signed-off-by: Colin Patrick McCabe "