Мой .vimrc

set number
set textwidth=80
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
set wildmenu
set noautowrite
set ignorecase
set showmatch
set nopaste
set nobackup

nmap <F2> :w<cr>
vmap <F2> <esc>:w<cr>i
imap <F2> <esc>:w<cr>i
nmap <F10> :q!<cr>
vmap <F10> <esc>:q!<cr>i

    map <S-tab> <ESC>:tabprevious<cr>i
    map <C-tab> :tabnext<cr>
    nmap <C-tab> :tabnext<cr>
    imap <C-tab> <ESC>:tabnext<cr>i
    nmap <C-t> :tabnew<cr>
    imap <C-t> <ESC>:tabnew<cr>

set wildmenu
set wcm=<Tab>
menu Encoding.CP1251   :e ++enc=cp1251<CR>
menu Encoding.CP866    :e ++enc=cp866<CR>
menu Encoding.UTF-8    :e ++enc=utf-8<CR>
menu Encoding.KOI8-U   :e ++enc=koi8-u<CR>
map <F8> :emenu Encoding.<TAB>

e ++enc=cp1251

Добавить комментарий