Commit Graph

843 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
4e7fd6e04b Support opening style and class files
This will use the alternate buffer's vimtex data if it exists, else it will
ignore the vimtex initialization.
2016-08-05 11:12:37 +02:00
Karl Yngve Lervåg
c05bf59a0c Fixed silly mistake 2016-08-05 10:27:05 +02:00
Karl Yngve Lervåg
a67f5dc86c Some updates to zathura_alternative 2016-08-05 09:58:12 +02:00
Karl Yngve Lervåg
34be859a90 Fix #512: strange problem with neocomplete 2016-08-05 08:30:22 +02:00
Karl Yngve Lervåg
665c895ace Fix 1 for #512: Use 79 when tw=0 2016-08-05 08:10:50 +02:00
Karl Yngve Lervåg
1063e822d6 Ref. #443: Fixed forward search 2016-08-04 23:51:55 +02:00
Karl Yngve Lervåg
be32f5651d Minor adjustment 2016-08-04 23:27:56 +02:00
Karl Yngve Lervåg
39a0398f95 Some updates to zathura_alternative 2016-08-04 23:18:56 +02:00
Karl Yngve Lervåg
dbad1dbee7 Fixed #508 2016-08-04 23:02:36 +02:00
Karl Yngve Lervåg
9b12cbd91e First try at #443: Persistent zathura 2016-08-04 22:45:35 +02:00
Karl Yngve Lervåg
0a75bec76a Minor refactoring 2016-08-04 22:12:18 +02:00
Karl Yngve Lervåg
2a849ee67a Improved latexmk callbacks for mupdf/zathura 2016-08-04 21:31:29 +02:00
Karl Yngve Lervåg
0163810065 Some minor code cleaning 2016-08-04 21:30:24 +02:00
Karl Yngve Lervåg
1d546ecc4f Fixed #508: Remove option and filter TOC entries 2016-08-04 20:59:21 +02:00
Karl Yngve Lervåg
e20502c819 Fixed #508: Added feature to show inputted lines in TOC 2016-08-02 22:55:03 +02:00
Karl Yngve Lervåg
110837e71a Fixed formatexpr for insert mode 2016-08-02 21:55:32 +02:00
Karl Yngve Lervåg
5e4e8ef3ef Fixed silly issue for older vims
For some reason, on Vim 7.4.5 (tested with Travis), the line

  l:lines_old = l:lines_old[l:index:]

did not work properly. This works properly with newer Vims, but
this commit fixes it for older Vims.
2016-08-02 21:20:53 +02:00
Karl Yngve Lervåg
3532a6930e Use vimtex warnings, not echoerr 2016-08-02 21:17:09 +02:00
Karl Yngve Lervåg
2549432f3b Ensure that formatted messages start on new line 2016-08-02 21:16:52 +02:00
Karl Yngve Lervåg
0fdaee31ed Completed a fully custom formatexpr (#436) 2016-08-01 22:57:43 +02:00
Karl Yngve Lervåg
b82a8d3798 Fixed minor bug (#436) 2016-07-31 23:12:58 +02:00
Karl Yngve Lervåg
bcbcb2a1b8 Another improvement to import support (#500) 2016-07-31 20:55:48 +02:00
Karl Yngve Lervåg
ae3e32a8e2 Fix #500: Improve support for import package 2016-07-31 00:13:50 +02:00
Karl Yngve Lervåg
d733c249f6 Fixed #505: Handle match IDs as per window objects 2016-07-30 20:05:27 +02:00
Karl Yngve Lervåg
b076d2f72a Fixed #506: Syntax group for help text in ToL 2016-07-30 19:59:50 +02:00
Karl Yngve Lervåg
44e605dbf2 Minor clean up 2016-07-28 22:36:54 +02:00
Christian Mueller
0167c93253 Change order of arguments in s:zathura.start (#504) 2016-07-28 22:29:44 +02:00
Karl Yngve Lervåg
930659bc5e Fix #503: Handle \eqref as \ref{eq: 2016-07-28 19:33:05 +02:00
Karl Yngve Lervåg
c5f8b5d9d3 Fixed the reload guard 2016-07-28 14:01:37 +02:00
Karl Yngve Lervåg
2479aaa37c Fix #502: Handle case where s:completer not defined 2016-07-27 10:01:06 +02:00
Karl Yngve Lervåg
e66c07ff8f Don't format lines inside math envs (#436) 2016-07-24 21:57:29 +02:00
Karl Yngve Lervåg
929d4d8f42 First version of selected compile (#497) 2016-07-23 23:49:01 +02:00
Karl Yngve Lervåg
aeeb52be1a Generalize functions: clean and errors_inquire 2016-07-23 23:45:07 +02:00
Karl Yngve Lervåg
136bb86896 Minor fix to parser code 2016-07-23 23:41:48 +02:00
Karl Yngve Lervåg
61a86e6fa8 Fixed #495: Allow <[local]leader> as leader key 2016-07-22 20:05:11 +02:00
Karl Yngve Lervåg
f5ba71c152 Fix minor bug 2016-07-21 22:01:17 +02:00
Karl Yngve Lervåg
09eb78fcd0 Began #436: Improved formatexpr 2016-07-21 21:52:41 +02:00
Micha Moskovic
1077606f76 always define 'g:vimtex_latexmk_callback_hooks' (#498)
the variable 'g:vimtex_latexmk_callback_hooks' is referred to in
autoload/vimtex/view.vim, so it needs to be defined also if
'g:vimtex_latexmk_enabled' is false.
2016-07-21 12:57:36 +02:00
Karl Yngve Lervåg
47dca26d93 Better handle warning wait for new files (#494) 2016-07-20 20:29:42 +02:00
Karl Yngve Lervåg
a988d49e42 Fix #495: Properly handle quotes in imaps 2016-07-20 20:22:42 +02:00
Karl Yngve Lervåg
a80a2600b0 Fix #493: Improved highlight matching delims 2016-07-18 22:15:43 +02:00
Karl Yngve Lervåg
4cd12fc324 Fix #492: Support older Vim versions 2016-07-15 12:04:40 +02:00
Karl Yngve Lervåg
d45c5595e9 Fixed #445: Add support for non-matching delims 2016-07-13 23:27:27 +02:00
Karl Yngve Lervåg
5553b43804 Add option to ignore wait (e.g. after warnings) 2016-07-12 22:24:28 +02:00
Karl Yngve Lervåg
9207c40d8a Updated messages and warnings
Also fixed clientserver detection for neovim (i.e. use
has('nvim')), cf. #262.
2016-07-12 22:07:17 +02:00
Karl Yngve Lervåg
39fe7b5170 Fixed #477: Add folding for documentclass 2016-07-12 15:06:28 +02:00
Karl Yngve Lervåg
3ec4b49656 Added option for folding of usepackage (#477) 2016-07-12 09:06:21 +02:00
Karl Yngve Lervåg
3dc482db10 Fixed minor error (#477) 2016-07-12 08:59:23 +02:00
Karl Yngve Lervåg
f6deaa6ccf Cf. #477: Add folding for usepackages 2016-07-11 23:44:37 +02:00
Karl Yngve Lervåg
c16bd14709 Optimized s:highlight_matching_pair 2016-07-10 17:57:54 +02:00
Karl Yngve Lervåg
f33e4f9777 Minor fix 2016-07-10 17:57:26 +02:00
Karl Yngve Lervåg
69ad595894 Fix #490: Only fix paths for vimtex 2016-07-06 13:40:02 +02:00
Karl Yngve Lervåg
63d9586347 Cf. #483: Check for clientserver 2016-07-04 13:09:44 +02:00
Karl Yngve Lervåg
7234c5a64f Fixed #486: Relax the map guard 2016-06-28 15:13:51 +02:00
Karl Yngve Lervåg
3494d32a67 Fix #480: simplify paths 2016-06-22 22:31:42 +02:00
Karl Yngve Lervåg
6bcff44f05 Fix #480: Use absolute paths 2016-06-21 11:31:20 +02:00
Karl Yngve Lervåg
304b760624 Fixed #479: Add %-motion to jumplist 2016-06-20 23:29:26 +02:00
Karl Yngve Lervåg
1211d57253 Filter completion candidates by supplied regexp (#471) 2016-06-14 10:25:00 +02:00
Matthias Günther
b40c4103ac Relates to #472 (#476)
* Add option vimtex_fold_section_character for custom fold characters

* Add changes from codereview

* Rename fold-levelmarker variable, thanks @lervag for the review
2016-06-13 18:45:18 +02:00
Karl Yngve Lervåg
ec882ca802 Minor update to changes from #474 2016-06-13 13:55:42 +02:00
Matthias Günther
36442d4c4f Add option vimtex_fold_section_character for custom fold characters (#472)
* Add option g:vimtex_fold_section_character for custom fold characters
* Add changes from codereview
2016-06-13 13:52:15 +02:00
Karl Yngve Lervåg
456de02119 Fixed #470 2016-06-09 17:13:23 +02:00
Karl Yngve Lervåg
455fb3ff2c Fix #469: erroneously always applied :t 2016-06-08 16:17:11 +02:00
Karl Yngve Lervåg
6e9dae11a4 Added VimtexCountLetters
Also changed name: VimtexWordCount to VimtexCountWords
2016-06-07 15:24:27 +02:00
Karl Yngve Lervåg
e70c0b469c Fixed #465 2016-06-04 13:58:24 +02:00
Karl Yngve Lervåg
f921fdb90d Add custom uniq function (support older Vim versions) 2016-06-04 13:41:13 +02:00
Karl Yngve Lervåg
1763cd3ae9 Add tests for cse 2016-05-31 23:59:26 +02:00
Karl Yngve Lervåg
2d816d7559 Remove unnecessary option (#457) 2016-05-31 18:19:01 +02:00
Karl Yngve Lervåg
ed1093839e Fix #463: don't swallow leader outside math 2016-05-31 12:56:18 +02:00
Karl Yngve Lervåg
2d6685119e Feature #457: Smart autocomplete for 'cse' envs 2016-05-29 23:41:13 +02:00
Karl Yngve Lervåg
4e6d1dcf0b Added some aknowledgment to stactrace feature 2016-05-15 11:44:19 +02:00
Karl Yngve Lervåg
e910afe5ac Minor clean up 2016-05-15 11:24:03 +02:00
Karl Yngve Lervåg
84181b1454 Added stacktrace feature for debugging 2016-05-15 11:22:43 +02:00
Karl Yngve Lervåg
7ba646effb Fixed #451: Space in bstfile for bib completion 2016-05-09 22:52:31 +02:00
Karl Yngve Lervåg
ba53cb674a Fix #447: Wrong paths in quickfix entries 2016-05-01 22:47:47 +02:00
Karl Yngve Lervåg
6937f723d1 Don't open second viewer on compilation 2016-04-30 22:30:19 +02:00
Karl Yngve Lervåg
2b5b81c427 Fix minor bug in xdotool cmd 2016-04-30 22:29:41 +02:00
Karl Yngve Lervåg
282baf2366 Detect existing windows on startup 2016-04-30 22:02:25 +02:00
Karl Yngve Lervåg
ee25e4ad0a Check for existing windows if xwin_id=0 2016-04-30 22:01:52 +02:00
Karl Yngve Lervåg
e9743857c3 Improve xwin_exists logic 2016-04-30 22:01:01 +02:00
Karl Yngve Lervåg
7404bd6933 Fix minor bug 2016-04-30 21:56:02 +02:00
Karl Yngve Lervåg
75160c85af More consistent delay for parsing viewer xwin_id 2016-04-30 21:55:46 +02:00
Karl Yngve Lervåg
9038e4066c Fixed minor error 2016-04-28 23:33:01 +02:00
Karl Yngve Lervåg
b514c42cee Fixed #446: Optimized tikz indentation 2016-04-28 23:27:34 +02:00
Karl Yngve Lervåg
3c3f21588c Fixed #441: Use paths relative to main project file 2016-04-23 12:12:17 +02:00
Karl Yngve Lervåg
bbf75bd35d Minor update to folding 2016-04-22 22:50:36 +02:00
Karl Yngve Lervåg
97de910258 Fixed #440: Problem with stopline arguments
The stoplines were relative to the window limits (i.e. line('w$') and
line('w0')). This does not work when delimiters are searched beyond the
window limit +- the stopline borders, which e.g. might happen when
searching in large documents.

The fix is to use limits that are relative to the current position,
line('.').
2016-04-22 22:02:50 +02:00
Karl Yngve Lervåg
decf0f8e1d Remove paragraph text objects and motions (#320) 2016-04-17 13:16:00 +02:00
Karl Yngve Lervåg
381973407c Fixed #435: Issue with pgrep command 2016-04-17 12:35:30 +02:00
Karl Yngve Lervåg
4790dab9f9 Minor improvement to highlight matching (#434) 2016-04-13 11:19:09 +02:00
Karl Yngve Lervåg
af2fee68ca Only set b:vimtex.tmp when applicable 2016-04-13 09:56:47 +02:00
Karl Yngve Lervåg
9dfa9af8e9 Improved VimtexCompileSS (#424)
* Simplify code, remove redundancies
* Ensure that there is feedback also from `VimtexCompileSS`
* Provide feedback on compile status if possible (i.e., if process was not run
  in the background)
2016-04-12 21:46:20 +02:00
Karl Yngve Lervåg
98926a61b2 Fixed minor bug 2016-04-12 18:45:45 +02:00
Karl Yngve Lervåg
2a83d4a6f0 Fixed #424: Add support for shellslash on windows 2016-04-11 21:54:35 +02:00
Karl Yngve Lervåg
ede50541a8 Add s:uniq to support older Vim versions 2016-04-11 21:48:05 +02:00
Karl Yngve Lervåg
eb48452c79 Fixed #433: Enable vimtex-toc in bib files 2016-04-11 20:33:18 +02:00
Karl Yngve Lervåg
73b50603a8 Fix minor bug for latexmain specifier 2016-04-10 22:03:24 +02:00
Karl Yngve Lervåg
12a0f00603 Remove g:vimtex_quickfix_fix_paths
The option will now always be activated, as there seems to be no reason
not to keep it activated.
2016-04-10 11:04:09 +02:00
Karl Yngve Lervåg
0f59eb086a Fix #421: Problem with quickfix entries 2016-04-09 13:37:41 +02:00
Karl Yngve Lervåg
c673e928a0 Fixed #430: Allow manual enabling of folding 2016-04-08 23:26:36 +02:00
Karl Yngve Lervåg
64722424c8 Fix stupid bug; now tests should run on travis 2016-04-08 23:13:12 +02:00
Karl Yngve Lervåg
c4f55b3ddc Add more default options to latexmk (#423)
Also improves documentation on the vimtex setting
g:vimtex_latexmk_options.
2016-04-08 13:01:49 +02:00
Karl Yngve Lervåg
d331b9049d Fixed #427 - minor error in delimiters 2016-04-07 21:16:19 +02:00
Karl Yngve Lervåg
c3d3987a8d Remove g:vimtex_latexmk_file_line_error option 2016-04-06 14:54:24 +02:00
Frankie Robertson
cf9365d944 Fix file-line-error by letting latexmk deal with it 2016-04-06 14:16:28 +02:00
Karl Yngve Lervåg
ec1c8a0446 Minor simplification of tex parser 2016-04-05 22:37:41 +02:00
mbrunnen
e647ebe16a Added filename completer for standalone files
* Added filename completer for standalone files

* added the tikz file
2016-04-05 18:10:46 +02:00
mbrunnen
7b5e6858a7 Added a new filename completer for pdfpages 2016-04-05 15:38:05 +02:00
Karl Yngve Lervåg
a12e11f1fb Allow to modify parser input line regexps 2016-04-05 13:20:00 +02:00
Karl Yngve Lervåg
74408ea428 Merge pull request #404 from mbrunnen/master
Fix for issue #403
2016-04-05 13:06:38 +02:00
Karl Yngve Lervåg
74979580a2 Fixed #410: Improve env text object matching 2016-04-04 22:30:36 +02:00
Karl Yngve Lervåg
a8b29f8fb4 Get more cmd info for open env delims 2016-04-04 22:30:36 +02:00
Karl Yngve Lervåg
ceb236b64a Behave properly with bad arguments 2016-04-04 22:15:07 +02:00
Karl Yngve Lervåg
fa27d5764f Allow to get environment commands 2016-04-04 22:14:37 +02:00
Karl Yngve Lervåg
b94dd3cc6d Add function to get cmd at given position 2016-04-04 22:14:11 +02:00
Karl Yngve Lervåg
8ae3cea312 Fixed #382: Problem with quote escapes 2016-04-04 18:05:23 +02:00
Karl Yngve Lervåg
975eb990bc Revert ba756065 2016-04-02 08:39:23 +02:00
Karl Yngve Lervåg
ba756065ff Fixed #405: interaction=nonstopmode for pdflatex 2016-04-01 23:20:56 +02:00
Karl Yngve Lervåg
c0a2b4f22a Fix minor error in quickfix-fix-path 2016-04-01 23:17:08 +02:00
Karl Yngve Lervåg
cec3c95587 Fixed #407: Error in regexp 2016-04-01 11:16:27 +02:00
Karl Yngve Lervåg
5cda0b3410 Fixed #402: /usr/bin/perl instead of perl 2016-04-01 10:21:43 +02:00
Karl Yngve Lervåg
9190e396af Fixed #407: Add support for paragraph folding 2016-03-31 22:59:46 +02:00
Karl Yngve Lervåg
02c7ce701e Fix #406 - Comment after section title 2016-03-31 22:23:14 +02:00
Manoel Brunnen
82d07ead4d changed s:gls to match more glossary commands 2016-03-31 17:29:37 +02:00
Manoel Brunnen
7f76205a42 Fix proposal for issue #403 2016-03-30 13:16:13 +02:00
Karl Yngve Lervåg
7b5db91425 Generalize the latexmk hooks (#383) 2016-03-29 23:42:31 +02:00
Karl Yngve Lervåg
845f7e493e And more travis; Use latest vim version 2016-03-27 22:09:06 +02:00
Karl Yngve Lervåg
5e2bdacafe More travis updates 2016-03-27 22:00:43 +02:00
Karl Yngve Lervåg
6b4b3f72b7 Use getline instead of readfile 2016-03-27 13:41:38 +02:00
Karl Yngve Lervåg
6c31d6c5af Minor fix to local fold variables 2016-03-27 13:39:25 +02:00
Karl Yngve Lervåg
2250d4258f Add function to check for given environment 2016-03-24 23:49:58 +01:00
Karl Yngve Lervåg
d169631706 Add support for hyperref command (#399) 2016-03-23 22:25:14 +01:00
Karl Yngve Lervåg
1aabb84fa7 Remove broken bar delimiters (#398) 2016-03-23 21:31:53 +01:00
Karl Yngve Lervåg
22d9c8db47 Preserve visual state for tsd (#258) 2016-03-22 11:42:59 +01:00
Karl Yngve Lervåg
d164a031e1 Add tsd for visual mode (#258) 2016-03-22 08:34:26 +01:00
Karl Yngve Lervåg
afde6ee93b Fix #392 - allow options for externaldocuments
This also improves the code flow for the label completion, and it
allows separate caches for each individual project aux file.
2016-03-21 21:58:05 +01:00
Karl Yngve Lervåg
f5898790c4 Remove ( and ) from general tex delimiters (#396) 2016-03-20 13:22:32 +01:00
Karl Yngve Lervåg
972142d45d Add support for externaldocuments (#392) 2016-03-20 13:13:18 +01:00
Karl Yngve Lervåg
939aae3fdb Add vimtex#parser#get_externalfiles 2016-03-20 13:12:24 +01:00
Karl Yngve Lervåg
ef2dcd0044 Improve options for parser engine 2016-03-20 13:11:40 +01:00
Karl Yngve Lervåg
04cc79edc2 Fix #385: Close quickfix window on exit 2016-03-16 21:49:21 +01:00
Karl Yngve Lervåg
4ecf478faf Add support for optional arguments to env delim
Fixes: #381
2016-03-08 22:34:04 +01:00
Karl Yngve Lervåg
e2c2438cbe Make text object linewise for some operators (#365) 2016-03-08 22:05:12 +01:00
Karl Yngve Lervåg
4ea297bc60 Increase delay to avoid double zathura 2016-03-08 10:03:16 +01:00
Karl Yngve Lervåg
2fd3a4ba96 Add option for stopline tolerance (#386) 2016-03-05 22:43:53 +01:00
Karl Yngve Lervåg
cc08da3f9e Increase stopline tolerance (fixes #386) 2016-03-03 22:45:41 +01:00
Karl Yngve Lervåg
f0a9f1c774 Add short delay to prevent multiple zathura buffers 2016-03-03 21:46:17 +01:00
Karl Yngve Lervåg
033da30308 Added latexmk callback hook (#383) 2016-02-28 21:36:53 +01:00
Karl Yngve Lervåg
ec5e0df360 Minor refactoring of text objects (#365) 2016-02-23 23:01:19 +01:00
Karl Yngve Lervåg
8c170061d3 Source indent file during reloading 2016-02-23 21:03:53 +01:00