Created
May 6, 2013 02:09
-
-
Save antonl/5523009 to your computer and use it in GitHub Desktop.
My vimrc file
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
" | |
" VIM Configuration | |
" | |
" Anton Loukianov | |
" | |
" Updated 2 Mar 2011 | |
" Turn off compatible mode | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-vividchalk' | |
Bundle 'matlab.vim' | |
Bundle 'matchit.zip' | |
Bundle 'taglist.vim' | |
Bundle 'bufexplorer.zip' | |
Bundle 'Rip-Rip/clang_complete' | |
" Remap leader to comma | |
let mapleader="," | |
nmap <silent> <leader>b :BufExplorer<CR> | |
" Quick editing of vimrc | |
nmap <silent> <leader>ev :e $MYVIMRC<CR> | |
nmap <silent> <leader>sv :so $MYVIMRC<CR> | |
" Navigate tabs with arrow keys | |
noremap <silent> <Left> :tabp<CR> | |
noremap <silent> <Right> :tabn<CR> | |
" Method to calculate fold level | |
noremap <silent> <F5> :set foldmethod=indent<CR> | |
noremap <silent> <S-F5> :set foldmethod=syntax<CR> | |
" Turn off <F1> help mapping | |
" unmap <F1> | |
set mouse="" " Turns off all mouse use | |
set hidden " Don't close buffers, hide them instead | |
set nowrap " Don't wrap lines | |
set textwidth=0 " Don't automatically break long lines | |
set wrapmargin=0 " Same as above | |
set tabstop=4 " Four spaces to a tab | |
set expandtab " Soft tabs (spaces instead of tab characters) | |
" Use bs to delete everything | |
set backspace=indent,eol,start | |
set autoindent " set autoindenting | |
set copyindent " copy indenting on copy/paste | |
set number " Show line numbers | |
set shiftwidth=4 " number of spaces to use for autoindenting | |
set shiftround " use multiple shift widths when indenting with < and > | |
set showmatch " highlight matching brackets | |
set mat=2 " How many tenths of a second to blink | |
set hlsearch " highlight search items | |
set incsearch " search as you type | |
set ignorecase " ignore case when searching | |
set smartcase " if mixed case, use case when searching | |
set smarttab " insert tabs on start of line using shiftwidth | |
set showcmd " show commands as they're typed | |
" No sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
" Lots of history | |
set history=1000 | |
set undolevels=1000 | |
" Disable swap/backups | |
set nobackup | |
set noswapfile | |
set ffs=unix,dos,mac "Default file types | |
if &t_Co > 2 || has("gui_running") | |
syntax enable | |
endif | |
if &t_Co >= 256 || has("gui_running") | |
color vividchalk | |
endif | |
if has("gui_running") | |
set guioptions=Aace | |
set t_Co=256 | |
set background=dark | |
else | |
colorscheme vividchalk | |
set background=dark | |
set nonu | |
endif | |
set encoding=utf8 | |
try | |
lang en_US | |
catch | |
endtry | |
noremap <F4> :set hlsearch! hlsearch?<CR> | |
noremap <F1> <nop> | |
" Enable filetype plugin | |
filetype on | |
filetype plugin on | |
filetype indent on | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" Set 7 lines to the curors - when moving vertical.. | |
set so=7 | |
set wildmenu "Turn on WiLd menu | |
set cmdheight=2 "The commandbar height | |
set hid "Change buffer - without saving | |
set whichwrap+=<,>,h,l | |
set magic "Set magic on, for regular expressions | |
set lbr | |
set tw=500 | |
set ai "Auto indent | |
set si "Smart indet | |
set wrap "Wrap lines | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment