Created
July 31, 2011 11:49
-
-
Save temochka/1116729 to your computer and use it in GitHub Desktop.
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" .vimrc | |
" | |
" Artem Chistyakov <[email protected]> | |
" | |
" Remember that: | |
" Reload .vimrc without restarting Vim | |
" :source % | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Backward compability | |
set nocompatible | |
" Encoding | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=utf-8,cp1251,cp855,koi8r,latin-1 | |
" Syntax highlighting | |
filetype on | |
syntax on | |
" Windows and Linux russian keyboard mappings | |
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<> | |
" Mac russian keyboard mappings | |
"set langmap=йцукенгшщзхъфывапролджэячсмитьбю/ЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ/;qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUIOP[]ASDFGHJKL:'ZXCVBNM,./ | |
" Colorscheme | |
colo desertEx | |
" Interface | |
set nowrap " Disable line-wrapping | |
set ruler " Display current line & column | |
set cursorline " Highlight current line | |
set number " Show line numbers | |
set title | |
" Tab and indent settings | |
set smarttab | |
set expandtab | |
set ts=2 | |
set bs=2 | |
set shiftwidth=2 | |
set cindent | |
set autoindent | |
" Search | |
set nocp incsearch | |
" History size | |
set history=256 | |
" Visual features | |
set showmatch " Show matching brackets | |
set mat=5 " Bracket blincking | |
" Alerts | |
set noerrorbells | |
set novisualbell | |
" gVim | |
set mousehide | |
set mouse=a | |
set guioptions-=T " Remove toolbar | |
set guioptions-=r " Remove right-hand scroll bar | |
set guioptions-=m " Remove menu bar | |
" Key bindings | |
nmap <F7> :NERDTree<cr> | |
nmap <C-s> :w<cr> | |
imap <C-s> <Esc>:w<cr> | |
nmap <C-tab> :bprev<cr> | |
imap <C-[> <Esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment