Commit Graph

708 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
824444ef70 Fix minor problem in s:buffer_deleted
In some cases the BufDelete autocommand may be called without BufLeave having
been called first.
2015-08-26 08:07:58 +02:00
Karl Yngve Lervåg
610bfaff0e Isolate indentation of math delimiters (fixes #210) 2015-08-25 21:38:05 +02:00
Karl Yngve Lervåg
0a5ce0a915 Remove echo 2015-08-12 11:05:20 +02:00
Karl Yngve Lervåg
c50e1cefaa Fix issue #52 (again)
This time ensure that there is no conflict between the
various buffers by using unique autocommand groups.
2015-08-12 11:04:45 +02:00
Karl Yngve Lervåg
5f7ced0b28 Fix issue #52 with files opened in tabs
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`.
2015-08-11 23:32:34 +02:00
Karl Yngve Lervåg
8549212464 Fix issue #52 with files opened in tabs
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`.
2015-08-11 23:31:02 +02:00
Camil Staps
ee1178d3ef Something shady with escaping the exclamation mark... 2015-08-11 11:34:28 +02:00
Camil Staps
95e30c706b Fixes #212. Fix pdflatex substitution to work with Latexmk's 'internal' keyword 2015-08-11 10:12:48 +02:00
Karl Yngve Lervåg
3095c3ca72 Some big updates
* 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
2015-08-05 23:25:32 +02:00
Karl Yngve Lervåg
bccded6ee2 Fix problem with missing slash (#172) 2015-08-05 22:47:34 +02:00
Karl Yngve Lervåg
d8223f40ee Changed name: snippets -> imaps 2015-08-04 22:40:20 +02:00
Karl Yngve Lervåg
0340cba30d Merge branch 'master' into math-mappings 2015-08-04 22:23:29 +02:00
Karl Yngve Lervåg
47ac958f76 Change default value of g:vimtex_syntax_minted 2015-08-03 21:51:37 +02:00
Karl Yngve Lervåg
0686d92631 docs: Added link to Skim wiki 2015-07-31 10:41:03 +02:00
Karl Yngve Lervåg
1823ee60b6 Removed redundent 'start ' (#204) 2015-07-18 23:06:19 +02:00
Karl Yngve Lervåg
610492f9b5 Use tex2unicode for bibtex completions (#203) 2015-07-16 23:07:09 +02:00
Karl Yngve Lervåg
c31688ff83 Remove bg option from clean and kill (resolves #202) 2015-07-14 16:33:17 +02:00
Karl Yngve Lervåg
f1ee9e7b35 Improved docs on multi-file projects (cf. #200) 2015-07-10 23:03:18 +02:00
Karl Yngve Lervåg
51d83a617d Allow latexmain main file specifier (#200) 2015-07-10 22:45:42 +02:00
Karl Yngve Lervåg
5ff31e9eac Fixed quickfix glitch (resolves #197)
It seems the previous fix was not successful.  The reason was that the redraw
was never reached due to an earlier return.
2015-07-10 21:58:42 +02:00
Karl Yngve Lervåg
2acd346523 Redraw to close quickfix window (fixes #197) 2015-07-10 09:07:19 +02:00
Karl Yngve Lervåg
049750d2da Use vimtex#util#shellescape consistently (#196) 2015-07-07 22:58:40 +02:00
Karl Yngve Lervåg
b10486b729 Update main file detection
Detect main file with `\documentclass` instead of `\begin{document}`.
2015-07-07 22:54:24 +02:00
Karl Yngve Lervåg
a93a88a85a Fix "List as a String"-error (#193) 2015-07-07 20:18:08 +02:00
Karl Yngve Lervåg
55c4214936 Rename ...fnameescape to ...shellescape (cf. #196) 2015-07-07 15:30:23 +02:00
Karl Yngve Lervåg
3a1c7ed8cc Use fnameescape for vim commands (resolves #196) 2015-07-07 15:29:13 +02:00
Karl Yngve Lervåg
a5531c7632 Escape spaces in path (resolves #196) 2015-07-06 22:49:32 +02:00
Karl Yngve Lervåg
e59f2ec885 Merge pull request #195 from micbou/windows-general-viewer
Fix general viewer when paths contain backslashes
2015-07-06 22:46:23 +02:00
Karl Yngve Lervåg
bc50385973 Improve compatibility with older Vim
`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).
2015-07-06 15:31:09 +02:00
Karl Yngve Lervåg
66c0b273e2 Fix label completion for amsart (#193) 2015-07-05 22:00:27 +02:00
Karl Yngve Lervåg
2e3b737646 Minor fixes to pull reqest #192 2015-07-05 21:38:45 +02:00
Karl Yngve Lervåg
fd15e01b98 Merge pull request #192 from cledoux/master
Edited fix used for bug #191
2015-07-05 21:33:05 +02:00
Karl Yngve Lervåg
d6347dfb2f Support minted package custom envs (#167)
Also update test file.
2015-07-05 21:30:47 +02:00
micbou
b1020447d3 Escape backslashes in path
Backslashes in path must be escaped before being processed by the
substitute() function.
2015-07-04 14:04:25 +02:00
Karl Yngve Lervåg
892ad49132 Merge pull request #194 from micbou/windows-build
Fix compilation when Vim path contains spaces
2015-07-04 09:39:36 +02:00
Karl Yngve Lervåg
46ef742941 Improve minted support
Added support for LANGcode environments.
2015-07-04 09:36:32 +02:00
micbou
02e94bb258 Fix compilation when Vim path contains spaces
g:vimtex_latexmk_progname may contain spaces so it should be
surrounded by double quotes when used in $success_cmd and
$failure_cmd latexmk options.
2015-07-02 15:52:20 +02:00
Charles LeDoux
88a06f759a Edited fix used for bug #191
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.
2015-07-01 18:41:24 -05:00
Karl Yngve Lervåg
778eb53961 Don't override modeline fold settings (fixes #191) 2015-07-01 23:38:32 +02:00
Karl Yngve Lervåg
22eabfe48e Use generic interface for generic viewers
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
2015-06-30 21:52:42 +02:00
Karl Yngve Lervåg
b29b91affc Improve label completion (fixes #182) 2015-06-26 22:12:47 +02:00
Karl Yngve Lervåg
7a91dfde9f Change name to snippets
Updated creation of predefined snippets

Allow to create custom snippets through g:vimtex_snippets_custom

See: #172
2015-06-22 21:42:21 +02:00
Karl Yngve Lervåg
4069edc4b0 Merged with master 2015-06-22 20:49:19 +02:00
Karl Yngve Lervåg
078ceb76d6 Create mappings after modules are initialized
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
2015-06-22 20:45:10 +02:00
Karl Yngve Lervåg
d530a6beb4 Mappings should now work 2015-06-21 22:29:00 +02:00
Karl Yngve Lervåg
b9c438d6ee Merge branch 'master' into math-mappings 2015-06-21 21:04:39 +02:00
Karl Yngve Lervåg
e1fd82296a Fix quickfix window bug (fixes #184)
Callback could sometimes open quickfix window when the current buffer was not
a LaTeX (.tex) buffer.
2015-06-21 20:59:31 +02:00
Karl Yngve Lervåg
100ce1aa13 Use new option for callback executable
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
2015-06-21 20:32:50 +02:00
Karl Yngve Lervåg
82ecbeef71 First attempt at built-in Skim support
See: #185
2015-06-21 00:07:37 +02:00
Karl Yngve Lervåg
d4c26abccf Improved filename change handler
* Added informative message
* Kill old latexmk process if active

See: #187
2015-06-20 23:45:05 +02:00