Created
March 14, 2012 06:15
-
-
Save a-square/2034561 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains hidden or 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
set hidden | |
set background=dark | |
let mapleader="," | |
set incsearch | |
set shortmess=atI | |
set t_Co=256 " set to force 256 colors on uncool terminals | |
" Allow cyrillic letters in commands | |
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<> | |
" set shiftwidth=2 | |
" set softtabstop=2 | |
" set autoindent | |
"""""""""""""""""""""""""" | |
" From Patterson & Fox | |
"""""""""""""""""""""""""" | |
filetype on " Automatically detect file types. | |
set nocompatible " no vi compatibility. | |
" Add recently accessed projects menu (project plugin) | |
set viminfo^=\! | |
" Minibuffer Explorer Settings | |
let g:miniBufExplMapWindowNavVim = 1 | |
let g:miniBufExplMapWindowNavArrows = 1 | |
let g:miniBufExplMapCTabSwitchBufs = 1 | |
let g:miniBufExplModSelTarget = 1 | |
" alt+n or alt+p to navigate between entries in QuickFix | |
map <silent> <m-p> :cp <cr> | |
map <silent> <m-n> :cn <cr> | |
" Change which file opens after executing :Rails command | |
let g:rails_default_file='config/database.yml' | |
syntax enable | |
set cf " Enable error files & error jumping. | |
set clipboard+=unnamed " Yanks go on clipboard instead. | |
set history=256 " Number of things to remember in history. | |
set autowrite " Writes on make/shell commands | |
set ruler " Ruler on | |
set nu " Line numbers on | |
set nowrap " Line wrapping off | |
set timeoutlen=250 " Time to wait after ESC (default causes an annoying delay) | |
colorscheme wombat " Uncomment this to set a default theme | |
" Formatting | |
set ts=2 " Tabs are 2 spaces | |
set bs=2 " Backspace over everything in insert mode | |
set shiftwidth=2 " Tabs under smart indent | |
set nocp incsearch | |
set cinoptions=:0,p0,t0 | |
set cinwords=if,else,while,do,for,switch,case | |
set formatoptions=tcqr | |
set cindent | |
set autoindent | |
set smarttab | |
set expandtab | |
" Visual | |
set showmatch " Show matching brackets. | |
set mat=5 " Bracket blinking. | |
" set list | |
" Show $ at end of line and trailing space as ~ | |
" set lcs=tab:\ \ ,eol:$,trail:~,extends:>,precedes:< | |
set novisualbell " No blinking . | |
set noerrorbells " No noise. | |
set laststatus=2 " Always show status line. | |
" gvim specific | |
set mousehide " Hide mouse after chars typed | |
set mouse=a " Mouse in all modesc | |
set guioptions-=T | |
set background=dark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment