Commit Graph

530 Commits

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