Israel Chauca Fuentes
c23ef684e3
Add :DelimitMateOn, :DelimitMateOff & remove s:DelimitMateSwitch().
2015-01-04 20:13:11 -05:00
Israel Chauca Fuentes
b63924f2b2
Update doc.
2015-01-04 20:09:00 -05:00
Israel Chauca Fuentes
07b7cc969f
Merge pull request #201 from kballard/mappings-user-event
...
Add 2 User events when mapping and unmapping
2015-01-02 20:32:18 -05:00
Israel Chauca Fuentes
13e52d42ae
Do not consider quotes for smart_matchpairs. Closes #200 .
2015-01-02 12:08:16 -05:00
Israel Chauca Fuentes
aa9d737763
Rename functions.
2015-01-02 12:07:31 -05:00
Daniel Hahler
bf2b68edab
Remove call to s:option_init("excluded_ft"): it is a global setting only
2015-01-01 14:58:41 -05:00
Israel Chauca Fuentes
fe9022433d
Use :unlet only when necessary.
2015-01-01 09:41:32 -05:00
Israel Chauca Fuentes
6f7e6413ce
Fix doco.
2014-12-30 21:02:44 -05:00
Kevin Ballard
a9a37854da
Minor documentation tweaks
...
Fix a typo in a hyperlink, and change the sample code for
delimitMate#JumpAny() to use an <expr> mapping instead of <C-R>=.
2014-12-29 19:33:24 -08:00
Kevin Ballard
0739792d01
Add 2 User events when mapping and unmapping
...
delimitMate has some nice logic for doing per-filetype mappings, but
this logic can't be used when users provide mappings directly. To remedy
this, add two User events `delimitMate_map` and `delimitMate_unmap` that
are fired at the appropriate times. Users can use these events to define
per-filetype mappings just as delimitMate does.
2014-12-29 19:33:15 -08:00
Kevin Ballard
6f4f1b06d3
Be more conservative about unmapping
...
Restrict unmapping to check for '^<Plug>delimitMate' (case sensitive)
instead of 'delimitMate' (case insensitive). This should make it less
likely to accidentally trigger on custom user keybinds that reference
delimitMate.
2014-12-29 18:37:51 -08:00
Israel Chauca Fuentes
0049b07a1c
Fix Makefile and gitignore.
2014-12-03 17:06:37 -05:00
Israel Chauca Fuentes
fe1983cfa1
Consider ´quotes in smart_quotes`. Close #182 .
...
[:punct:] does not always match the same set of characters.
2.7
2014-12-02 11:07:22 -05:00
Israel Chauca Fuentes
a4ac44a84f
Add test plugins to the &rtp if they are present.
2014-12-01 00:23:37 -05:00
Israel Chauca Fuentes
4c13ed6aee
Make s:g() return default optional values. Close #186 .
2014-11-30 11:40:19 -05:00
Israel Chauca Fuentes
eafd832c04
Fix indentation in test.
2014-11-29 16:08:43 -05:00
Israel Chauca Fuentes
e13872fdb2
Fix indentation in test.
2014-11-29 16:08:00 -05:00
Israel Chauca Fuentes
9a9b9edb9a
Merge pull request #183 from blueyed/makefile-for-tests
...
Makefile for tests
2014-11-29 15:32:43 -05:00
Israel Chauca Fuentes
0f353bd2b3
Add test for smartindent and expand_cr.
2014-11-28 12:11:28 -05:00
Israel Chauca Fuentes
c1b832bbf8
Merge pull request #180 from kballard/fix_expand_cr_smartindent
...
Fix expand_cr behavior with 'smartindent'
2014-11-27 02:45:59 -05:00
Israel Chauca Fuentes
073957f0a1
Add expand_inside_quotes to report and fix doc. Closes #179 .
2014-11-27 02:11:12 -05:00
Israel Chauca Fuentes
c678061b79
Fix '<CR><BS>. Closes #178 .
2014-11-27 01:48:34 -05:00
Israel Chauca Fuentes
12c7d85ff6
Add a basic vimrc to help with tests.
2014-11-26 19:24:38 -05:00
Israel Chauca Fuentes
66834e7209
Allow custom regex for smart_quotes. Close #164 .
...
- Use search() to match on the current line and remove most of the old
code in IsSmartQuote().
- Allow using ! to negate the pattern.
- Add tests.
- s:s() :unlet variables before setting them.
2014-11-26 15:03:00 -05:00
Daniel Hahler
21072cf13e
gitignore: test/build and test output/generated files
2014-06-15 15:14:40 +02:00
Daniel Hahler
d952f6c721
test: call new Makefile from test subdir
2014-06-15 15:14:40 +02:00
Daniel Hahler
0efe44bc70
Rename README to README.md
2014-06-15 15:14:40 +02:00
Daniel Hahler
631d72465a
Add a Makefile to provide make test
2014-06-15 15:14:40 +02:00
Kevin Ballard
4024181af2
Fix expand_cr behavior with 'smartindent'
...
When indentation is controlled by 'smartindent', the expand_cr behavior
doesn't end up producing the same results that you would get without
delimitMate. The following behavior results instead:
Before: {|}
After: {
|
}
The expected behavior is to produce the following:
Before: {|}
After: {
|
}
To that end, detect when indentation is controlled by 'smartindent' and
adjust the indentation of the close line to match.
2014-06-03 18:26:42 -07:00
Israel Chauca Fuentes
38487bbec8
Merge pull request #169 from blueyed/hack-jumpout-del-and-reinsert
...
JumpOut: delete and insert char instead of jumping over.
2014-02-19 20:40:27 -05:00
Israel Chauca Fuentes
c74a48ccd8
Merge pull request #167 from blueyed/makefile-detect-sed
...
Detect $SED dynamically, but do not force `gsed`
2014-02-14 02:41:58 -05:00
Daniel Hahler
df1f32f772
JumpOut: delete and insert char instead of jumping over
...
Ref: https://github.com/Raimondi/delimitMate/issues/168
2014-02-11 23:55:25 +01:00
Daniel Hahler
f2b9b3a0c2
Detect $SED dynamically, but do not force gsed
2014-02-06 02:24:43 +01:00
Daniel Hahler
1c45f7bbde
ParenDelim: improve smart_matchpairs handling
...
* move the check up
* only handle it when smart_matchpairs is configured (default)
2014-02-06 02:20:29 +01:00
Israel Chauca Fuentes
a1f21e8ef5
Merge pull request #162 from blueyed/handle-dotted-filetype
...
Fix &ft check in QuoteDelim: handle dotted filetypes
2014-02-02 21:05:39 -08:00
Israel Chauca Fuentes
eba94168ce
Merge pull request #161 from blueyed/doc-typo
...
minor: fix doc typo
2014-02-02 21:03:22 -08:00
Daniel Hahler
06c1f31632
Fix &ft check in QuoteDelim: handle dotted filetypes
...
From `:h 'filetype'`:
When a dot appears in the value then this separates two filetype
names. Example:
/* vim: set filetype=c.doxygen : */ ~
I am using `ft=pentadactyl.vim` for my Pentadactyl/Vimperator
configuration files.
2014-01-29 11:23:20 +01:00
Daniel Hahler
9826c667e0
minor: fix doc typo
2014-01-29 11:19:50 +01:00
Israel Chauca Fuentes
35280c1444
Merge pull request #158 from peter50216/patch-1
...
Run DelimitMateDo() when loading plugin.
2014-01-07 13:07:19 -08:00
peter50216
82160a5de6
run DelimitMateDo() when loading plugin.
...
Current setting would make this plugin's mapping added last, and cause conflict with https://github.com/tpope/vim-endwise . See https://github.com/tpope/vim-endwise/pull/13 .
2014-01-07 12:00:54 +08:00
Israel Chauca Fuentes
07d9fa9ddc
Check delimitMate_matchpairs’ syntax. Also some formatting.
2014-01-04 18:14:03 -05:00
Israel Chauca Fuentes
54853a954c
Consider | for matchpairs. Also some minor formatting. Fix #155 .
2014-01-04 16:43:45 -05:00
Israel Chauca Fuentes
f00f6b6cf2
Simplify TriggerAbb().
2013-12-25 02:28:46 -05:00
Israel Chauca Fuentes
d280d23a83
Do not try to expand iabbreviations when popup menu on. Should fix #154 .
2013-12-25 02:09:41 -05:00
Israel Chauca Fuentes
821e0019fb
Consider popup menu when expanding. Close #154 .
2013-12-24 13:20:39 -05:00
Israel Chauca Fuentes
5ef40e0234
Do not expand cr and space inside quotes by default. Close #153 .
...
- Add delimitMate_expand_inside_quotes.
- Add tests.
2013-12-24 02:48:35 -05:00
Israel Chauca Fuentes
399e18d669
Merge pull request #152 from Gray-Wind/master
...
Fix logical issue
2013-12-21 06:45:22 -08:00
Ilya Kolo
92fba35d27
Fix logical issue
2013-12-21 14:31:40 +04:00
Israel Chauca Fuentes
0528bdac15
Only try to expand abbreviations when supported. Close #151 .
2013-12-20 18:21:34 -05:00
Israel Chauca Fuentes
5db098e953
Better testing for quotes.
2013-12-19 00:26:58 -05:00