When opening several files in different tabs, e.g. with
`vim -p *.tex`, then the buffers are opened simultaneously.
This commit fixes an issue where the autogroup would be
reset on each new buffer, meaning that the first n-1 files
(or something similar) would have `&foldmethod == expr`.
* Use collection to denote the list of mappings
* Let default collections be defined through a function
* Allow separate leader keys for each collection
* Test for ultisnips before creating mappings
`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