X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=.vimrc;fp=.vimrc;h=d90e0874e8a03af93c3747b5ddb21b7f7226a807;hb=20ab0c5641c71eb746dca4e3a671dd692a7b0df1;hp=edcd5a57686f6d753a3a6ee32805619a47f3d32f;hpb=67a8e651c9e2cf38edf6738e1ded81e6422d3d51;p=cmccabe-etc diff --git a/.vimrc b/.vimrc index edcd5a5..d90e087 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 @@ -31,23 +31,29 @@ highlight Constant ctermfg=red 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