Created
April 3, 2013 01:17
-
-
Save bavadim/5297698 to your computer and use it in GitHub Desktop.
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 confirm | |
set tabstop=4 | |
set shiftwidth=4 | |
set smarttab | |
set et "Expand tab | |
set ai "autoindent | |
set hlsearch | |
set lz "Lazy draw | |
set ffs=unix,dos,mac | |
set fencs=utf-8,cp1251,koi8-r,ucs-2,cp866 | |
set mouse=a " Enable mouse usage (all modes) | |
if has("syntax") | |
syntax on | |
endif | |
" If using a dark background within the editing area and syntax highlighting | |
" turn on this option as well | |
" set background=dark | |
" Uncomment the following to have Vim jump to the last position when | |
" reopening a file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
endif | |
" Uncomment the following to have Vim load indentation rules and plugins | |
" according to the detected filetype. | |
if has("autocmd") | |
filetype plugin indent on | |
endif | |
" The following are commented out as they cause vim to behave a lot | |
" differently from regular Vi. They are highly recommended though. | |
set showmatch " Show matching brackets. | |
set smartcase " Do smart case matching | |
set incsearch " Incremental search | |
set autowrite " Automatically save before commands like :next and :make | |
set hidden " Hide buffers when they are abandoned | |
set keymap=russian-jcukenwin | |
set iminsert=0 | |
set imsearch=0 | |
highlight lCursor guifg=NONE guibg=Cyan | |
highlight iCursor guifg=white guibg=steelblue | |
colorscheme vibrantink "Приятная цветовая схема в стиле TexMate | |
set nu "Отображать номер астрок | |
let g:fuzzy_ignore = "gems/*" | |
let g:rubycomplete_buffer_loading = 1 | |
let g:rubycomplete_rails = 1 | |
syntax on | |
nmap <F2> :NERDTree<cr> | |
nmap <C-F2> :NERDTreeClose<cr> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment