Commit Graph

771 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
ab8d7ffc45 Minor optimization to folding 2016-01-11 21:43:14 +01:00
Karl Yngve Lervåg
b286a37c48 Fix #318: operator pending motion { } 2016-01-11 17:24:09 +01:00
Karl Yngve Lervåg
e37476e8ad Fix #318: Allow count for { } motions 2016-01-11 17:21:25 +01:00
Karl Yngve Lervåg
2544297757 Fixes #315 - add support for \( ... \) text object 2016-01-08 22:51:08 +01:00
Karl Yngve Lervåg
db137566d5 Fix #312: Preserver viewers on multiple buffers 2016-01-07 23:38:41 +01:00
Karl Yngve Lervåg
d802117c9c Add simple version of glc completion (#263) 2016-01-06 00:00:48 +01:00
Karl Yngve Lervåg
f32ce7baee Improved consistency of completions 2016-01-06 00:00:15 +01:00
Karl Yngve Lervåg
12481a9891 Fix minor problem with formatexpr (fixes #309) 2016-01-05 12:25:56 +01:00
Karl Yngve Lervåg
06a5b958f8 Minor update to image file completion (#308) 2016-01-05 08:36:00 +01:00
Karl Yngve Lervåg
793556d9e6 Minor bug fix 2016-01-04 23:38:15 +01:00
Karl Yngve Lervåg
33daacfed8 Improve file name completion (#308) 2016-01-04 23:28:58 +01:00
Karl Yngve Lervåg
bb04215684 Simple version of includegraphics complete (#308) 2016-01-04 13:05:25 +01:00
Karl Yngve Lervåg
2de4129abd Minor update 2016-01-03 14:33:02 +01:00
Karl Yngve Lervåg
45e791c8ab Refactored complete.vim 2016-01-03 14:25:50 +01:00
Karl Yngve Lervåg
6210ca05a5 Consistent use of g:vimtex_latexmk_progname (#262) 2015-12-22 22:50:18 +01:00
Karl Yngve Lervåg
ce0740b09d Fix command name (#295) 2015-12-21 23:40:41 +01:00
Karl Yngve Lervåg
99d82c2394 Big update to imaps feature (#295)
- Removed automatic snippets
- Added utility command (+ map) to view imaps "VimtexImapsList"
- Updated documentation
- Use <expr>-mappings for imaps
2015-12-21 23:37:32 +01:00
Karl Yngve Lervåg
4176cad1c7 Fix #303: Allow whitespace before caption braces 2015-12-21 21:47:29 +01:00
Karl Yngve Lervåg
e982722e89 Remove default imap: ... -> \ldots 2015-12-16 23:10:46 +01:00
Karl Yngve Lervåg
afdb6b2642 Don't set default hooks for mupdf and zathura
This removes default hooks for mupdf and zathura. That is, we no
longer change the WM default focus behaviour. Thus, when a viewer
is opened by latexmk, it will probably steal the focus from Vim.
2015-12-16 09:04:52 +01:00
Marijn van Vliet
c456842ea9 Add support for (t)csh
The syntax for shell command for Linux/OSX assumed either bash or fish.
This commit adds a few if-statements to also support (t)csh.
2015-12-15 14:45:06 +02:00
Karl Yngve Lervåg
421996799d Fix #298 - order of environments with ]] 2015-12-14 22:19:52 +01:00
Karl Yngve Lervåg
62d0b9b44c Consistency - map P to Pi (#277) 2015-12-11 17:30:02 +01:00
Karl Yngve Lervåg
6888c3c9bf Added i->\iota and v->\vartheta (#277) 2015-12-11 08:40:49 +01:00
Karl Yngve Lervåg
e9f2cd4067 Support subequations label completion 2015-12-08 21:16:13 +01:00
Karl Yngve Lervåg
9878c66b34 Fix #279: Create custom maps only in tex files 2015-12-06 21:46:08 +01:00
Karl Yngve Lervåg
eb78213222 Add option to fold multiline comments (#289) 2015-12-04 23:02:50 +01:00
Karl Yngve Lervåg
5cc4fead62 Change fakesection fold text and add doc
Ref. #292
2015-12-04 22:24:02 +01:00
Karl Yngve Lervåg
fa9af58376 Minor adjustment to fold level function 2015-12-04 22:24:02 +01:00
Karl Yngve Lervåg
c387b63de6 Fix #287: Label numbers during omnicomplete 2015-11-30 20:27:00 +01:00
Karl Yngve Lervåg
6fe6bac1a4 Fix #286 - TOC sections with optional args 2015-11-30 11:56:40 +01:00
Karl Yngve Lervåg
af3f0f2226 Disable folds by default 2015-11-27 10:55:01 +01:00
Karl Yngve Lervåg
e2702279c6 Change default fold options 2015-11-26 22:28:42 +01:00
Karl Yngve Lervåg
dc999bccef Simplified and refactored fold.vim (#283)
- Removed g:vimtex_fold_automatic
- Added g:vimtex_fold_manual (currently 1 by default)
- Some simplifications and restructuring
2015-11-25 22:30:27 +01:00
Karl Yngve Lervåg
eed762774e Add comment and remove superfluous if 2015-11-20 23:26:32 +01:00
Karl Yngve Lervåg
c7658b1404 Allow vimtex fold to work when manually set (#283) 2015-11-20 23:18:39 +01:00
Karl Yngve Lervåg
29e2f71e59 Disable vimtex folding for vimdiff 2015-11-20 23:01:45 +01:00
Karl Yngve Lervåg
8c79b02047 Revert commit 7892c988
The commit was a merge with pull request #278, which was later found to
introduce the need for extra escaping, cf.
7892c988a5
2015-11-20 22:24:34 +01:00
Karl Yngve Lervåg
5771ed00aa Added option to fix quickfix with noautochdir
- Use `let g:vimtex_quickfix_fix_paths = 1` to enable
- Also added test files.

Fixes #256
2015-11-20 09:47:51 +01:00
Karl Yngve Lervåg
7892c988a5 Merge pull request #278 from Konfekt/master
allow for sending special keys in imaps
2015-11-19 22:47:32 +01:00
Victor Iversen
50059d60d8 Moved check for vimtex_latexmk_enabled to top of init script 2015-11-18 22:04:26 +01:00
Karl Yngve Lervåg
07eaaa5e0b Minor fix 2015-11-18 08:32:15 +01:00
Karl Yngve Lervåg
eda71910be Fix is_math() syntax check (fixes #281) 2015-11-18 08:32:05 +01:00
Karl Yngve Lervåg
c365183952 Attempt at fix for fold settings during diff 2015-11-15 23:02:50 +01:00
Karl Yngve Lervåg
ce6f423e7a Added VimtexReload - easier vimtex development 2015-11-15 23:01:02 +01:00
Enno Nagel
5b299cbc20 allow for sending special keys in imaps
for example, now

{ 'lhs_rhs' : ['__',    "_{}\\<lt>Left>"], 'leader' : '',   'wrapper' : 's:wrap_math'}

achieves what previously required UltiSnips#Anon()
2015-11-12 22:18:53 +01:00
Karl Yngve Lervåg
ab5ed0ff13 Update some imaps (#277) 2015-11-12 20:18:59 +01:00
Karl Yngve Lervåg
0ede61a82f Remove space 2015-11-12 19:42:06 +01:00
Enno Nagel
ee523987ba imap_mappings: do not swallow leader outside math 2015-11-12 19:38:37 +01:00
Karl Yngve Lervåg
b9ddd1df7b Add formatexpr (#238) 2015-11-11 22:11:37 +01:00
Karl Yngve Lervåg
42e851ab3f Fix syntax problem with \emph (fixes #245 and #272) 2015-11-11 11:25:52 +01:00
Karl Yngve Lervåg
7a398b63a2 Use getpos if getcurpos does not exist (#245) 2015-11-10 23:46:44 +01:00
Karl Yngve Lervåg
9634557bab Minor restructuring/reordering 2015-11-10 23:38:56 +01:00
Karl Yngve Lervåg
3820728db4 Add version check (#273) 2015-11-10 23:26:24 +01:00
Karl Yngve Lervåg
1bcc8e1bc2 Fix "key not present" bug 2015-11-10 19:33:40 +01:00
Karl Yngve Lervåg
3f138d6909 Make vimtex_data more robust 2015-11-10 10:35:12 +01:00
Karl Yngve Lervåg
924c1d5e97 Simplify label completion, utilize new parser 2015-11-09 23:43:38 +01:00
Karl Yngve Lervåg
286e505593 Generalize parser and add aux parser 2015-11-09 23:17:54 +01:00
Karl Yngve Lervåg
8294f9631d Unify project parser code
This is the first step in unifying all code that traverses the entire
LaTeX project content.
2015-11-08 23:21:22 +01:00
Karl Yngve Lervåg
db6103d211 Issue VimtexEventQuit at QuitPre event (fixes #253) 2015-11-07 23:42:11 +01:00
Karl Yngve Lervåg
736c341fa6 Fixed event names 2015-11-07 23:34:28 +01:00
Karl Yngve Lervåg
c8dd2c5d62 Allow use of hasmapto(...) for operator maps
The old definitions used <plug>(vimtex-map) in the definition of the
corresponding onoremap, which made it impossible to use hasmapto() to check
whether the <plug>-map was mapped to.
2015-11-07 23:30:55 +01:00
Karl Yngve Lervåg
ec5d693e85 Added vimtex-info-full mapping (default lI) 2015-11-07 23:28:38 +01:00
Karl Yngve Lervåg
9bdfb49d08 Updated initialization of default mappings
Now a default mapping is not created if the user has defined a custom mapping
for the corresponding <plug>(vimtex-...) mapping.
2015-11-07 23:28:03 +01:00
Karl Yngve Lervåg
0019d0093b Add summy autocmd to prevent warning (#269) 2015-11-07 19:38:15 +01:00
Karl Yngve Lervåg
9331f1ada0 Minor update 2015-11-06 23:51:39 +01:00
Karl Yngve Lervåg
7c22be8fe3 Add VimtexInitPost event for custom configuration
Addresses #234
2015-11-06 23:43:17 +01:00
Karl Yngve Lervåg
d25d3aa0b7 Added VimtexQuit event (fixes #253)
Also updated latexmk.vim to use the VimtexQuit event to ensure
that latexmk processes are stopped when a project has been closed.
2015-11-06 23:39:14 +01:00
Karl Yngve Lervåg
448e035ce1 Fixed #222: second viewer issue 2015-11-03 22:25:48 +01:00
Karl Yngve Lervåg
e799f04201 Add rich delimiter toggling (solves #229) 2015-11-02 23:25:04 +01:00
Karl Yngve Lervåg
41d2b6c4cc Fixed test for s:has_neosnippet (fixes #259) 2015-10-26 09:23:16 +01:00
Sparadox
b1e34436bb [bugfix] <m-i> conflict with the "é" character
Somehow, the bug declared in this issue has been unfixed. On my French
keyboard, typing on the `é` key inserts `\item`. The mapping causing
this bug to happen has been removed.
2015-10-25 18:03:52 +01:00
Karl Yngve Lervåg
ba0bc2cf2e Updated docs for imaps feature 2015-10-22 13:33:45 +02:00
Karl Yngve Lervåg
9451bdee5d Added support for neosnippet#annonymous (#251) 2015-10-21 19:50:16 +02:00
Karl Yngve Lervåg
de296341a5 Fixed command matcher (#245) 2015-10-21 08:17:47 +02:00
Karl Yngve Lervåg
725b7ed155 Added some more imaps 2015-10-21 08:09:00 +02:00
Karl Yngve Lervåg
9f0b31c577 Preserve visual selection with dsc (#245) 2015-10-20 23:35:06 +02:00
Karl Yngve Lervåg
3cd8770057 Fixed problem with dsc (#215) 2015-10-20 23:24:51 +02:00
Karl Yngve Lervåg
10348d6d4f Merge pull request #255 from leomao/fix-imaps
Fix imaps mappings.
2015-10-20 07:05:24 +02:00
LeoMao
9c29cb71af change the matching operator for checking ultisnips.
use `=~?` for case-insensitive matching.
2015-10-20 13:00:29 +08:00
Karl Yngve Lervåg
46ba5f4903 Updated greek mappings 2015-10-20 06:36:16 +02:00
LeoMao
3160129b9f Fix imaps mappings.
Remove ultisnips dependency for imaps which don't use it.
Check if wrapper is s:wrap_math_ultisnips instead of matching $1.
2015-10-20 10:09:25 +08:00
Karl Yngve Lervåg
6f4ee86464 Fixed minor bug 2015-10-19 22:15:01 +02:00
Karl Yngve Lervåg
2b949a99f1 Added disabled filter and documentation for imaps
See #251
2015-10-19 22:05:30 +02:00
Karl Yngve Lervåg
8bf2661ee7 Updated how mappings are added
Removed the collections feature, instead add metadata to each mapping. This
makes it easy to add just a single new mappings.
2015-10-19 20:53:43 +02:00
Karl Yngve Lervåg
94af494e9c Remove erroneous omicron imap 2015-10-19 20:14:42 +02:00
Karl Yngve Lervåg
a93d0cbb89 Updated matchparen stuff (#252) 2015-10-19 11:39:00 +02:00
Karl Yngve Lervåg
b1403fb788 Fixed mapping {{ -> \left\{\right\} 2015-10-18 07:01:19 +02:00
Karl Yngve Lervåg
05fcf0e1d5 Updated math mappings 2015-10-17 23:35:39 +02:00
Karl Yngve Lervåg
2abcee36db Updated wrapper function application 2015-10-17 23:34:36 +02:00
Karl Yngve Lervåg
aeb7047fcb Updated greek imaps 2015-10-17 23:34:36 +02:00
Karl Yngve Lervåg
6a7ba57c78 More improvements to dsc (#245) 2015-10-17 23:34:35 +02:00
Karl Yngve Lervåg
a1260af0de Minor simplification (#245) 2015-10-17 23:34:35 +02:00
Karl Yngve Lervåg
c031c74559 Fixed dsc and csc (fixes #245 and #247) 2015-10-17 23:34:35 +02:00
Karl Yngve Lervåg
7cd7fc639c Merge branch 'master' into math-mappings 2015-10-08 23:54:07 +02:00
Karl Yngve Lervåg
4a746323a0 Add included bibs to TOC (fixes #233) 2015-10-08 23:52:49 +02:00
Karl Yngve Lervåg
3c4ad38bdd Improve include parser for TOCs
* Support file names that use quotes and the \space command
* Fix syntax highlighting
2015-10-08 23:43:19 +02:00
Karl Yngve Lervåg
55ef103cfe Merge branch 'master' into math-mappings 2015-10-07 00:11:02 +02:00
Karl Yngve Lervåg
cbd0d59d70 Fixed problem with compilation on windows (fixes #235) 2015-10-07 00:09:52 +02:00
Karl Yngve Lervåg
e2bb9b425d Fix non continuous compilation on win (#235) 2015-10-07 00:00:41 +02:00
Karl Yngve Lervåg
ce7c584408 Merge pull request #240 from tokoro10g/fix-listchars
Avoid clearing global listchars option
2015-10-06 17:44:53 +02:00
Karl Yngve Lervåg
cbf8b86941 Merge branch 'master' into math-mappings 2015-10-06 17:37:23 +02:00
Karl Yngve Lervåg
4af3a89f1c Improve VimtexClean; don't stop continuous compile
If continuous compilation is running, temporarily stop it while
doing a VimtexClean, then start it again.
2015-10-06 17:35:26 +02:00
Karl Yngve Lervåg
bbcc68e9a4 Fix minor bug 2015-10-06 17:12:50 +02:00
Tokoro
6547b284f8 Avoid clearing listchars 2015-10-05 19:35:54 +09:00
Karl Yngve Lervåg
db92be5756 Fixed problem with unescaped paths (fixes #237) 2015-10-04 22:49:07 +02:00
Karl Yngve Lervåg
79fa856101 Fix strange sleep problem (fixes #236) 2015-10-02 22:56:19 +02:00
Karl Yngve Lervåg
12bf9658c2 Merge branch 'master' into math-mappings 2015-10-01 14:10:41 +02:00
Karl Yngve Lervåg
87946f96b4 Important update: pdf is now mandatory
Also adds verbose to flags to increase debug output when needed.
2015-10-01 13:44:54 +02:00
Karl Yngve Lervåg
8b124af0b6 Merge branch 'master' into math-mappings 2015-09-19 22:19:50 +02:00
Karl Yngve Lervåg
43f195f120 Fixed minor bug (fixes #225) 2015-09-19 22:17:54 +02:00
Karl Yngve Lervåg
e33d027dc7 Merge pull request #213 from camilstaps/master
Fixes #212. Fix pdflatex substitution to work with Latexmk's 'internal' keyword
2015-09-19 21:21:48 +02:00
Karl Yngve Lervåg
3e5552908a Merge branch 'master' into math-mappings 2015-09-17 15:57:09 +02:00
Karl Yngve Lervåg
6ef0a551d4 Fix paragraph motion for successive comments 2015-09-17 15:56:36 +02:00
Karl Yngve Lervåg
e7dc4875ef Merge branch 'master' into math-mappings 2015-09-17 13:44:04 +02:00
Karl Yngve Lervåg
a668c96b71 Improved paragraph motions and text objects 2015-09-17 13:43:56 +02:00
Karl Yngve Lervåg
70602d7593 Merge branch 'master' into math-mappings 2015-09-17 10:40:00 +02:00
Karl Yngve Lervåg
630fc5d5d6 Add operator pending map for { and } 2015-09-17 10:39:51 +02:00
Karl Yngve Lervåg
8ec2deeadb Merge branch 'master' into math-mappings 2015-09-17 10:20:54 +02:00
Karl Yngve Lervåg
e1476afaac Create default maps for paragraph stuff 2015-09-17 10:20:32 +02:00
Karl Yngve Lervåg
f6d500600a Added paragraph text objects (#226) 2015-09-17 10:19:55 +02:00
Karl Yngve Lervåg
50f65ad52c Added paragraph motion 2015-09-17 10:08:46 +02:00
Karl Yngve Lervåg
153af0092f Better structure in map definitions 2015-09-17 10:07:55 +02:00
Camil Staps
41f0eccdc0 Changing back to vimtex#util#shellescape 2015-08-26 11:53:25 +02:00
Camil Staps
8e3cefbe94 Merge branch 'master' of github:lervag/vimtex 2015-08-26 10:22:21 +02:00
Karl Yngve Lervåg
f48311d279 Fetched recent updates from master 2015-08-26 08:10:57 +02:00
Karl Yngve Lervåg
485b750111 Added comment 2015-08-26 08:08:39 +02:00
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
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
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
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
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
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
Karl Yngve Lervåg
2e14a2b4fe Added new highlight group VimtexInfo 2015-06-20 23:44:08 +02:00
Karl Yngve Lervåg
e6f0a7289d Support file name changes (fixes #187) 2015-06-20 23:16:53 +02:00
Karl Yngve Lervåg
d36be66c93 Updated augroup names 2015-06-20 23:15:58 +02:00
Karl Yngve Lervåg
b1b15c6877 Improved latexmk kill when deleting a buffer
We now store some script variables whenever a buffer is left.  These variabes
are then used when a buffer is deleted to test if a latexmk process must be
killed.

The new implementation seems more robust and is no longer dependent on the
'hidden' attribute in vim.

Fixes: #189
2015-06-20 19:44:48 +02:00
Karl Yngve Lervåg
b818cca297 Ensure pids are stored as numbers 2015-06-20 19:23:32 +02:00
Karl Yngve Lervåg
670c0cd3d1 Improve label completion (fixes #182) 2015-06-18 23:19:26 +02:00
Karl Yngve Lervåg
12fdc029e0 Add search for existing process (fixes #188) 2015-06-18 18:06:14 +02:00
Karl Yngve Lervåg
692df6c245 Fixed init problem (fixes #183) 2015-06-10 08:05:49 +02:00
Karl Yngve Lervåg
b33268b204 Move setting of default options 2015-06-09 22:30:39 +02:00
Karl Yngve Lervåg
b40cf63c61 Implement hooks for viewers
This implements capability for view and callback hooks for all viewers (though
not all viewers have callback functionalities implemented).

For Zathura and MuPDF this change also implements a default focus behaviour
which may now be changed through the use of these hooks.
2015-06-09 22:21:32 +02:00
Karl Yngve Lervåg
602ba319ff Raise viewer after \lv (#180) 2015-06-08 19:03:10 +02:00
Karl Yngve Lervåg
7cc2fd2877 Fixed problem with \lv mapping (#180) 2015-06-08 09:14:27 +02:00
Karl Yngve Lervåg
7f5493c62c Further development (NOT WORKING!)
* Added a lot more mappings
* Began to find an ok structure
* Current commit does NOT work, as it is work in progress
2015-06-07 21:42:51 +02:00
Karl Yngve Lervåg
374d5c984f Fixed some minor itches (#180) 2015-06-07 19:24:19 +02:00
Karl Yngve Lervåg
a6ec6a7b85 Merge branch 'master' into math-mappings 2015-06-06 23:51:36 +02:00
Karl Yngve Lervåg
6d7b0abd16 A lot of convenient restructuring 2015-06-06 23:49:28 +02:00
Karl Yngve Lervåg
ec1c318eae Merge branch 'master' into math-mappings 2015-06-06 20:23:34 +02:00
Karl Yngve Lervåg
5444067f4a Moved default value to change.vim and added doc 2015-06-06 20:21:29 +02:00
Karl Yngve Lervåg
2b0175df60 Improved blob namings
* Now b:vimtex points to the local LaTeX project blob.
* The global list of blobs is renamed to g:vimtex_data
2015-06-06 20:08:13 +02:00
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