Настройка редактора vim через файл ~/.vimrc


syntax on
set number

set t_Co=256
color molokai

set linebreak
set showcmd
set title

set ignorecase
set hlsearch
set mouse=a
set laststatus=2
set completeopt=menu

set textwidth=80
set wrap
set whichwrap=b,s,<,>,[,],l,h

set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class
set cursorline
set encoding=utf-8
set termencoding=utf-8
set mps+=<:>

for prefix in ['i', 'n', 'v']
  for key in ['', '', '', '']
    exe prefix . "noremap " . key . " "
  endfor
endfor

set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [POS=%04l,%04v]\ [LEN=%L]

Поделиться
Отправить
2017   vim
Популярное