diff options
author | Urbain Vaes <urbain@vaes.uk> | 2014-11-12 11:37:21 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2014-11-12 11:37:21 +0000 |
commit | 5bdd8b65d14f67b25e7a836391ffc12a417d8a22 (patch) | |
tree | 246db6eff52b378d41b29c506fa618e2689602c1 /vim | |
parent | 85f8ae4353355cbb4dc0c5462fec9298250d231d (diff) | |
parent | 6cfba4bccec880386fc16d1f6977270245b30c9a (diff) |
Merge branch 'master' of https://github.com/uvaes/dotfiles
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -40,6 +40,22 @@ noremap <c-h> :UltiSnipsEdit<Return> let g:tex_flavor='latex' let g:tex_conceal= 'adgm' let g:LatexBox_Folding=0 +let g:LatexBox_viewer='zathura' +let g:LatexBox_latexmk_preview_continuously=1 +let g:LatexBox_quickfix=2 +function! SynctexShow() + let synctex = glob("*.synctex.gz") + if strlen(synctex) == 0 + echo "no synctex file found" + else + let pdffile = substitute(synctex,"synctex.gz","pdf","") + let execline = printf(":!zathura --synctex-forward %d:%d:%s %s", line('.'), col('.'), shellescape(bufname("%")), shellescape(pdffile)) + exec execline + end +endfunction +nnoremap <Leader>lv :call SynctexShow()<CR><CR> +nnoremap <Leader>lc :Latexmk<CR> +nnoremap <Leader>ls :LatexmkStop<CR>:LatexmkClean<CR> " Gundo nnoremap <F5> :GundoToggle<cr> @@ -144,7 +160,7 @@ autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme() " Definition of leader and localleader let mapleader = "\\" -let maplocalleader = "+" +let maplocalleader = "-" " Leader maps nmap <Space> <Leader> @@ -153,7 +169,7 @@ nmap <Leader>t <c-w> nnoremap <Leader>h :set hlsearch!<cr> nnoremap <Leader>n :set relativenumber!<cr> nnoremap <Leader>q :q!<cr> -nnoremap <Leader>sv :source ~/.vimrc<cr> +nnoremap <Leader>sv :source ~/.vim/vimrc<cr> nnoremap <Leader>sc :source % nnoremap <Leader>w :w<cr> nnoremap <Leader>te :tabedit |