current .vimrc

Jul 25 2013 Published under Linux,Programming


" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

" change spacing for tabbing and autoindent
set tabstop=2 "number of columns to display in a tab
set shiftwidth=2 "how many columns to indent with autoindent
set expandtab " inserts spaces instead of tab
set autoindent " always set autoindenting on
set smartindent 

set nobackup " do not keep a backup file, use versions instead
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set number " show line number
filetype plugin indent on " different indentation based on file type

" display file name always
set modeline
set ls=2

" custom keys
set pastetoggle=< F2 >

" Pathogen
filetype off " Pathogen needs to run before plugin indent on
call pathogen#incubate()
call pathogen#helptags() " generate helptags for everything in 'runtimepath'
filetype plugin indent on

Comments Off

Comments are closed at this time.