Commit 64837b4c09e32ae5a77fd8721eca98be0515bab6 Parent: 94f56dc1e799950f66f99679c0b84a8c7dc8ef66 Author: mcol <mcol@posteo.net> Date: 2019-07-01 10:51:45 +0100 Committer: mcol <mcol@posteo.net> Committed: 2019-07-01 10:51:45 +0100 vimtex and related stuff
vimrc Modified
@@ -24,6 +24,7 @@ Plugin 'vimwiki/vimwiki' " vimwiki Plugin 'mclgn/vimlab' " vimlab Plugin 'lervag/vimtex' " vimtex + Plugin 'linkinpark342/xonsh-vim' " xonsh vim syntax endif if hostname() == "ardbeg" @@ -96,9 +97,7 @@ set background=dark " needed in case urxvt background colour is transparent -"------------------------------------------------------------------" -" Misc " -"------------------------------------------------------------------" +" Misc ------------------------------------------------------------" " restore last line in opened file au BufReadPost * @@ -117,9 +116,9 @@ let g:mlint_path_to_mlint = expand("$HOME") . "/applications/MATLAB/R2018b/bin/glnxa64/mlint" let g:vimwiki_list = [{'path': '~/work/research/research.wiki/', 'path_html': '~/work/research/research.wiki.html/'}] - let g:vimtex_view_method = 'zathura' - - + let g:vimtex_view_general_viewer = 'qpdfview' + let g:vimtex_view_general_options = '--unique @pdf\#src:@tex:@line:@col' + let g:vimtex_view_general_options_latexmk = '--unique' endif " session saving @@ -135,17 +134,7 @@ endif if &term =~ '^screen' && !has('nvim') | exe "set t_ts=\e]2; t_fs=\7" | endif -" vimtex configuration -let g:vimtex_doc_handlers = ['Texdoc'] -function! Texdoc(context) - call vimtex#doc#make_selection(a:context) - if !empty(a:context.selected) - execute '!texdoc' a:context.selected '&' - endif - return 1 -endfunction - -let g:vimtex_view_zathura_hook_callback = 'ViewerCallback' +let g:vimtex_view_qpdfview_hook_callback = 'ViewerCallback' function! ViewerCallback() dict VimtexView endfunction
ftplugin/vimwiki.vim Modified
@@ -38,3 +38,5 @@ setlocal wrap setlocal linebreak setlocal breakindent + +nnoremap <localleader>c :mkview<CR>gqip:silent loadview<CR>
ftplugin/tex.vim Modified
@@ -7,3 +7,5 @@ nnoremap K :VimtexDocPackage<CR> nnoremap <localleader>lw :exe 'cexpr system("texcount ' . expand('%') . '")'<CR>:copen<CR> + +nnoremap <localleader>c :mkview<CR>gqip:silent loadview<CR>
ftplugin/rst.vim Modified
@@ -1 +1,2 @@ setlocal textwidth=79 +nnoremap <localleader>c :mkview<CR>gqip:silent loadview<CR>
ftplugin/c.vim Deleted
@@ -1 +0,0 @@
-nnoremap <buffer> <F2> :make!<CR>