From 8d6a7a116fe2511ee53309069a30ece768a05abe Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 9 Nov 2012 10:12:26 -0800 Subject: Merged in work base configs. --- base/vimrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'base/vimrc') diff --git a/base/vimrc b/base/vimrc index 2c0e0f0..aa25093 100644 --- a/base/vimrc +++ b/base/vimrc @@ -5,7 +5,7 @@ set bg=dark set diffopt=filler,iwhite " keep files synced and ignore whitespace set expandtab " Get rid of tabs altogether and replace with spaces "set guioptions-=m " Remove menu from the gui -"set guioptions-=T " Remove toolbar +set guioptions-=T " Remove toolbar set hidden " hide buffers instead of closing set history=50 " keep 50 lines of command line history set ignorecase " Do case insensitive matching @@ -25,6 +25,9 @@ set foldmethod=indent set nofen set mouse=a set spell spelllang=en +set wildmode=list:longest,full +set nomousehide +set sessionoptions+=resize,winpos " filetypes filetype plugin on @@ -49,6 +52,10 @@ map O5B j map O5A k map O5D h map O5C l +imap O5B j +imap O5A k +imap O5D h +imap O5C l "Set tab to 4 spaces set shiftwidth=4 @@ -63,6 +70,9 @@ set pastetoggle= "normal mode maps +" Switch to/from header file +map :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, + "Map \e to edit a file from the directory of the current buffer if has("unix") nmap e :e =expand("%:p:h") . "/" -- cgit v1.2.3