Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set encoding=utf-8
- set termencoding=utf-8
- set fileencodings=utf-8,cp1251,cp866,koi8-r
- set keymap=russian-jcukenwin
- set iminsert=0
- set imsearch=0
- set nocompatible
- set noswapfile
- set nobackup
- set nowritebackup
- set novisualbell
- set t_vb=
- set mouse=
- set mousehide
- syntax on
- filetype on
- filetype plugin on
- autocmd bufwritepost $MYVIMRC source $MYVIMRC
- set autochdir
- set browsedir=buffer
- set history=128
- set undolevels=2048
- set showcmd
- set ruler
- set showtabline=2
- set statusline=%<%f%h%m%r%=format=%{&fileformat}\ file=%{&fileencoding}\ enc=%{&encoding}\ %b\ 0x%B\ %l,%c%V\ %P
- set laststatus=2
- set title
- set confirm
- set hidden
- set autoread
- set background=dark
- highlight lCursor guifg=NONE guibg=Cyan
- set number
- set showmatch
- set nowrap
- set matchpairs+=<:>,i:f
- set backspace=indent,eol,start
- set autoindent
- set tabstop=4 shiftwidth=4 expandtab
- set smartindent
- set pastetoggle=
- set splitbelow
- set ignorecase
- set smartcase
- set nohlsearch
- set incsearch
- " Autoend
- imap [ []<left>
- imap ( ()<left>
- imap < <><left>
- imap { {}<left>
- " Retab and delete ended spaces
- map <F3> :retab<cr>:1,$s/[ ]*$//<cr><C-o>
- imap <F3> <esc>:retab<cr>:1,$s/[ ]*$//<cr><C-o>i
- " Save
- map <F2> :w<cr>
- imap <F2> <esc>:w<cr>i
- " Tabs jumping
- map <S-left> :tabp<cr>
- imap <S-left> <esc>:tabp<cr>i
- map <S-right> :tabn<cr>
- imap <S-right> <esc>:tabn<cr>i
- " New vertical split
- map <Home> :vsp<cr><C-w>l<esc>:e ./<cr>
- imap <Home> <esc>:vsp<cr><C-w>l<esc>:e ./<cr>
- " New horizontal split
- map <End> :sp<cr><C-w>j<esc>:e ./<cr>
- imap <End> <esc>:sp<cr><C-w>j<esc>:e ./<cr>
- " Split navigation
- map <C-up> <C-w>k
- map <C-right> <C-w>l
- map <C-down> <C-w>j
- map <C-left> <C-w>h
- imap <C-up> <esc><C-w>ki
- imap <C-right> <esc><C-w>li
- imap <C-down> <esc><C-w>ji
- imap <C-left> <esc><C-w>hi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement