1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-22 04:02:28 +00:00
dotfiles/vim/ftplugin/tex.vim

12 lines
265 B
VimL
Raw Normal View History

2012-12-01 04:11:06 +00:00
setlocal formatoptions+=wa
function! SyncTexForward()
let execstr = "silent !okular --unique ".LatexBox_GetOutputFile()."\\#src:".line(".")."%:p &"
exec execstr
endfunction
nmap <Leader>f :call SyncTexForward()<CR>
map <leader>ct yyp:s/begin/end/<CR>