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`.
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