Created
November 11, 2011 10:39
-
-
Save pakt/1357704 to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" http://vimdoc.sourceforge.net/htmldoc/starting.html#vimrc | |
filetype plugin on | |
set enc=utf-8 | |
set relativenumber "beware: mutually exclusive with :set number :p | |
set guioptions-=m "remove menu bar | |
set guioptions-=T "remove toolbar | |
set guioptions-=r "remove right-hand scroll bar | |
set autochdir | |
set backupdir=d:\vim-backups | |
set noswapfile | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
map <F2> :w<CR> | |
set cul " highlight current line | |
"hi CursorLine term=none cterm=none ctermbg=3 " adjust color | |
let g:miniBufExplMapWindowNavVim = 1 | |
let g:miniBufExplMapWindowNavArrows = 1 | |
let g:miniBufExplMapCTabSwitchBufs = 1 | |
let g:miniBufExplModSelTarget = 1 | |
set nocompatible " use vim defaults | |
set scrolloff=3 " keep 3 lines when scrolling | |
set ai " set auto-indenting on for programming | |
set showcmd " display incomplete commands | |
set nobackup " do not keep a backup file | |
set ruler " show the current row and column | |
set hlsearch " highlight searches | |
set incsearch " do incremental searching | |
set showmatch " jump to matches when entering regexp | |
set ignorecase " ignore case when searching | |
set smartcase " no ignorecase if Uppercase char present | |
set visualbell t_vb= " turn off error beep/flash | |
set novisualbell " turn off visual bell | |
set backspace=indent,eol,start " make that backspace key work the way it should | |
syntax on " turn syntax highlighting on by default | |
filetype on " detect type of file | |
filetype indent on " load indent file for specific file type | |
set t_RV= " http://bugs.debian.org/608242, http://groups.google.com/group/vim_dev/browse_thread/thread/9770ea844cec3282 | |
colo zenburn | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment