~ polachok /.vimrc

my vim config
set nocompatible
"set eb=on
set vb t_vb=
set completeopt=longest,menuone 
inoremap <expr> <cr> pumvisible() ? "\<c-y>" : "\<c-g>u\<cr>" 
" set background=dark
" set foldmethod=indent
runtime! ftplugin/man.vim
colorscheme slate
set autowrite
"colorscheme slate
set backup 
set history=50
set ruler 
set showcmd
set incsearch
set langmap=ö:,Êq,Ãw,Õe,Ër,Åt,Îy,Çu,Ûi,Ýo,Úp,È[,ß],Æa,Ùs,×d,Áf,Ðg,Òh,Ïj,Ìk,Äl,Ü',Ñz,Þx,Óc,Ív,Éb,Ôn,Øm,Â\,,À.,£`
syntax on
set iminsert=0
set imsearch=0
set hlsearch
set nocp
filetype plugin on
filetype plugin indent on
au FileType python source ~/.vim/plugins/python.vim
"au FileType python source ~/.vim/plugins/pythoncomplete.vim
autocmd FileType text setlocal textwidth=78
"autocmd FileType c :TlistOpen
au FileType scheme set tabstop=2
au FileType scheme set softtabstop=2
au FileType scheme set shiftwidth=2
set autoindent
set softtabstop=2
map <F5> :wa :make
map <F6> :cope
map <F7> :cp
map <F8> :cn
map <C-J> :j!<CR>
nmap r :redo<CR>
highlight VertSplit term=bold cterm=bold
nmap \K !extman <cWORD><CR>
map ?g "zyiw !extman @z.<CR> 
" map \K   :vertical call <SNR>9_PreGetPage(0)<CR>
"map K :vsplit<CR>:call <SNR>9_PreGetPage(0)<CR><C-W><C-W><CR>:close<CR><CR>
" map \K :!aterm -e vim -c "call <SNR>9_PreGetPage(0)<CR>"
map \q :qall<CR>
set nowrap 
set sidescroll=5  
nmap <F10> :mks! ~/.vimsession<CR> :qa<CR>
"imap <Tab> <C-N>
nmap <F2> :TlistToggle<CR>
nmap <F5> :TlistUpdate<CR>
"set tabstop=4
"set softtabstop=4
"set shiftwidth=4
set smarttab
set expandtab
set guifont=terminus
set guioptions-=T
highlight Normal guibg=grey30
nmap <Home> ^
imap <Home> <Esc>I
ino <Down> <C-O>gj
ino <Up> <C-O>gk
nno <Down> gj
nno <Up> gk
"set tags=./tags
" set autosave 
"set encoding=koi8-r
"set termencoding=koi8-r
set wcm=<Tab>
menu Tags.create :!ctags --recurse --language-force=c --extra=+q --fields=+i *.c *.h<CR>
au FileType python menu Tags.python :!ctags --recurse --language-force=Python --extra=+q --fields=+i *.py<CR>
"au FileType python map K :Pydoc <cWord><CR>
map <F7> :emenu Tags
menu Encoding.koi8-r :e ++enc=koi8-r<CR>
menu Encoding.1251 :e ++enc=cp1251<CR>
menu Encoding.866 :e ++enc=cp866<CR>
menu Encoding.utf-8 :e ++enc=utf8 <CR>
map <F8> :emenu Encoding.<TAB>
set laststatus=2  
set title 
"nmap <F4> :w!<CR>:!ispell -d russian %<CR>:!ispell -d english %<CR>:e! %<CR>
vmap <F4> :call C_CodeComment("v","yes")
" ×ËÌ/×ÙËÌ ÏÔÏÂÒÁÖÅÎÉÑ ÎÏÍÅÒÏ× ÓÔÒÏË
imap <F1> <Esc>:set<Space>nu!<CR>a
nmap <F1> :set<Space>nu!<CR>
set undolevels=100
set ttyfast
set showmatch " ÐÒÏ×ÅÒËÁ ÓËÏÂÏË
set foldexpr=getline(v:lnum)=~'^sub'&&getline(v:lnum+1)=~'^{'?'>1':getline(v:lnum)=~'^}'?'s1':'-1'
" ÂÏÌÅÅ ÐÒÉ×ÙÞÎÙÅ Page Up/Down, ËÏÇÄÁ ËÕÒÓÏÒ ÏÓÔÁ£ÔÓÑ × ÔÏÊ ÖÅ ÓÔÒÏËÅ,
" " (Á ÎÅ ÐÅÒÅÎÏÓÉÔÓÑ × ×ÅÒÈ/ÎÉÚ ÜËÒÁÎÁ, ËÁË ÐÒÉ ÓÔÁÎÄÁÒÔÎÏÍ PgUp/PgDown)
" " ðÏÓËÏÌØËÕ ÐÏ ÕÍÏÌÞÁÎÉÀ ÐÒÏËÒÕÔËÁ ÐÏ C-Y/D ÐÒÏÉÓÈÏÄÉÔ ÎÁ ÐÏÌÜËÒÁÎÁ,
" " ÐÒÉ×ÑÚËÁ ÄÅÌÁÅÔÓÑ Ë Ä×ÏÊÎÏÍÕ ÎÁÖÁÔÉÀ ÜÔÉÈ ËÏÍÂÉÎÁÃÉÊ.
nmap <PageUp> <C-U><C-U>
imap <PageUp> <C-O><C-U><C-O><C-U>
"
nmap <PageDown> <C-D><C-D>
imap <PageDown> <C-O><C-D><C-O><C-D>


if has("autocmd")
    filetype plugin indent on
    autocmd FileType text setlocal textwidth=78
    autocmd BufReadPost *
                \ if line("'\"") > 0 && line("'\"") <= line("$") |
                \ exe "normal g`\"" |
                \ endif
endif
imap <C-S-T> :tabnew<CR>
vmap <C-Insert> "+y
nmap <S-Insert> "+p
imap <S-Insert> <C-o><S-Insert>
set clipboard=unnamed
" allow backspacing over everything in insert mode
set backspace=indent,eol,start

let g:C_AuthorName      = 'Alexander Polakov'
let g:C_Email           = 'polachok@gmail.com'
let g:C_BraceOnNewLine     = "no"   
let Tlist_Exit_OnlyWindow = 1
let Tlist_Enable_Fold_Column = 0
let Tlist_Display_Prototype = 1
let Tlist_WinWidth = 20
set statusline=%<%f%=%([%{Tlist_Get_Tag_Prototype_By_Line()}]%)%h%m%r%=%-14.(%l,%c%V%)\ %P
" set pastetoggle=<F11>
  
Your Ad Here