728 Commits

Author SHA1 Message Date
Tilman Blumenbach 08821de4f1 Package "polski": Use let instead of TexLet for setting smart quotes.
TexLet doesn't seem to work, probably because the variable already
exists.
2025-01-11 13:41:25 +01:00
Tilman Blumenbach 96e8fc6a2b Package detection: Fix setting of smart quotes.
There was a typo. Also, make the variables buffer-local, just like for
other packages.
2025-01-11 13:41:25 +01:00
Stefan Ecklebe f2a149f396 Fix syntax warning for python 3.12 and newer
As the backslash in the file path is interpreted as an invalid escape
sequence, one could mark the docstring as raw string or rather just
remove the line altogehter, what was done here.

This resolves issue #225.
2024-11-27 22:37:30 +01:00
Quickmarble f108868ae9 Docstring -> raw docstring
The docstring for Bibliography.__init__ has unescaped backslashes.
2024-05-13 07:42:46 +02:00
Gerd Wachsmuth 5987380b4f Escape filename and use system()
Fix vim-latex/vim-latex#221
2023-02-14 12:56:13 +01:00
thedoctar 069a26a096 Add nestable environments
If you have something like
\begin{align}
maths
\begin{aligned}
more maths
\end{aligned}
yet more maths
\end{align}

the folding will be wrong as there is nested align* environments. Same thing for gathered.
2022-05-19 20:02:49 +02:00
Albin Ahlbäck dc44e6a8a2 Make cite-completion accept dashes 2022-03-09 16:48:38 +01:00
Gerd Wachsmuth 8a5e77add6 Use normal! instead of normal 2021-08-11 22:01:46 +02:00
Gerd Wachsmuth e97a371af8 Fix problems with multiple envs on single line 2021-08-09 23:13:37 +02:00
Gerd Wachsmuth 3669e9bc3e Fix bug when changing environments
During <S-F5>, if the cursor is behind the '\end{' , but before the '}'
of the environment, a wrong environment was changed.
2021-07-20 22:16:31 +02:00
Gerd Wachsmuth 84c9868346 More robust folding of preamble
Fix vim-latex/vim-latex#182
2021-05-13 11:14:20 +02:00
Gerd Wachsmuth f9c694dc01 Try to decode bibfile with latin1 if utf-8 fails 2021-05-02 20:50:03 +02:00
master ninja c04c32f467 Bugfixes for custommacros.vim 2021-03-23 08:42:54 +01:00
Alexander Zhang 686c7ccaba Add quotes to file names in compile rules 2020-12-05 21:42:31 +01:00
Gerd Wachsmuth d6fae26fe1 Initialize foundCiteFile
Fix vim-latex/vim-latex#186
2020-11-23 20:34:41 +01:00
Gerd Wachsmuth dc3c937bdb Remove '<<<' as fold-section-end-marker
Fix vim-latex/vim-latex#188
2020-11-23 20:29:26 +01:00
Gerd Wachsmuth d97bbf3334 Escape some spaces
Fix vim-latex/vim-latex#181
2020-06-30 22:48:48 +02:00
Gerd Wachsmuth 46de6e2787 Look for bib-files in included files 2020-02-12 09:16:12 +01:00
rdmol 007aaa7304 Fixed s:viewer undefined bug for macosx
This commit implements a solution to the bug reported in issue #159.
2019-06-05 09:12:19 +02:00
Gerd Wachsmuth bcf8aba7a5 Infect bib-files with IMAPs
Fix vim-latex/vim-latex#154
2019-02-04 10:48:28 +01:00
Gerd Wachsmuth 6d61aa2eb1 Remove <unique> from mapping command.
Fix #151
2018-12-18 08:41:08 +01:00
Gerd Wachsmuth ae0ecabcf9 Use 1 instead of v:true
Fix vim-latex/vim-latex#149
2018-11-13 09:14:40 +01:00
Huang Zonghao dcd06f8a6c Set alias to environment keyword (#148)
Aliases for environments and commands

* Fix xml for b523d67

* Add g:Tex_Env_name_aliasto macro for environment aliases

This feature enables user to set alias to the environment keywords to be
expanded, so that user could save keystrokes by setting shorter keywords

* Add g:Tex_Com_name_aliasto macro for command aliases
2018-10-03 20:15:29 +02:00
Gerd Wachsmuth c3ffaa8bc9 All python strings as raw strings
Fix vim-latex/vim-latex#143
2018-09-07 15:15:08 +02:00
Gerd Wachsmuth d384eb3510 Do not set tex options on bib files 2018-09-07 14:12:10 +02:00
Gerd Wachsmuth dc2053cd45 Try to improve performance of ParseSectionTitle 2018-03-30 09:08:34 +02:00
Gerd Wachsmuth f58ba25225 Fix: Detect fold text for indented sections
See vim-latex/vim-latex#129
2018-03-30 08:45:10 +02:00
Christian Ebert 5d5e27756e Fix logic to re-open folds if Tex_AutoFolding is disabled (#130)
As per comment MakeTexFolds was not called manually in this case.
2018-03-16 15:38:05 +01:00
HuangZonghao ec10d539eb Expand all Capital Greek Letters as well, disregarding the availability in LaTex.
Now all the capital greeks letters can be expanded. But user need to
manually define the unsupported commands by themselves.
2018-02-26 16:04:03 +01:00
HuangZonghao ab12f1e901 Map "w" to "\omega" and "o" to "\omicron"
* The setting in the main.vim that mapped "`w " to "\wedge" is deleted
  since we already have "`&" mapped for that. Having two keys mapping
  to the same thing while `\omega` has no key-mapping is a waste and
  also very likely to be an accidental mistake.

* Also added a new mapping that would expand "`o" to "\omicron". While the
  letters may seem similar in use but this change helps to make the
  behavior of the plugin consistant with the description on the manual.
  Besides "`o" has no mapping before.
2018-02-26 16:04:03 +01:00
Gerd Wachsmuth 08571c2678 Set makeprg if Makefile is present
Fix vim-latex/vim-latex#125
2018-02-19 12:31:32 +01:00
Gerd Wachsmuth 732263e106 Fix bug with s:viewer being empty
Fix vim-latex/vim-latex#122
2018-01-31 09:00:00 +01:00
Till Maas 0074749585 Prepare for next release 2018-01-12 19:53:43 +01:00
Till Maas 279c560077 Bump version to 1.10.0 2018-01-12 18:37:33 +01:00
Ricardo Fabbri 042f2476a6 ignoring wildignore when looking for .latexmain
Without this, if the user put .latexmain in the wildignore, then
viewing will not work from a file other than main
2018-01-11 19:22:05 +01:00
Gerd Wachsmuth 09536a1c42 Fix bug (comp. of \includegraphics) 2017-12-08 23:00:06 +01:00
Gerd Wachsmuth e26ae60703 Small fixes in texviewer.vim 2017-12-08 20:39:11 +01:00
Gerd Wachsmuth 853d3121c2 Replace echomsg by Tex_Debug if no bibfile found
The echomsg is not displayed anyway, since the function is called with
'silent!' which ignores all messages.
2017-11-30 08:40:54 +01:00
Cong Ma 803d3147c3 More robust detection of macOS environment.
With commit fdad7ebe, all instances of macOS detection condition were
changed to `has("osx")`.  However, this may incorrectly exclude certain
vim versions.

Attempt to address this by using `has("osx") || has("macunix")`.

Cf: vim-latex/vim-latex#109
2017-11-17 13:42:07 +01:00
Cong Ma 598014d5fd Fix macOS detection in scripts on High Sierra.
On macOS High Sierra, the system vim (/usr/bin/vim) is compiled as a
"Normal Version" binary without the "macunix" feature, and
has("macunix") returns 0.  In the scripts, this breaks the code guarded
by such condition, intended to work on macOS platform.  For example, the
platform- and configuration-specific forward search with <Leader>ls is
broken.

To fix this, use has("osx") in the place of has("macunix").  The former
is more inclusive than the latter and will return 1 on the High Sierra
system vim, therefore correctly identifying the platform.

The Homebrew vim is compiled as "Huge Version" binary, and
has("macunix") works in it.  Therefore, the change is not necessary, but
still compatible.
2017-10-20 15:07:32 +02:00
Gerd Wachsmuth 680cae1c95 Do not use compatibility mode in compiler.tex 2017-10-05 10:45:56 +02:00
Gerd Wachsmuth 3c6327230a Fix sorting
Sorting was broken in two ways:
- It used the obsolete 'cmp' argument in python3
- It was called wrongly by vim

Fix vim-latex/vim-latex#107
2017-10-05 08:54:35 +02:00
Gerd Wachsmuth 05d380b54d Use xmap's instead of vmap's
Otherwise, the vmap's are used in select-mode (after jumping to
placeholders), but the user might expect to use the mappings from
insert-mode. Moreover, the usual vmap's (e.g. enclose something in
certain commands) are not useful after jumping to placeholders.

Fix vim-latex/vim-latex#102
2017-09-14 15:59:32 +02:00
Gerd Wachsmuth accfbd0d8f Use fnameescape() in templates.vim 2017-08-06 13:14:22 +02:00
Gerd Wachsmuth 467355a406 Refold if file has been changed. 2017-07-21 14:01:00 +02:00
Gerd Wachsmuth f77025744b Fix completion of "subequations" 2017-07-21 13:25:58 +02:00
John Leen 28d3bc8f3f Don't execute python commands if Tex_UsePython is false 2017-07-05 08:42:37 +02:00
Gerd Wachsmuth a3685ad7dc Fix previous commit. 2017-06-30 09:33:46 +02:00
Gerd Wachsmuth e2914b6f0c Make regexps a bit more robust 2017-06-22 14:14:36 +02:00
Gerd Wachsmuth 9311a150a6 Fix with changing directories via --remote
Workaround for vim/vim#1690
2017-06-22 14:14:26 +02:00