====== Мой .vimrc ====== " Gluek's .vimrc config file for VIM, version 2009-01-08. " " Feel free to contact me if you have any questions/suggestions. " Email and Jabber: [ mrgluek@gmail.com ] or Skype: [ gluek42 ] " " Get latest version of this file at: [ http://gluek.info/wiki/linux/my-vimrc ] " *** Basic options *** syntax on " turn syntax highlighting on filetype on " filetype detection on " *** Set section *** set mouse=a " enable mouse support set background=dark " force dark background set hlsearch " search selected word by pressing * (asterisk) set incsearch " on search instantly go to found text when typing set backup " create backup files (by default: ~) set listchars+=precedes:<,extends:> " show ">" or "<" if text string is longer than screen set ignorecase " ingore lower/UPPER case on search set backspace=indent,eol,start whichwrap+=<,>,[,] " allow to use backspace instead of "x" " encoding is utf-8 by default: set encoding=utf-8 set termencoding=utf-8 "set statusline=%<%f%h%m%r%=%b\ %{&encoding}\ 0x%B\ \ %l,%c%V\ %P set statusline=%<%f%h%m%r%=format=%{&fileformat}\ file=%{&fileencoding}\ enc=%{&encoding}\ %b\ 0x%B\ %l,%c%V\ %P " *** Key bindings *** " CTRL-C and CTRL-Insert are Copy vnoremap "+y vnoremap "+y map "+gP map "+gP imap vmap " Make shift-insert work like in Xterm map map! " map Ctrl-y to delete lines inoremap ddi " Exit on F10 imap :qa nmap :qa "imap " autocompletion by Tab nmap k_ " окно вверх imap k_a " окно вверх "nmap j_ " окно вниз "imap j_a " окно вниз " Save current buffer (file) imap :wa nmap :w " On/off line numbers by F11 imap :setnu!a nmap :setnu!