Guest User

Untitled

a guest
Jan 23rd, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  2. " .vimrc
  3. "
  4. " Artem Chistyakov <chistyakov.artem@gmail.com>
  5. "
  6. " Remember that:
  7. " Reload .vimrc without restarting Vim
  8. " :source %
  9. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  10.  
  11.  
  12. " Backward compability
  13. set nocompatible
  14.  
  15. " Environment
  16. set shell=/bin/bash
  17.  
  18. " Encoding
  19. set encoding=utf-8
  20. set termencoding=utf-8
  21. set fileencoding=utf-8
  22. set fileencodings=utf-8,cp1251,cp855,koi8r,latin-1
  23.  
  24. " Syntax highlighting
  25. filetype on
  26. syntax on
  27.  
  28. " Windows and Linux russian keyboard mappings
  29. set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>
  30.  
  31. " Mac russian keyboard mappings
  32. "set langmap=йцукенгшщзхъфывапролджэячсмитьбю/ЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ/;qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUIOP[]ASDFGHJKL:'ZXCVBNM,./
  33.  
  34. " Colorscheme
  35. colo desertEx
  36.  
  37. " Interface
  38. set nowrap " Disable line-wrapping
  39. set ruler " Display current line & column
  40. set cursorline " Highlight current line
  41. set number " Show line numbers
  42. set title
  43.  
  44. " Tab and indent settings
  45. set smarttab
  46. set expandtab
  47. set ts=2
  48. set bs=2
  49. set shiftwidth=2
  50. set cindent
  51. set autoindent
  52. filetype plugin indent on
  53.  
  54. " Search
  55. set nocp incsearch
  56.  
  57. " History size
  58. set history=256
  59.  
  60. " Visual features
  61. set showmatch " Show matching brackets
  62. set mat=5 " Bracket blincking
  63.  
  64. " Alerts
  65. set noerrorbells
  66. set novisualbell
  67.  
  68. " gVim
  69. set mousehide
  70. set mouse=a
  71. set guioptions-=T " Remove toolbar
  72. set guioptions-=r " Remove right-hand scroll bar
  73. set guioptions-=m " Remove menu bar
  74.  
  75. " Key bindings
  76. nmap <F7> :NERDTreeToggle<cr>
  77. nmap <C-s> :w<cr>
  78. imap <C-s> <Esc>:w<cr>
  79. nmap <C-tab> :bprev<cr>
  80. nmap <C-w> :bdelete<cr>
  81. imap <C-[> <Esc>
  82.  
  83. let NERDTreeQuitOnOpen=1
Add Comment
Please, Sign In to add comment