User Tools

Site Tools


editors:vimrc

.vimrc

set nocompatible

set encoding=utf-8
set fileencoding=utf-8
"set fileencodings=ucs-bom,utf8,prc
"set fileformats=unix,dos,mac
"set termencoding=utf-8

"colorscheme koehler
"colorscheme pablo
colorscheme darkblue

fu Gui_Set()
  set guifont="Cousine Regular":h11
  colorscheme darkblue
"set guifont=Lucida_Console:h9:cANSI
"set guifontwide=Lucida_Console:h12
"  echomsg "Hi, this is GUI!"
endf

autocmd GUIEnter * call Gui_Set()

set noerrorbells
set visualbell

set laststatus=2
set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)
set ruler
set showmode

set cursorline

set linebreak

 set number
"set number relativenumber
"augroup numbertoggle
"  autocmd!
"  autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
"  autocmd BufLeave,FocusLost,InsertEnter   * set norelativenumber
"augroup END

set incsearch
set hlsearch

set backspace=indent,eol,start

syntax on
filetype plugin indent on

fu Select_python_style()
 set modeline
 set textwidth=79 " lines longer than 79 columns will be broken
 set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
 set tabstop=4 " a hard TAB displays as 4 columns
 set expandtab " insert spaces when hitting TABs
 set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
 set shiftround " round indent to multiple of 'shiftwidth'
 set autoindent " align the new line indent with the previous line
 set smartindent
 highlight BadWhitespace ctermbg=red guibg=red
 match BadWhitespace /^\t\+/
" match BadWhitespace /\s\+$/
" set list listchars=tab:в–·в‹…,trail:в‹…,nbsp:в‹…
endf

au BufRead,BufNewFile *.py,*.pyw call Select_python_style()

set showmatch
let python_highlight_all = 1

au BufRead,BufNewFile Makefile* set noexpandtab

autocmd BufWritePre *.c,*.php,*.py :%s/\s\+$//ge

set keymap=russian-jcukenwin " Ctrl-^ - switch language
set iminsert=0
set imsearch=0

setlocal spell spelllang=ru_ru,en_us

"hi clear SpellBad
"hi SpellBad cterm=underline gui=undercurl
" hi SpellBad cterm=underline ctermfg=red

" set nowrap
set wrap
editors/vimrc.txt · Last modified: 2026/07/03 12:41 by Alexey

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki