`systemlist` was introduced in a patch for Vim 7.4. By instead
using `split(system(...), '\n')`, the plugin should be compatible
with Vim 7.3 (and perhaps also earlier versions).
The previous method used to determine if the foldmethod option was set from
a modeline wasn't working for me.
The function vimtex#fold#s:check_modeline was always returning false.
I changed the function to use a simple regex search on the actual file
itself searching for a modeline in the proper line ranges.
This update removes the viewers
qpdfview
sumatrapdf
skim
okular
from the possible g:vimtex_view_method values. Instead, these viewers
may now be defined with the `general` view method using the options
g:vimtex_view_general_viewer
g:vimtex_view_general_options
g:vimtex_view_general_options_latexmk
Resolves: #180
Remove old mappings.vim module, instead use a single function
in autoload/vimtex.vim to initialize the main mappings.
Also fix minor bug for reverse search.
Fix: #190
Added new option: g:vimtex_latexmk_progname. The default value is v:progpath
if available, else v:progname. In some cases, e.g. for MacVim, the value
should be set manually. I do not currently know the correct value to set.
Resolves: #186
We now store some script variables whenever a buffer is left. These variabes
are then used when a buffer is deleted to test if a latexmk process must be
killed.
The new implementation seems more robust and is no longer dependent on the
'hidden' attribute in vim.
Fixes: #189
This implements capability for view and callback hooks for all viewers (though
not all viewers have callback functionalities implemented).
For Zathura and MuPDF this change also implements a default focus behaviour
which may now be changed through the use of these hooks.
For some reason, when I opened a file directly the manual fold method
was not refreshed correctly initially.
The present fix fixes the problem by refreshing the folds after first
CursorMoved event, which seems to work nicely. Note that the autocommand
is deleted immediately.