Commit Graph

732 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
bb03883581 Added option for change env completion (#174) 2015-06-06 19:56:35 +02:00
Karl Yngve Lervåg
a118fb5163 Improve vimL in change.vim 2015-06-06 19:47:05 +02:00
Karl Yngve Lervåg
aab42ad2ae Only initilize mupdf viewer once 2015-06-05 23:57:41 +02:00
Karl Yngve Lervåg
421e53b54e Removed debug print statement 2015-06-05 23:56:37 +02:00
Karl Yngve Lervåg
bba575b3b6 Simplified local data var name 2015-06-05 23:55:34 +02:00
Karl Yngve Lervåg
b891bd72a3 Only initialize viewer once (fixes #177) 2015-06-05 23:02:17 +02:00
Karl Yngve Lervåg
d65f92d7b9 Don't reset PID if already set (fixes #176) 2015-06-05 22:37:11 +02:00
Karl Yngve Lervåg
e05ba6b9ae Fixed completion of cse (fixes #174) 2015-06-05 22:14:11 +02:00
Karl Yngve Lervåg
23338b31a3 Fixed stupid bug 2015-06-01 08:04:47 +02:00
Karl Yngve Lervåg
6fa8a0dbb3 Minor update 2015-05-31 22:57:50 +02:00
Karl Yngve Lervåg
68d61d2f98 Added latexmk callback for general viewer (#175) 2015-05-31 22:56:27 +02:00
Karl Yngve Lervåg
91942ceb25 Improved the math mapping structure 2015-05-30 10:41:19 +02:00
Karl Yngve Lervåg
01e832d019 Added first mappings 2015-05-29 13:39:18 +02:00
Karl Yngve Lervåg
e91aeaf952 Remove deprecated vimtex.words() 2015-05-25 17:59:53 +02:00
Karl Yngve Lervåg
af3c341170 Obey vint warnings 2015-05-18 19:10:12 +02:00
Karl Yngve Lervåg
6866fe3d1f Fixed bug in ref completion (fixes #169) 2015-05-18 19:08:25 +02:00
Karl Yngve Lervåg
b084da901b Improved VimtexWordCount (fixes #166) 2015-05-16 22:14:52 +02:00
Karl Yngve Lervåg
9b5b013953 Fixed a problem with update of manual folds
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.
2015-05-13 13:50:04 +02:00
Karl Yngve Lervåg
0ae44d8543 Accept : at end of fold section 2015-05-12 12:00:47 +02:00
Karl Yngve Lervåg
62236ee002 Initial version of VimtexWordCount (#166)
It has some more potential for improvement, both in how the count is
displayed after `:VimtexWordCount` and in adding some options.
2015-05-10 11:00:31 +02:00
Karl Yngve Lervåg
763a796273 Improve support for output_directory (fixes #162)
Old code did not support absolute paths for output directory.
2015-05-05 20:49:29 +02:00
Karl Yngve Lervåg
ce89b89c49 Only use -outdir if needed (fixes #161)
The -outdir option is only available in latexmk after version 4.27.
2015-05-05 06:18:51 +02:00
Karl Yngve Lervåg
1cc368fb88 Remove commented code 2015-05-03 09:01:59 +02:00
Karl Yngve Lervåg
68b9ce1237 Accept proposal to respect CWD (fixes #155) 2015-05-01 13:55:11 +02:00
Karl Yngve Lervåg
e74fc287ed Improved support for subfiles package (#155)
Added parsing of main file from `\documentclass[main.tex]{subfiles}`.
2015-04-29 15:40:08 +02:00
Karl Yngve Lervåg
566463fbf8 Use tasklist instead of qprocess (#154)
This commit is mostly intended in order to test whether tasklist is acceptable
as the only option for getting PIDs on windows.  The command used here is based
on the information provided in the github issue thread (#154).
2015-04-29 15:16:44 +02:00
Karl Yngve Lervåg
6156160290 Fix compatibility with older vim versions (#154) 2015-04-29 15:02:26 +02:00
Karl Yngve Lervåg
299f51c0c7 Fix conditionals (cf. #157) 2015-04-27 10:20:36 +02:00
Karl Yngve Lervåg
07496f18c0 Minor bug fix 2015-04-26 09:49:57 +02:00
Karl Yngve Lervåg
704baf8652 Support argument for VimtexView (fixes #157) 2015-04-26 09:48:24 +02:00
Karl Yngve Lervåg
3d2f90a7b7 Improve vimL 2015-04-26 09:26:49 +02:00
Karl Yngve Lervåg
3f62338895 Add buffer var for main file (fixes #155) 2015-04-26 09:02:28 +02:00
Karl Yngve Lervåg
710c6f3d7a Minor simplification/update after #158 2015-04-23 07:49:09 +02:00
Juan Ignacio Polanco
5cd1c75ee9 Fix infinite recursion with multi-file projects
Fix infinite recursion when looking for the main tex file, in
s:get_main_recurse. This is done by avoiding calls to that function over a
single file more than once.
2015-04-22 19:29:47 -03:00
Juan Ignacio Polanco
a6e4f6d3df Fix multi-file projects using "%! TEX" header
Main file was loaded incorrectly when the path in the header was relative.
In that case, it was assumed that the path was relative to the current
directory (:pwd), when it should be relative to the path of the current file
('%:h').
2015-04-22 18:54:09 -03:00
Karl Yngve Lervåg
714e590663 Fix viewer issue (#154) 2015-04-14 17:08:36 +02:00
Spencer Michaels
c48062ff4a Add a space after the '-c' flag in latexmk#clean.
Previously the lack of a space after '-c' would cause VimtexClean
to silently fail when not performing a full clean.
2015-04-13 20:56:44 -07:00
Karl Yngve Lervåg
1dad424c2c Trim returned fold text (closes #149)
Also added a short comment on 'fillchars' to docs.
2015-04-09 07:51:33 +02:00
Karl Yngve Lervåg
823c4cf037 Merge pull request #147 from micbou/youcompleteme
Improve docs for Youcompleteme
2015-04-07 10:12:52 +02:00
Karl Yngve Lervåg
c21fdb4369 Fixed syntax for fish shell (fixes #148) 2015-04-07 10:11:36 +02:00
Karl Yngve Lervåg
7ac9370576 Use portable shell redirects (see #148) 2015-04-07 10:06:18 +02:00
micbou
00d05d2eb8 Always return a value in complete#omnifunc 2015-04-06 18:27:51 +02:00
micbou
43a12a5621 Fix util#execute on Windows 2015-04-06 13:52:09 +02:00
Karl Yngve Lervåg
8e537d80c1 Use robust operators 2015-04-05 20:36:41 +02:00
Karl Yngve Lervåg
41bbce7520 Reorder mappings for code clarity 2015-04-05 20:36:06 +02:00
Konfekt
5c8247b2aa correct type 2015-04-03 22:26:31 +02:00
Konfekt
3687fc268f silence mappings and make operator maps more robust
This makes the operator mappings work if not all of the following
conditions are fulfilled: 

- `v` entered character-wise or block-wise visual mode, and
- the visual mode map was mapped to the default key sequence
2015-04-03 22:24:54 +02:00
Karl Yngve Lervåg
2a15ff0bc1 Use system(...) to avoid redraw (fixes #142) 2015-04-02 20:06:57 +02:00
Karl Yngve Lervåg
f70279c4ed Minor update of util#execute 2015-04-02 20:05:07 +02:00
Karl Yngve Lervåg
ef80217ffc Updated includeexpr to parse \space's 2015-04-01 15:57:02 +02:00
Karl Yngve Lervåg
97f0fa45b8 Use options from Ben Fishers filetype plugin 2015-04-01 15:56:27 +02:00
Karl Yngve Lervåg
da69a60312 Minor change of init structure 2015-04-01 15:54:14 +02:00
Karl Yngve Lervåg
ca29d624bc Moved some options 2015-04-01 15:52:48 +02:00
Karl Yngve Lervåg
8fac072469 Use g:vimtex_index_split_width correctly (fixes #140) 2015-03-31 15:44:36 +02:00
Karl Yngve Lervåg
f77df6eb6a Improve vimscript code 2015-03-24 14:32:49 +01:00
Karl Yngve Lervåg
9f4cbead8c Change default value of automatic folding 2015-03-24 14:32:30 +01:00
Karl Yngve Lervåg
d53d85404f Remove strange indent in index print_entries 2015-03-24 14:22:37 +01:00
Karl Yngve Lervåg
4cbdfc4fcc Excl preamble inputs in ToC and ToL (fixes #138) 2015-03-24 14:20:52 +01:00
Karl Yngve Lervåg
991c6de17f Fix mapping conflict 2015-03-23 22:08:21 +01:00
Karl Yngve Lervåg
f321f412e0 Add default mappings for table of labels 2015-03-23 20:04:14 +01:00
Karl Yngve Lervåg
a88ca00e8f Also remove default mappings to help and reinit 2015-03-23 20:03:52 +01:00
Karl Yngve Lervåg
66b0f76630 Change '30' to 30 2015-03-23 19:23:49 +01:00
Karl Yngve Lervåg
48bb9daebe Added g:vimtex_index_split_width
This variable is the same as the previous g:vimtex_toc_width.

Also changed 'vimtex_index_split' to 'vimtex_index_split_pos'.
2015-03-23 19:21:57 +01:00
Karl Yngve Lervåg
fcf870c7ce Remove VimtexHelp and VimtexReinitialize
These commands seemed to be very useless.
2015-03-23 19:19:24 +01:00
Karl Yngve Lervåg
2268a55ff7 Prevent overwrite of s:initialized 2015-03-23 19:18:19 +01:00
Karl Yngve Lervåg
2f99e48828 Added table of labels functionality (fixes #54) 2015-03-21 19:33:17 +01:00
Karl Yngve Lervåg
dc9522069f Moved index help to top of buffer 2015-03-21 19:31:10 +01:00
Karl Yngve Lervåg
73ed34b804 Minor change 2015-03-21 17:12:38 +01:00
Karl Yngve Lervåg
bd1de1feef Implemented a new system for displaying ToCs 2015-03-21 11:54:07 +01:00
Karl Yngve Lervåg
e12e73a3a0 Minor code improvements 2015-03-20 21:36:17 +01:00
Karl Yngve Lervåg
f8c41be09f build_dir option must be accessible (fixes #135) 2015-03-20 21:35:56 +01:00
Karl Yngve Lervåg
3d98484a8f Minor code improvements 2015-03-20 21:30:59 +01:00
Karl Yngve Lervåg
f032c3bc2b Fixed typo (fixes #134) 2015-03-20 21:29:49 +01:00
zegervdv
54eb67ba38 Add autoref syntax and completion 2015-03-12 09:56:24 +01:00
Karl Yngve Lervåg
c8a758558e Fixed #132 2015-03-11 12:30:11 +01:00
Karl Yngve Lervåg
fb7e698c6b Fix typo 2015-03-11 06:32:00 +01:00
Karl Yngve Lervåg
33a61e38b4 Run callbacks only when appropriate (fixes #132) 2015-03-10 22:37:54 +01:00
Karl Yngve Lervåg
9e6ebd44c7 Implemented vimtex status message system 2015-03-10 22:28:33 +01:00
Karl Yngve Lervåg
8ea72aa938 Refactored output file check in view.vim 2015-03-10 20:52:43 +01:00
Karl Yngve Lervåg
c2e0c41dfd Don't redraw before message! 2015-03-10 15:20:39 +01:00
Karl Yngve Lervåg
4c4597b618 Added redraw! after external silent (fixes #125) 2015-03-10 14:31:58 +01:00
Karl Yngve Lervåg
0d903ee513 Added extensions to 'suffixes' 2015-03-10 14:30:40 +01:00
Karl Yngve Lervåg
dda6f1fc85 Improved messages 2015-03-10 07:43:17 +01:00
Karl Yngve Lervåg
2fd7ec09cc Let error command be toggle (#131) 2015-03-10 07:43:00 +01:00
Karl Yngve Lervåg
c8dd192d16 Minor bugfix in latexmk.vim 2015-03-08 19:47:22 +01:00
Karl Yngve Lervåg
e906ceca5a Fixed vimtex_toc stuff 2015-03-08 17:18:37 +01:00
Karl Yngve Lervåg
a14cc5997d Changed plugin name to vimtex 2015-03-08 17:15:44 +01:00
Karl Yngve Lervåg
d9be80a86e Improve highlight for callback status msg 2015-03-08 16:52:31 +01:00
micbou
b3b55833fe Return an empty string in callback function
By returning an empty string in latex#latexmk#callback function,
gvim does not open an error window with value "0" after each
compilation.
2015-03-02 16:30:35 +01:00
Karl Yngve Lervåg
5b4627e162 Some updates to labels interface (#54) 2015-02-27 13:03:30 +01:00
Karl Yngve Lervåg
acf5c1702d Added preliminary modul for table of labels 2015-02-27 12:52:50 +01:00
Karl Yngve Lervåg
c5d00669f8 Some minor updates and fixes 2015-02-27 12:12:48 +01:00
Karl Yngve Lervåg
f42947311b Improved info writer 2015-02-27 08:30:58 +01:00
Karl Yngve Lervåg
ee2308a415 Further improvements and refining touches 2015-02-26 16:51:50 +01:00
Karl Yngve Lervåg
74e7f25209 Removed garbage and fixed bug (#125) 2015-02-25 17:19:18 +01:00
Karl Yngve Lervåg
deb80daa4e Set default value for b:latex_view_method 2015-02-25 08:41:53 +01:00
Karl Yngve Lervåg
d9b30f92bc Major update of codebase for viewers
Use Dictionaries for each viewer and connect the chosen viewer to the main data
blob.
2015-02-24 23:36:20 +01:00
Karl Yngve Lervåg
a9094d40cc Added support for qpdfview (fixes #122) 2015-02-24 22:10:10 +01:00
Karl Yngve Lervåg
dddc35d759 General code improvement to view.vim 2015-02-24 22:09:41 +01:00
Karl Yngve Lervåg
8d32ea22c7 Improve zathura and mupdf viewers
Improve coupling between viewers and latexmk
2015-02-23 22:08:13 +01:00
Karl Yngve Lervåg
ba9e45e11b Refactor difference between win32 and unix 2015-02-23 22:06:02 +01:00
Karl Yngve Lervåg
30aa9bf538 Some minor bug fixes 2015-02-23 14:02:49 +01:00
Karl Yngve Lervåg
f201abb073 Support for zathur pdf viewer (fixes #118) 2015-02-23 13:22:47 +01:00
Karl Yngve Lervåg
9684fd4a62 Remove debug pretty print statement 2015-02-16 12:08:55 +01:00
Karl Yngve Lervåg
48e0769ed5 Refine filtering of completed labels 2015-02-13 18:58:26 +01:00
Karl Yngve Lervåg
7e5a465f3b Added VimLatexLacheck command 2015-02-10 14:50:49 +01:00
Karl Yngve Lervåg
dde6dcad2d Move errorformat to compiler file 2015-02-10 11:29:29 +01:00
Karl Yngve Lervåg
c6c5d78af9 Fix parse included files with space for lab. comp. 2015-02-04 12:57:21 +01:00
Karl Yngve Lervåg
7782ac6452 Remove erroneous use of fnameescape (fixes #110) 2015-02-04 12:17:45 +01:00
Karl Yngve Lervåg
241ea89117 Some minor clean up 2015-01-30 20:27:54 +01:00
Karl Yngve Lervåg
2fd99514ec Added repeat support (fixes #103) 2015-01-30 20:21:07 +01:00
Karl Yngve Lervåg
5f7d78383e Use <plug>(vl-...) instead of <plug>VimLatex 2015-01-30 19:47:19 +01:00
Karl Yngve Lervåg
de98b867e3 Fixed minor bug 2015-01-30 13:20:38 +01:00
Karl Yngve Lervåg
864f4d3a2d Use <plug> and move defaults to mappings.vim 2015-01-30 13:02:27 +01:00
Karl Yngve Lervåg
760f58366f Fixed #108: singleshot compile not working 2015-01-30 11:08:08 +01:00
Karl Yngve Lervåg
828f4008a5 Fixed indents after merge 2015-01-30 10:05:35 +01:00
Karl Yngve Lervåg
d9f58a8b20 Merge pull request #106 from salviati6/issue105
Fix for issue #105
2015-01-30 10:03:28 +01:00
Karl Yngve Lervåg
b55b539564 Fixed rare mupdf winid issue 2015-01-30 09:19:24 +01:00
Karl Yngve Lervåg
322709f13e Do forward search with MuPDF in the callback 2015-01-30 09:01:53 +01:00
Fang Zhang
cbc968a194 Add a fold marker to the newly added util function and move it to the correct place in alphabetical order;
Correct a small typo
2015-01-30 10:58:32 +08:00
Fang Zhang
ab8dbd88c8 Fix issue #105 2015-01-30 10:40:55 +08:00
Karl Yngve Lervåg
7f117363d8 Improved docs, improved MuPDF support 2015-01-29 21:12:43 +01:00
Karl Yngve Lervåg
270f2a80ba Minor change 2015-01-29 19:47:40 +01:00
Karl Yngve Lervåg
4f11b80ef1 Use callbacks to indicate compile status 2015-01-29 19:47:11 +01:00
Karl Yngve Lervåg
ab1fc98ae2 Refactor latexmk callback 2015-01-29 19:10:38 +01:00
Karl Yngve Lervåg
b67444b459 Cleaned up mupdf view interface
Begin preparation to improve robustness and functionality
2015-01-29 13:38:59 +01:00
Karl Yngve Lervåg
cd61bc33e4 Minor clean up in latexmk 2015-01-29 13:38:07 +01:00
Karl Yngve Lervåg
fa87fbfe4e Clean up view.vim and updated docs
Also added okular to set of viewers
2015-01-29 13:37:38 +01:00
Karl Yngve Lervåg
bc34b096a5 Updated dsc, remove dependency of surround.vim 2015-01-29 12:04:41 +01:00
Karl Yngve Lervåg
45d1935b5b Fixed minor bug 2015-01-27 21:48:45 +01:00
Karl Yngve Lervåg
a22cb70898 Fixed a minor bug 2015-01-27 21:14:10 +01:00
Karl Yngve Lervåg
1f547978df Add commands dsc and csc (solves #97) 2015-01-27 21:12:57 +01:00
Karl Yngve Lervåg
cc0a8e35dc Moved several options 2015-01-26 15:41:40 +01:00
Konfekt
4eaa5a287d use v:progname instead of progpath because exists for all Vim Versions > 6
Closes https://github.com/lervag/vim-latex/issues/101
2015-01-21 10:04:42 +01:00
Karl Yngve Lervåg
7b9c3b8f7c Added OSX specific default value (fixes #100) 2015-01-18 22:44:47 +01:00
Karl Yngve Lervåg
7489c81ec6 Merge pull request #95 from Konfekt/master
make mupdf work for multiple instances of Vim with same main TeX file
2015-01-17 14:15:26 +01:00
Karl Yngve Lervåg
356c577db7 Use v:progpath to determine vim executable 2015-01-17 14:13:07 +01:00
Enno Nagel
7f51fdfa6d update mupdf window id after latexmk launched new viewer 2015-01-13 12:31:55 +01:00
Enno Nagel
74d10c15be inverse search: make vim cursor position better reflect positin in pdf 2015-01-13 12:31:55 +01:00
Enno Nagel
17f184a866 if inverse search invoked for the first time, then check if viewer open 2015-01-13 12:31:44 +01:00
Enno Nagel
a9444bd4b6 clean up check if mupdf running 2015-01-13 12:25:45 +01:00
Enno Nagel
cf152e27ce make mupdf work for multiple instances of Vim with same main TeX file name 2015-01-13 12:25:39 +01:00
Enno Nagel
9dade3c42a add VimLatexErrors! that does not open the quickfix window 2015-01-10 14:56:28 +01:00
Karl Yngve Lervåg
f3be519af1 Allow reverse search to go to correct file 2015-01-04 14:15:00 +01:00
Karl Yngve Lervåg
f5256badce Added reverse search for MuPDF (fixes #89) 2015-01-02 18:54:43 +01:00
Karl Yngve Lervåg
6d47439877 Add option latex_latexmk_options (fixes #90) 2015-01-01 15:20:07 +01:00
Karl Yngve Lervåg
5beea84ae8 Fix TOC space width for multibyte chars (#92) 2015-01-01 15:02:07 +01:00
Karl Yngve Lervåg
0a8cbaafd9 Changed split_side to split_pos (fixes #91) 2015-01-01 11:31:15 +01:00
Karl Yngve Lervåg
c4ac21a2a5 Minor syntactic update 2015-01-01 11:30:16 +01:00
Karl Yngve Lervåg
7070dab621 Even better MacOS detection 2014-12-25 15:39:53 +01:00
Karl Yngve Lervåg
9399609fd8 Updated MacOS check 2014-12-25 15:30:55 +01:00
Karl Yngve Lervåg
8266531eb5 Use mvim on macos (fixes #83) 2014-12-25 15:27:43 +01:00
Enno Nagel
c70893146d fix standard cmd shell check
all of the latexmk and util library assumes that
under MS Windows the cmd shell is used.

The commit does this assumption justice.
2014-12-15 15:01:22 +01:00
Karl Yngve Lervåg
f45faf6bde Break long lines 2014-12-15 13:56:54 +01:00
Enno Nagel
f71ecc279d ensure that under MS Windows standard cmd shell executes bang commands
all of the latexmk and util library assumes that
under MS Windows the cmd shell is used.

The commit does this assumption justice.
2014-12-15 09:45:16 +01:00
Karl Yngve Lervåg
725aae51eb Remove a comment and an unecessary empty line 2014-12-13 22:11:34 +01:00
Karl Yngve Lervåg
6db1fb8f90 Merge pull request #82 from Konfekt/master
make latexmk continuous under windows more robust
2014-12-13 22:09:39 +01:00
Konfekt
a03ccd82b6 make continuous latexmk more robust under MS Windows 2014-12-13 20:02:53 +01:00
d125q
b1d2c8a045 Added a forgotten shellescape 2014-12-08 21:58:12 +01:00
Karl Yngve Lervåg
7410bf1543 Add shiftwidth to modelines 2014-12-08 20:44:17 +01:00
Karl Yngve Lervåg
42c6ecbf6c Added sumatrapdf to list of viewers 2014-12-08 20:37:42 +01:00
d125q
698bb6c826 Added SumatraPDF to view.vim 2014-12-08 17:34:21 +01:00
Karl Yngve Lervåg
be02246fec Generalized view functionality 2014-12-07 20:08:19 +01:00
Karl Yngve Lervåg
f4fa5e5df1 Added banged version of VimLatexCompileSS (#71) 2014-12-04 20:30:29 +01:00
Karl Yngve Lervåg
b60b5d4497 Add option to hide TOC line numbers (#67) 2014-12-02 20:15:31 +01:00
Karl Yngve Lervåg
032bc29cc5 Minor adjustment to single shot compile 2014-12-01 18:27:56 +01:00
Karl Yngve Lervåg
406e3725f6 Added single shot compile command (solves #71) 2014-12-01 08:28:44 +01:00
Karl Yngve Lervåg
df2ed5292b LocalLeader -> localleader 2014-11-24 20:25:00 +01:00
Karl Yngve Lervåg
86c189eb39 Use fnameescape for lcd commands (fixes #70) 2014-11-23 17:24:58 +01:00
Karl Yngve Lervåg
02b68bdff8 Improvements to TOC (see #67) 2014-11-22 17:29:30 +01:00
Karl Yngve Lervåg
b780071121 Fixed minor bug in latexmk clean 2014-11-19 13:59:41 +01:00
Karl Yngve Lervåg
c2b5f12691 Shellescape to allow file name with space (fixes #65) 2014-11-19 13:54:56 +01:00
Karl Yngve Lervåg
9ba620100c One more space padding fix (for #63) 2014-11-19 09:58:48 +01:00
Karl Yngve Lervåg
2eea3da109 Accept surrounding spaces in input for TOC (see #63) 2014-11-19 09:13:55 +01:00
Karl Yngve Lervåg
5e99322a6a Apply -outdir=g:latex_build_dir (fixes #57) 2014-11-18 21:34:08 +01:00
Leszek Swirski
24a03920fe win32: Wrap bg cmd in quotes 2014-11-12 13:21:10 +00:00
Karl Yngve Lervåg
c12ae33353 Fixed empty tmp-file bug in latexmk#output() 2014-11-06 20:36:39 +01:00
Karl Yngve Lervåg
ac44035f4d Added command and doc for latex#latexmk#toggle 2014-11-06 20:30:27 +01:00
Karl Yngve Lervåg
a18d29cc81 Let <leader>ll toggle compilation (see #59) 2014-11-06 20:19:16 +01:00
Karl Yngve Lervåg
e329057dd0 Use old style split of globpath 2014-10-30 19:54:49 +01:00
Karl Yngve Lervåg
eceef44436 Fix open fold preamble issue (#56) 2014-10-13 20:16:31 +02:00
Karl Yngve Lervåg
116fb46e51 Differ between bg and silent (fixes #51) 2014-08-26 08:05:18 +02:00
Karl Yngve Lervåg
0dc505bd58 Added option to turn of continuous mode (see docs) 2014-08-24 21:22:24 +02:00
Luc Grosheintz
a1ea8b3fa1 Fix simplistic if pid tests
Add a new function s:latexmk_check_pid(pid) to check whether the given
PID is still alive and is owned by a latexmk process.

This allows
   let g:latex_latexmk_options = '-pvc-'
i.e. compile only when explicitely called.
2014-08-18 20:17:09 +02:00
Karl Yngve Lervåg
e5e5f2b07b Separate toc init and toc refresh 2014-08-11 22:30:33 +02:00
Karl Yngve Lervåg
3c5d367c3c Better handling of secnumdepths 2014-08-11 17:19:00 +02:00
Karl Yngve Lervåg
e5cfd7c027 Revert simplification from 563c0648 2014-08-11 16:39:13 +02:00
Karl Yngve Lervåg
f581f7f552 Fixed yet another stupid bug 2014-08-11 15:33:09 +02:00
Karl Yngve Lervåg
04b3b8382f Fixed another silly mistake 2014-08-11 07:43:10 +02:00
Karl Yngve Lervåg
3d9a6bf956 Catch missing file error in fold level parser 2014-08-10 21:20:55 +02:00
Karl Yngve Lervåg
7c5d33091e Fixed #47: pid error 2014-08-10 21:13:21 +02:00
Karl Yngve Lervåg
563c06483b Added g:latex_toc_hide_preamble (fixes #46) 2014-08-10 20:44:57 +02:00
Karl Yngve Lervåg
4a1fa3bbdb Minor fixes to previous TOC updates 2014-08-10 20:43:57 +02:00
Karl Yngve Lervåg
f85ce35436 Updated TOC, added g:latex_toc_secnumdepth
Real time update of displayed TOC levels.
2014-08-10 18:45:32 +02:00
Karl Yngve Lervåg
cf4f1a8d74 Fixed stupid minor bug 2014-08-04 14:13:37 +02:00
Karl Yngve Lervåg
2fa0fea6c9 More general view command 2014-08-03 10:22:49 +02:00
Karl Yngve Lervåg
e38992d453 Use verbose for latexmk 2014-08-03 10:22:34 +02:00
Karl Yngve Lervåg
49a100cafd Better latex info 2014-08-03 09:14:05 +02:00
Karl Yngve Lervåg
7eff78977f Use setlocal 2014-08-03 08:06:12 +02:00
Karl Yngve Lervåg
6b037520a8 Minor refactoring 2014-08-03 07:50:20 +02:00
Tim Brosnan
2fcd2283b9 - Fix latexmk compiling on Windows 7
- Change the formatting of the command string on Windows 7
2014-08-03 00:59:49 +01:00
Karl Yngve Lervåg
180b410f1a Attempt to fix latexmk callback for windows 2014-08-02 16:05:24 +02:00
Karl Yngve Lervåg
232e2bf3c4 Fix minor bug in VimLeave autocommand 2014-08-02 15:12:14 +02:00
Karl Yngve Lervåg
0c5495d90c Added utility function to show latexmk output 2014-08-02 15:09:22 +02:00
Karl Yngve Lervåg
f9fe109baa systemroot preferable to windiw 2014-08-02 14:19:17 +02:00
Karl Yngve Lervåg
bef84296d8 Remove shellslash options, fix windows find (#40) 2014-08-02 13:49:09 +02:00
Karl Yngve Lervåg
e00fb95767 Minor fix 2014-07-31 23:29:05 +02:00
Karl Yngve Lervåg
fa9bdbb646 Fix TOC filename issue on windows (fixes #39)
Forgot in previous commit that windows root names start with '[A-Z]:'
and not '/'.
2014-07-31 23:27:05 +02:00
Karl Yngve Lervåg
56bf63b58d Some refactoring and minor changes to bib completion 2014-07-30 19:59:29 +02:00
Karl Yngve Lervåg
cd923df205 Ensure full path names for label input files 2014-07-30 19:10:21 +02:00
Karl Yngve Lervåg
4873e571c5 Fixed handling of file names in TOC 2014-07-30 18:10:42 +02:00
Karl Yngve Lervåg
3b78257496 Remove unecessary option in latexmk cmd 2014-07-30 15:18:57 +02:00
Karl Yngve Lervåg
c8f6030775 Fixed minor bug (fixes #41) 2014-07-30 12:05:40 +02:00
Karl Yngve Lervåg
c4ee417704 Allow arguments to VimLatexView 2014-07-30 10:59:43 +02:00
Karl Yngve Lervåg
5a59cdda09 Fixed filenames for TOC parsing 2014-07-29 09:27:48 +02:00
Karl Yngve Lervåg
16c4c0e25c Disable shellslash while shellescaping 2014-07-29 09:10:22 +02:00
Karl Yngve Lervåg
30b551bc58 Better definition for inner environments 2014-07-28 14:54:04 +02:00
Karl Yngve Lervåg
28f7120eab New attempt at fix for #39 2014-07-28 08:19:42 +02:00
Karl Yngve Lervåg
75cd19b268 Run commands in given working directory 2014-07-27 21:51:08 +02:00
Karl Yngve Lervåg
54425a7d40 Don't map in selection mode 2014-07-27 21:18:01 +02:00
Karl Yngve Lervåg
d4afdc4dcd Fixed stupid bug 2014-07-27 21:14:35 +02:00
Karl Yngve Lervåg
3a2e2af293 Optimize fold refresh 2014-07-27 21:06:26 +02:00
Karl Yngve Lervåg
4c83713129 Some refactoring of TOC 2014-07-27 20:41:23 +02:00
Karl Yngve Lervåg
07bd5f134e Only fold matters if more than one 2014-07-27 19:57:22 +02:00
Karl Yngve Lervåg
22fae88827 Ignore if only one \*matter command is used
Ignore the \(front|back|main)matter commands for the TOC if only one of
them is used.
2014-07-27 19:53:03 +02:00
Karl Yngve Lervåg
01e9ab6c03 Also remap zX for folding 2014-07-25 08:24:01 +02:00
Karl Yngve Lervåg
dab05dab17 Some minor fixes/changes 2014-07-24 19:31:42 +02:00
Karl Yngve Lervåg
94a67005e0 Add support for on demand folding
Inspired by recent pull request for LaTeX-Box:
https://github.com/LaTeX-Box-Team/LaTeX-Box/pull/205
2014-07-24 19:16:11 +02:00
Karl Yngve Lervåg
8708c7935d Added header to plugin files 2014-07-23 00:08:57 +02:00
Karl Yngve Lervåg
5a3d08cd34 Only escape file name when needed 2014-07-22 01:26:27 +02:00
Karl Yngve Lervåg
86e63c282e Remove inconsistent mapping (fixes #36)
The mapping was not even mentioned in the docs, and seemed inconsistent with
other mappings.  Decided to remove it for now, unless I find a better way to
deal with this.
2014-07-22 00:11:44 +02:00
Karl Yngve Lervåg
910db68b44 Fix option g:latex_toc_fold_levels 2014-07-20 15:59:20 +02:00
Karl Yngve Lervåg
fa66acf7fd Fixed folding of TOC window (fixes #34) 2014-07-20 15:51:13 +02:00
Karl Yngve Lervåg
e171ba5a3b Improved TOC (fixes #31)
* Syntax works for unnumbered sections
* No numbers on frontmatter
2014-07-20 14:47:41 +02:00
Karl Yngve Lervåg
1ba745a177 Don't show filename parsing in quickfix window 2014-07-20 14:46:47 +02:00
Karl Yngve Lervåg
78af48acca Improved TOC parsing 2014-07-19 00:12:37 +02:00
Karl Yngve Lervåg
515526dff0 Add alphabetical index to TOC (fixes #32) 2014-07-17 19:46:19 +02:00
Karl Yngve Lervåg
e6718e4377 Better TOC bibliography matching and test 2014-07-17 19:39:21 +02:00
Karl Yngve Lervåg
c2c224caef Improved gather candidate while loop 2014-07-17 18:43:44 +02:00
Karl Yngve Lervåg
193a769456 A couple of minor changes 2014-07-17 10:37:15 +02:00
Karl Yngve Lervåg
19e679707d Add bibliography to TOC 2014-07-16 23:20:11 +02:00
Karl Yngve Lervåg
89a47a0a44 Move options to latex#init() 2014-07-16 23:08:00 +02:00
Karl Yngve Lervåg
ee6d40c7ac Fixed root for Windows 2014-07-16 22:59:06 +02:00
Karl Yngve Lervåg
da45ad0c50 Better search for mail file (fixes #30)
Don't assume project structure is
  project/subdirs/files,
Instead search every parent folder for possible tex files.
2014-07-16 11:37:39 +02:00
Karl Yngve Lervåg
9a715c57a9 Added error message in latex#info if not initialized 2014-07-16 11:10:34 +02:00
Karl Yngve Lervåg
cae066f778 Added commands
Also made minor syntactical changes to source code folding
2014-07-15 14:52:45 +02:00
Karl Yngve Lervåg
8da3c4e536 Fixed TOC closest index issue 2014-07-15 13:41:12 +02:00
Karl Yngve Lervåg
32d7361621 First attempt to fix #28
Ignore section commands in preamble. Also add preamble to TOC.
2014-07-15 12:05:29 +02:00
Karl Yngve Lervåg
55a35fc87f Don't use absolute paths for bib files 2014-07-15 00:52:22 +02:00
Karl Yngve Lervåg
3697f6efa8 Make bib completion work on windows 2014-07-15 00:13:24 +02:00
Karl Yngve Lervåg
5cc61a5028 Fixed s:get_main_recursive() - don't assume pwd 2014-07-15 00:04:10 +02:00
Karl Yngve Lervåg
ef194e82a6 Allow arguments for latex#view (fixes #23) 2014-07-13 00:27:43 +02:00
Karl Yngve Lervåg
d4a5d856a3 First attempt at windows support 2014-07-09 15:12:11 +02:00
Karl Yngve Lervåg
7aed99b369 Added wrapper function for shell execution 2014-07-09 13:56:38 +02:00
Karl Yngve Lervåg
01e2592696 Release candidate ready 2014-07-09 12:43:10 +02:00
Karl Yngve Lervåg
c743e43dca More updates to new TOC system 2014-07-09 12:13:26 +02:00
Karl Yngve Lervåg
1e3f10ee58 Getting closer and closer ... 2014-07-09 12:13:26 +02:00
Karl Yngve Lervåg
17175b2351 Closer to a working new TOC system 2014-07-09 12:13:26 +02:00
Karl Yngve Lervåg
9fc97fc395 Began new system, not completed 2014-07-09 12:13:26 +02:00
Karl Yngve Lervåg
c983c49e15 Fixed bug latextoc#... -> toc#... (#17) 2014-07-09 12:11:03 +02:00
Karl Yngve Lervåg
1e4e173aa4 Add close_environment (finishes #11) 2014-07-04 16:12:40 +02:00
Karl Yngve Lervåg
fb522f9b7c Fix folding preamble 2014-06-29 19:15:19 +02:00
Karl Yngve Lervåg
b99c4f0f7d A couple of minor changes 2014-06-23 09:26:47 +02:00
Karl Yngve Lervåg
992448b06a Added option to only open quickfix window on error
Use
  let g:latex_quickfix_open_on_warning=0
to prevent vim-latex to open quickfix window if there are only warnings.
2014-06-13 22:47:27 +02:00
Karl Yngve Lervåg
f36147946e Fixed a minor bug 2014-06-13 22:47:02 +02:00
Karl Yngve Lervåg
82d98ec1f6 Only error if variable already exist 2014-06-13 21:39:03 +02:00
Karl Yngve Lervåg
83a579fd21 Changed a few option names (check vimrc!)
Also improved the doc.
2014-06-13 21:24:51 +02:00
Karl Yngve Lervåg
b838aa3afd Accept tocsection for TOC secnum parsing 2014-06-12 20:05:16 +02:00
Karl Yngve Lervåg
43410759c3 Improved TOC title parsing 2014-06-12 19:53:43 +02:00
Karl Yngve Lervåg
ecd0306709 Remove nonumberline from TOCs 2014-06-12 19:22:43 +02:00
Karl Yngve Lervåg
b92e2066fc Improved errorformat 2014-06-11 08:17:25 +02:00
Karl Yngve Lervåg
8ec76b0806 Minor improvements to error format 2014-06-10 20:02:36 +02:00
Karl Yngve Lervåg
b29119742d Fixed a minor environment folding issue 2014-06-04 14:54:09 +02:00
Karl Yngve Lervåg
e16960ee25 Proper handling of bib file paths (fixed #14) 2014-05-15 20:46:31 +02:00
Karl Yngve Lervåg
9be217e188 Only provide info when explicitly called 2014-05-13 21:10:43 +02:00
Karl Yngve Lervåg
a00c99bf4d Fix mapping of error window \le (fixes #13) 2014-05-11 20:38:52 +02:00
Karl Yngve Lervåg
cf459d62e7 Add check for missing log file (addresses #13) 2014-05-10 13:10:16 +02:00
Karl Yngve Lervåg
1fd425fd3e Fixed stupid mapping error (#10) 2014-04-14 23:25:47 +02:00
Karl Yngve Lervåg
4f6b74d3e6 Add latex#change#to_command and default mapping
Mapped by default to <F7> in both normal and insert mode.

Solves #10.
2014-04-14 22:37:26 +02:00
Karl Yngve Lervåg
6220f5d1ea Use old version of glob() function for compatability 2014-03-21 13:24:09 +01:00
Karl Yngve Lervåg
bb670948ac Minor simplification of in_comment function 2014-03-13 10:49:40 +01:00
Karl Yngve Lervåg
7de478be74 Better solution for fold part stuff 2014-03-06 11:39:35 +01:00
Karl Yngve Lervåg
7773fabeec Updated folding for sections
Improved handling of which parts to fold and which parts not to fold, and which
parts should be folded at the same level.
2014-03-04 14:27:44 +01:00
Karl Yngve Lervåg
b9eed61cf4 Fixed shellescape bug in latex#view 2014-02-19 17:21:02 +01:00
Karl Yngve Lervåg
c0a195430d Improved latexmk interface: added callback
Added a simple callback function that utilizes the clientserver in vim and the
$success_cmd and $failure_cmd in latexmk to call latex#latexmk#error() after
compilation.  The feature is enabled by default, because it strikes me as
a very nice feature!

Note that this feature might require a minor update to existing .latexmkrc
files, in that existing $success_cmd and $failure_cmd should end in a semicolon
in order to allow vim-latex to append the callback.  I hope I might remove this
restriction in a later update, but I didn't see how to do this now.
2014-02-11 18:38:03 +01:00
Karl Yngve Lervåg
8a5b99a39c Redirect latexmk output to temporary file 2014-02-11 18:23:00 +01:00
Karl Yngve Lervåg
f8c905af2f Dont use ff=unix in modeline 2014-02-10 14:21:43 +01:00
Karl Yngve Lervåg
051a1c2085 Add check for required executables 2014-02-04 13:20:12 +01:00
Karl Yngve Lervåg
678193b362 Use shellescape at the right locations
Shellescape should only be used when variables/strings are used
in the shell directly.  See #9.
2014-02-04 13:16:48 +01:00
Karl Yngve Lervåg
587f560c41 Use shellescape on file names [fixes #9] 2014-02-03 17:13:53 +01:00
Karl Yngve Lervåg
407e8d19e9 Removed .sty extension / absolute paths for cite
Removed the .sty extension, which caused some confusion for the root
detection routine. Not entirely sure what caused the issue, but gf to
.sty seems like a border-line enough case anyway.

Also, I've modified the bibsearch function to better work with larger
projects. It prepends the path of whichever file links to a bib file
to that bib file's path, allowing us to correctly complete citations
even if the bib file and current file are in two different directories
and the main file linking to the bibfile is in a different directory
to the current file.

This could possibly be modified to check for absolute paths in
\bibliography commands, but I don't believe anyone is using those?

Note: This patch was authored by Karl Moritz Hermann (see #8).
2014-02-02 22:04:47 +01:00
Karl Moritz Hermann
84cb8ff4c7 Included files may be specified with full path
This fix makes recursive search work when the main file is in a lower
directory and uses for instance \input{some/path/to/sub.tex}.

Note: Commit message edited by K.Y. Lervåg.
2014-01-30 20:48:04 +01:00
Karl Moritz Hermann
a661d86ad6 Speedup for citation completion 2014-01-30 16:08:28 +00:00
Karl Yngve Lervåg
f996c0c20f Fix a minor issue for PID pgrepping
This should fix PID fetching when shell=/path/to/bash
2014-01-30 15:24:48 +01:00
Karl Yngve Lervåg
a39f44e72d Added simple file readable check 2013-12-26 12:19:53 +01:00
Karl Yngve Lervåg
4beac696c0 Better support for multi-file documents #6 2013-12-10 17:42:25 +01:00
Karl Yngve Lervåg
798d0561a2 Solve #3: Better way of finding main tex file
Instead of searching for predefined main tex file names, I now use a
simple search for files that input or include the current tex file.
2013-12-08 19:32:30 +01:00
Karl Yngve Lervåg
54d5271e79 Minor improvement of efm for biblatex
Show missing reference names
2013-12-08 15:39:23 +01:00
Karl Yngve Lervåg
7a9b19e76d Minor bug fix 2013-11-29 13:15:23 +01:00
Karl Yngve Lervåg
ef411b4f3f Group related code 2013-11-29 12:30:49 +01:00
Karl Yngve Lervåg
c9828a6a8a Fixed #2: latex TOC bug 2013-11-29 12:22:30 +01:00
Karl Yngve Lervåg
f337bab023 Fixed omnicompletion 2013-11-28 11:16:06 +01:00
Karl Yngve Lervåg
5a69a45f22 Better delimiters 2013-11-21 10:36:03 +01:00
Karl Yngve Lervåg
0444b53db7 Fixed a minor bug 2013-11-21 10:35:54 +01:00
Karl Yngve Lervåg
b6b4efb772 Added option for quickfix window 2013-11-20 11:24:19 +01:00
Karl Yngve Lervåg
96207acf4f Minor tweak to latexmk#errors 2013-11-15 08:54:48 +01:00
Karl Yngve Lervåg
2fea33cd52 Minor clean up 2013-11-03 11:48:33 +01:00
Karl Yngve Lervåg
09dca6defa Fixed stupid bug in motion.vim 2013-11-02 17:46:43 +01:00
Karl Yngve Lervåg
8bef60eed8 Fixed toc closest section 2013-10-23 21:00:20 +02:00
Karl Yngve Lervåg
c6fe12f646 Minor fixes to toc window open 2013-10-23 20:45:48 +02:00
Karl Yngve Lervåg
611997ccb4 More minimalistic fold text 2013-10-16 10:01:22 +02:00
Karl Yngve Lervåg
4d6643c5bb Merge branch 'master' of github.com:lervag/vim-latex 2013-10-15 10:19:22 +02:00
Karl Yngve Lervåg
e2ed3dd8c6 Save and restore fdm on undo 2013-10-15 10:19:00 +02:00
Karl Yngve Lervåg
ba36d94bcc Fixed change#delim and change#toggle_delim 2013-10-14 21:59:58 +02:00
Karl Yngve Lervåg
76b2c9f27f Minor bug fix 2013-10-14 14:46:09 +02:00
Karl Yngve Lervåg
5ed2f2ff76 more correct foldcontrol for insert mode 2013-10-13 22:22:07 +02:00
Karl Yngve Lervåg
d9d60cbf99 Some fixes to mappings and docs 2013-10-11 23:24:07 +02:00
Karl Yngve Lervåg
f6135530b6 Minor simplification 2013-10-11 23:16:17 +02:00
Karl Yngve Lervåg
043880714d Message for latex#help when mappings not enabled 2013-10-11 23:13:41 +02:00
Karl Yngve Lervåg
c6c2fb8ed5 Improved latex#info 2013-10-11 23:11:31 +02:00
Karl Yngve Lervåg
00b4e1fe3d Some updates and improvements 2013-10-10 21:48:52 +02:00
Karl Yngve Lervåg
04bcd820e3 Add some utility mappings 2013-10-10 13:01:22 +02:00
Karl Yngve Lervåg
a56d48dc53 Some nice improvements 2013-10-09 20:34:26 +02:00
Karl Yngve Lervåg
374e983d09 Added toggle for left right delims 2013-10-09 12:04:40 +02:00
Karl Yngve Lervåg
bfd99c8c05 Fixed get_delim() 2013-10-09 12:03:04 +02:00
Karl Yngve Lervåg
399a340b07 Began on get_delim and change_delim 2013-10-09 00:02:06 +02:00
Karl Yngve Lervåg
d321623bfc Improve bib complete preview 2013-10-08 23:54:19 +02:00
Karl Yngve Lervåg
3e1043cd4a Slightly better bibtex_find_bibs 2013-10-08 11:02:34 +02:00
Karl Yngve Lervåg
7152088e22 Fix fdm save and restore for insertmode 2013-10-07 15:49:22 +02:00
Karl Yngve Lervåg
ae45837c41 Fixed motion and improved change 2013-10-06 13:39:25 +02:00
Karl Yngve Lervåg
164fc42e8b Fixed reinit 2013-10-06 11:44:50 +02:00
Karl Yngve Lervåg
7808e59239 Initial revision 2013-10-05 13:53:42 +02:00