Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " .vimrc
- "
- " Artem Chistyakov <chistyakov.artem@gmail.com>
- "
- " Remember that:
- " Reload .vimrc without restarting Vim
- " :source %
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " Backward compability
- set nocompatible
- " Environment
- set shell=/bin/bash
- " 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
- filetype plugin indent on
- " 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> :NERDTreeToggle<cr>
- nmap <C-s> :w<cr>
- imap <C-s> <Esc>:w<cr>
- nmap <C-tab> :bprev<cr>
- nmap <C-w> :bdelete<cr>
- imap <C-[> <Esc>
- let NERDTreeQuitOnOpen=1
Add Comment
Please, Sign In to add comment