Skip to content

Instantly share code, notes, and snippets.

@temochka
Created July 31, 2011 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save temochka/1116729 to your computer and use it in GitHub Desktop.
Save temochka/1116729 to your computer and use it in GitHub Desktop.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" .vimrc
"
" Artem Chistyakov <chistyakov.artem@gmail.com>
"
" 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