From 20ab0c5641c71eb746dca4e3a671dd692a7b0df1 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Fri, 27 May 2011 14:26:43 -0700 Subject: [PATCH] vimrc: Add cabbr %%, fix whitespace Signed-off-by: Colin McCabe --- .vimrc | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) 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 -- 1.6.6.rc1.39.g9a42