From 75d8cfae934624a01f9cb1a8de0ae5700f2c1979 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Tue, 9 Oct 2012 12:08:47 -0400 Subject: [PATCH] Update vimrc with filetype specific indenting and smartcase searching --- vimrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 76c1482..6fcdaa0 100644 --- a/vimrc +++ b/vimrc @@ -4,7 +4,7 @@ let $VIMHOME=expand(":p:h") " Keep track of where our vim settings directory is syntax enable " Turn on syntax highlighting filetype plugin on " Turn on filetype plugins -filetype indent off " Turn off filetype indent to use custom indent settings +filetype indent on " Turn off filetype indent to use custom indent settings colorscheme cake " Set default color scheme set nocompatible " Disable VI compatibility set backspace=indent,eol,start " Makes backspace work as expected @@ -39,7 +39,7 @@ set csto=0 " Search cscope dbs before ctags files set history=20 " Save 20 lines of command history set hlsearch " Turn on search highlighting set ignorecase " Ignore case in searches -"set smartcase " Don't ignore case when search term contains capitals +set smartcase " Don't ignore case when search term contains capitals set incsearch " Highlight search string as you type set tags=tags;/ " Search from current directory to root for ctags db set fileformats=unix,dos,mac " support all three, in this order @@ -192,7 +192,7 @@ map fe :cs find e map ff :cs find f map fi :cs find i -" ---- CScope Mappings ---- +" ---- Doxygen Comment Mappings ---- map dc :Dox map da :DoxAuthor map dl :DoxLic @@ -204,6 +204,7 @@ map :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c, " Abbreviations "============================================================================== " Command mode abbreviations +cnoreabbrev format =gg cnoreabbrev trim %s/\s\+$// cnoreabbrev print hardcopy cnoreabbrev tofn ToFn -- 2.55.0