Commit Graph

485 Commits

Author SHA1 Message Date
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