X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=.vimrc;h=32995bd72e17296251937c8f05bdfefd6c91dc5e;hb=178e2f8295f04cdb781e0652b26dc3cd569bd54f;hp=34daeb41bd5f87c20a154203016e3553b79acaf6;hpb=27f22dc97384e6261ea8d8b9d51974ae85b05f98;p=cmccabe-etc diff --git a/.vimrc b/.vimrc index 34daeb4..32995bd 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,24 +28,36 @@ 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 sw=4 +set ts=4 +set et -"*************** bell *************** +"*************** bell *************** set vb t_vb="." set visualbell - -"*************** movement stuff *************** + +"*************** movement stuff *************** set splitbelow set splitright imap +set pastetoggle= -"*************** gui stuff *************** -set guifont=fixed +"*************** 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 @@ -53,11 +65,18 @@ map ,,# :s/^#//:nohlsearch map ," :s/^/\"/:nohlsearch map ,," :s/^\"//:nohlsearch +" whitespace stripper +map ,w :s/[\t ][\t ]*$// + "*************** shortcuts ************** -map \b :ConqueTermSplit bash -map \B :ConqueTermVSplit bash +map \b :ConqueTermSplit /bin/bash +map \B :ConqueTermVSplit /bin/bash "command Bash execute ":ConqueTerm bash" "*************** grep plugin *************** -:let Grep_Default_Filelist = '*.c *.cpp *.rb *.h' -:let Grep_Skip_Files = '*.svn *~ *.bak' +:let Grep_Default_Filelist = '*.c *.cpp *.cc *.hpp *.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 @w="Signed-off-by: Colin McCabe " +let @s="Signed-off-by: Colin Patrick McCabe "