Advertisement
Guest User

Untitled

a guest
Feb 12th, 2015
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.82 KB | None | 0 0
  1.  
  2.  
  3. set encoding=utf-8
  4. set termencoding=utf-8
  5. set fileencodings=utf-8,cp1251,cp866,koi8-r
  6. set keymap=russian-jcukenwin
  7. set iminsert=0
  8. set imsearch=0
  9.  
  10. set nocompatible
  11. set noswapfile
  12. set nobackup
  13. set nowritebackup
  14. set novisualbell
  15. set t_vb=
  16. set mouse=
  17. set mousehide
  18.  
  19. syntax on
  20. filetype on
  21. filetype plugin on
  22.  
  23.  
  24. autocmd bufwritepost $MYVIMRC source $MYVIMRC
  25.  
  26.  
  27. set autochdir
  28. set browsedir=buffer
  29. set history=128
  30. set undolevels=2048
  31.  
  32.  
  33. set showcmd
  34. set ruler
  35. set showtabline=2
  36. set statusline=%<%f%h%m%r%=format=%{&fileformat}\ file=%{&fileencoding}\ enc=%{&encoding}\ %b\ 0x%B\ %l,%c%V\ %P
  37. set laststatus=2
  38. set title
  39. set confirm
  40. set hidden
  41. set autoread
  42. set background=dark
  43. highlight lCursor guifg=NONE guibg=Cyan
  44.  
  45. set number
  46. set showmatch
  47. set nowrap
  48.  
  49. set matchpairs+=<:>,i:f
  50. set backspace=indent,eol,start
  51. set autoindent
  52. set tabstop=4 shiftwidth=4 expandtab
  53. set smartindent
  54. set pastetoggle=
  55. set splitbelow
  56.  
  57.  
  58. set ignorecase
  59. set smartcase
  60. set nohlsearch
  61. set incsearch
  62.  
  63.  
  64. " Autoend
  65. imap [ []<left>
  66. imap ( ()<left>
  67. imap < <><left>
  68. imap { {}<left>
  69.  
  70.  
  71. " Retab and delete ended spaces
  72. map <F3> :retab<cr>:1,$s/[ ]*$//<cr><C-o>
  73. imap <F3> <esc>:retab<cr>:1,$s/[ ]*$//<cr><C-o>i
  74.  
  75. " Save
  76. map <F2> :w<cr>
  77. imap <F2> <esc>:w<cr>i
  78.  
  79.  
  80. " Tabs jumping
  81. map <S-left> :tabp<cr>
  82. imap <S-left> <esc>:tabp<cr>i
  83. map <S-right> :tabn<cr>
  84. imap <S-right> <esc>:tabn<cr>i
  85.  
  86.  
  87. " New vertical split
  88. map <Home> :vsp<cr><C-w>l<esc>:e ./<cr>
  89. imap <Home> <esc>:vsp<cr><C-w>l<esc>:e ./<cr>
  90.  
  91. " New horizontal split
  92. map <End> :sp<cr><C-w>j<esc>:e ./<cr>
  93. imap <End> <esc>:sp<cr><C-w>j<esc>:e ./<cr>
  94.  
  95. " Split navigation
  96. map <C-up> <C-w>k
  97. map <C-right> <C-w>l
  98. map <C-down> <C-w>j
  99. map <C-left> <C-w>h
  100. imap <C-up> <esc><C-w>ki
  101. imap <C-right> <esc><C-w>li
  102. imap <C-down> <esc><C-w>ji
  103. imap <C-left> <esc><C-w>hi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement