Commit Graph

860 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
de61b31cf8 Fixed #663: Correct warning and handling of missing xdotool 2017-02-09 21:54:44 +01:00
Karl Yngve Lervåg
9ef8463dae Fixed #679: Foldtext for indented single_opt 2017-02-09 21:42:18 +01:00
Karl Yngve Lervåg
008b9eb78d Fixed #682 2017-02-09 21:29:05 +01:00
Teng Tokoro
87ce498b0e Modified latexmk.vim to allow empty option 2017-02-03 15:56:35 +09:00
Karl Yngve Lervåg
a070901fb2 Improve speed of s:is_verbatim 2017-02-01 13:38:14 +01:00
Karl Yngve Lervåg
3e63a12448 Only indent tikz if tikz is loaded 2017-02-01 13:25:56 +01:00
slaiba
f535f07a6d Modified complete.vim to improve parsing of equation numbers and support subfile command 2017-01-26 20:05:44 +01:00
Karl Yngve Lervåg
2495c848ed Fixed #669: Better bookkeeping and exit handling
* Don't remove blobs on exit
* Properly reuse existing local blobs
2017-01-24 21:36:54 +01:00
Yan Zhou
8e5ccd4e1c Use strchars for calculating line length
The original, which use `len` to calculate the line length, cause multibyte characters, (such as UTF-8 characters outside the ASCII range) to count as 2 characters or more. And thus visually, the lines look shorter than expected after formatting.

Compare, (`tw = 79`)

New formatting
```
It was in July, 1805, and the speaker was the well-known Anna Pávlovna Schérer,
maid of honor and favorite of the Empress Márya Fëdorovna. With these words she
greeted Prince Vasíli Kurágin, a man of high rank and importance, who was the
first to arrive at her reception. Anna Pávlovna had had a cough for some days.
She was, as she said, suffering from \emph{la grippe;} \emph{grippe} being then
a new word in St.~Petersburg, used only by the elite.
```

Old formatting
```
It was in July, 1805, and the speaker was the well-known Anna Pávlovna
Schérer, maid of honor and favorite of the Empress Márya Fëdorovna. With these
words she greeted Prince Vasíli Kurágin, a man of high rank and importance, who
was the first to arrive at her reception. Anna Pávlovna had had a cough for
some days. She was, as she said, suffering from \emph{la grippe;} \emph{grippe}
being then a new word in St.~Petersburg, used only by the elite.
```
2017-01-24 21:02:54 +08:00
Karl Yngve Lervåg
85cf4215ea Fixed #668: Improve graphics completion 2017-01-21 21:40:48 +01:00
Karl Yngve Lervåg
96ce49de01 Fixed #664: Regex matched too much 2017-01-19 22:04:58 +01:00
Karl Yngve Lervåg
a9e8f2e502 Must press ENTER (cf. #661) 2017-01-18 21:33:27 +01:00
Karl Yngve Lervåg
f86a72ce90 Fixed #640: Parse \graphicspath for img completion
Note: This deprecates the option g:vimtex_complete_img_use_tail!
2017-01-18 19:12:40 +01:00
Karl Yngve Lervåg
c98b178377 Added functions to calculate relative path 2017-01-18 19:12:40 +01:00
Karl Yngve Lervåg
4c76e8f740 Refactored and improved recursive file finder 2017-01-03 23:25:42 +01:00
Karl Yngve Lervåg
9c9091ca7b Fixed #614: Better citation completion
- Support \jobname in bibliography file name
- Support \nobibliography
- Support \bibentry for completion
2016-12-29 19:27:50 +01:00
Karl Yngve Lervåg
4526043aaa Fix #646: Allow matchparen motions in comments 2016-12-28 22:53:47 +01:00
Karl Yngve Lervåg
eb1423d25c Fixed #644: Use more sensible tikz context 2016-12-17 12:13:21 +01:00
Karl Yngve Lervåg
2b39554f68 Fixed #636: Support for \subref completion 2016-12-15 19:29:18 +01:00
Karl Yngve Lervåg
cade17d13e Fixed #604: Remove indent condition for multi command folding 2016-12-14 21:09:38 +01:00
Karl Yngve Lervåg
c79e7afb3b Fix #637: Jump back to the right window 2016-12-14 20:17:18 +01:00
Karl Yngve Lervåg
7046490ce2 Fix #632: Refresh viewer paths when changing main 2016-12-04 13:03:17 +01:00
Karl Yngve Lervåg
305eb16133 Fixed #633 2016-12-02 12:31:46 +01:00
Karl Yngve Lervåg
e2f8b0dd3b Fixed #629: Subfiles class is not a main file 2016-12-01 10:01:35 +01:00
Jesper Jensen
fc569e994b Recursive main discovery fix
Main discovery always ended up starting on the base file when recursing.
To fix this we use the file stored in l:file instead of % (current file)
2016-11-28 22:39:34 +01:00
Karl Yngve Lervåg
33955aa83a Fix #624: Bad regex 2016-11-25 20:36:59 +01:00
Karl Yngve Lervåg
368820d884 Initialize script when loaded 2016-11-25 20:36:46 +01:00
Jesper Jensen
75a95c6801
Style improvements 2016-11-25 00:01:54 +01:00
Jesper Jensen
8c2d25ebb9
Better handling of relative subimports
The old way of handling sub imports didn't actually allow them to be
relative, which is half the power of the import package.

The new code correctly identifies all my subimported texfiles in
a pretty complicated latex project.
2016-11-24 17:40:54 +01:00
Karl Yngve Lervåg
e5eeeb1f39 Fix bug: reenable Fakefolds 2016-11-17 11:57:53 +01:00
Karl Yngve Lervåg
489331f1c0 Fix bug in vimtex fold (#623) 2016-11-16 23:18:42 +01:00
Karl Yngve Lervåg
68e6e3b27a Fixed minor issue (cf. #599) 2016-11-09 23:37:49 +01:00
Karl Yngve Lervåg
55a5923869 Fixed #622: Ignore delims in comments when closing 2016-11-08 23:07:44 +01:00
Karl Yngve Lervåg
66c0446cb5 More flexible options for s:get_delim() 2016-11-08 23:06:44 +01:00
Karl Yngve Lervåg
fa1adca64a Fixed #612: Better filetype plugin in .cls and .sty 2016-11-04 22:56:25 +01:00
Karl Yngve Lervåg
a7bbf0ee9c Fixed #619: Updated out files for viewer after saveas 2016-11-04 22:37:25 +01:00
Karl Yngve Lervåg
491449d62e Fixed #608: Remove ending bracket in TOC 2016-10-27 16:08:24 +02:00
Karl Yngve Lervåg
f72d388811 Fixed #609: Don't work with empty patterns 2016-10-27 16:04:38 +02:00
Karl Yngve Lervåg
9d8b23e03a Fixes #597: Better command folding implementation 2016-10-26 18:38:02 +02:00
Karl Yngve Lervåg
b6aed1aee8 Some refactoring of fold module code
* Change order of functions
* Make functions more visible (reduce total fold level)
* Use \}\}\} instead of }}} to prevent vim folds in source files
2016-10-25 20:39:01 +02:00
kiryph
9c91576f52 Extend #571: Fold cmds following 3 patterns
with options to assign commands to these patterns
2016-10-25 20:39:00 +02:00
Karl Yngve Lervåg
a3e79bd451 Fixes #601: Change \s to \A 2016-10-25 13:02:27 +02:00
Karl Yngve Lervåg
36d50e7ac4 Fixed #600: Let not_readable be common 2016-10-25 07:56:24 +02:00
Karl Yngve Lervåg
04f3c9b272 Fixed #599: Allow input without extension 2016-10-24 21:36:00 +02:00
Enrico Maria De Angelis
c68f5ca7c3 Make 'insert new command' work also after non-^ and non-\s regex (#596)
The insert new command functionality, mapped on `<F7>` by default,
doesn't work when the word is preceded by non-space and
non-start-of-line character. This commit allows insertion after
any non-letter, since LaTeX commands cannot contain other charaters
than [a-zA-Z].
2016-10-23 21:07:20 +02:00
Karl Yngve Lervåg
c72fcbc0df Fixed #595: s:re not always initialized 2016-10-22 19:14:43 +02:00
Karl Yngve Lervåg
18a2b062b8 Fixed #594: Regression bug since 7e2793d4 2016-10-21 19:25:19 +02:00
Karl Yngve Lervåg
38cd97c10b Fix unite TOC after #548 and #560 2016-10-21 14:19:18 +02:00
Karl Yngve Lervåg
acdefeb9f5 Fix #548: Also handle multi-line short titles 2016-10-21 09:17:19 +02:00
Karl Yngve Lervåg
d457431284 Fix #560: More compact include tags 2016-10-20 22:47:12 +02:00