From 12a0f00603f1d34124fc73b74a16f9b81d55bc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 10 Apr 2016 11:04:09 +0200 Subject: [PATCH] Remove g:vimtex_quickfix_fix_paths The option will now always be activated, as there seems to be no reason not to keep it activated. --- autoload/vimtex/latexmk.vim | 11 ++++------- doc/vimtex.txt | 13 ------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 75fa15a..75c760c 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -21,7 +21,6 @@ function! vimtex#latexmk#init_options() " {{{1 call vimtex#util#set_default('g:vimtex_quickfix_ignored_warnings', []) call vimtex#util#set_default('g:vimtex_quickfix_mode', '2') call vimtex#util#set_default('g:vimtex_quickfix_open_on_warning', '1') - call vimtex#util#set_default('g:vimtex_quickfix_fix_paths', '0') if exists('g:vimtex_latexmk_callback_hook') echoerr 'Deprecated option: g:vimtex_latexmk_callback_hook!' @@ -46,12 +45,10 @@ function! vimtex#latexmk#init_script() " {{{1 endif " Add autocommand to fix paths in quickfix - if g:vimtex_quickfix_fix_paths - augroup vimtex_latexmk_fix_dirs - au! - au QuickFixCmdPost c*file call s:fix_quickfix_paths() - augroup END - endif + augroup vimtex_latexmk_fix_dirs + au! + au QuickFixCmdPost c*file call s:fix_quickfix_paths() + augroup END endfunction " }}}1 diff --git a/doc/vimtex.txt b/doc/vimtex.txt index cca830f..3fbdb46 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -721,19 +721,6 @@ Options~ Default value: 0 -*g:vimtex_quickfix_fix_paths* - Some users do not like to use |autochdir|. The file names in LaTeX error - messages are relative, thus the current working directory is important. If - this option is enabled, then the paths for the quickfix entries are fixed so - that they should work with |noautochdir|. - - Note: This option uses a |QuickFixCmdPost| autocommand in order to update - the quickfix list through |setqflist|. Thus, the option may have side - effects if one edits other file types in the same Vim instance. The - option is therefore disabled by default. - - Default value: 0 - *g:vimtex_quickfix_ignore_all_warnings* This option controls whether or not LaTeX warnings should be included in the |quickfix| window. LaTeX errors will always be included.