syntax on filetype on filetype plugin indent on set background=dark set hlsearch set incsearch set wildmode=longest,list set hid set nrformats= set statusline=%F%m%r%h%w\ [%{&ff}]\ [%Y]\ [A=\%04.8b]\ [H=\%04.4B]\ [%04l,%04v][%p%%]\ [L%L] set laststatus=2 set showbreak=> set cursorline set scrolloff=5 set tabpagemax=100 set ignorecase set smartcase " set fileencodings=latin1 " setlocal encoding=latin1 " setlocal fileencoding=latin1 let g:tex_flavor='latex' iab va val\'osz\'\i n\H us\'eg iab vv val\'osz\'\i n\H us\'egi v\'altoz\'o iab ef eloszl\'asf\"uggv\'eny iab sf s\H ur\H us\'egf\"uggv\'eny iab vo v\'arhat\'o \'ert\'ek iab sn sz\'or\'asn\'egyzet function! My_insert_pair() let pos_com = line('.').' | normal! '.virtcol('.').'|' let com_line = searchpair('\\begin{[^}]*}', '', '\\end{[^}]*}', 'b') if com_line != 0 normal f{ let firstpos = col('.') let [tmp, lastpos] = searchpos('}') let com_name = strpart(getline('.'),firstpos,lastpos-firstpos-1) endif if !exists('com_name') exe pos_com else exe pos_com if com_name != 'document' exe 'normal! o\end{'.com_name.'}' endif endif return 0 endfunction map :call My_insert_pair() imap :call My_insert_pair()a "Mora Peti inverse search: http://wiki.math.bme.hu/index.php/Vim_%C3%A9s_LaTeX cabbrev tabv tabnew\|setlocal nomodifiable\|view let g:yankring_history_dir = '$HOME/.vim/yankringfile/' let g:yankring_max_element_length = 20000 " ca szak %s/^\*\*\ //gn ca szak %s/^\*\*\ \\|kdb//gn ca szam %s/^\*\ //gn " ca szad %s/kdb//gn