X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=.vimrc;h=a7091d9f27f64370be0aeed9b2c3320c88830902;hb=df82403223f1c27f414f27b986c46d3c1063d368;hp=eac5995a1c3095038d813ddf96431429bee41da1;hpb=0474d4f3e31338874753e745545c4e344d7a6364;p=dotfiles diff --git a/.vimrc b/.vimrc index eac5995..a7091d9 100644 --- a/.vimrc +++ b/.vimrc @@ -11,6 +11,9 @@ set wildignore=*.swp,*.bak,*.pyc,*.class,*.o,*.exe " Set filetype stuff to on. filetype on filetype plugin on + +" Set up autoindentation. +set smartindent filetype indent on " Example filetype-specific setting: @@ -33,16 +36,16 @@ set scrolloff=5 " Turn off error bells and visual bell set noeb vb t_vb= -" Set up autoindentation. -set smartindent -filetype indent on - " Set tabs to width 4. -set softtabstop=4 -set tabstop=4 -set shiftwidth=4 +filetype plugin indent on +set shiftwidth=2 +set softtabstop=2 +set tabstop=2 set expandtab +" language-specific settings +autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4 + " Allow backspacing over everything in insert mode. set backspace=indent,eol,start @@ -56,9 +59,6 @@ augroup Spacing autocmd FileType help,make match BadSpacing / *$/ augroup END -" Highlight search terms. -set hlsearch - " Search as you type. set incsearch @@ -101,14 +101,5 @@ noremap! noremap "" noremap! -" Map open and close items in insert mode. -" Keep this commented out until I can get it working better. -"inoremap { {}O -"inoremap [ []i -"inoremap ( ()i -"inoremap } /}o -"inoremap ] /]a -"inoremap ) /)a - " Automatically reload the .vimrc when changes are made to it au! BufWritePost .vimrc source %