Tim Pope
3d188ed211
Call out opening bracket behavior in FAQ
...
Apparently mentioning in the both the README intro and the help file
isn't enough. I give up.
Resolves: https://github.com/tpope/vim-surround/issues/366
Resolves: https://github.com/tpope/vim-surround/issues/363
Resolves: https://github.com/tpope/vim-surround/issues/314
Resolves: https://github.com/tpope/vim-surround/issues/303
Resolves: https://github.com/tpope/vim-surround/issues/240
Resolves: https://github.com/tpope/vim-surround/issues/205
Resolves: https://github.com/tpope/vim-surround/issues/108
Resolves: https://github.com/tpope/vim-surround/issues/27
2022-10-25 16:41:16 -04:00
Tim Pope
bf3480dc9a
Remove issues section from help file
...
I haven't even looked at this in over a decade.
2022-04-22 19:25:12 -04:00
Tim Pope
81fc0ec460
Fix insert mode maps after "\r" change
...
Resolves: https://github.com/tpope/vim-surround/issues/349
2022-04-09 22:21:13 -04:00
Tim Pope
427f80f254
Avoid "\r" as a cursor stand-in
...
This confuses Neovim's LSP. I'd be surprised if there are LSPs it
*doesn't* confuse.
References: https://github.com/neovim/neovim/issues/15532
2022-04-09 16:04:28 -04:00
Enrico Maria De Angelis
9857a87463
Save, set, and restore startofline
...
Consider this code:
```javascript
_.map(
(
mapObjOnK
)
);
```
If the cursor is on the 3rd line and you press <kbd>d</kbd><kbd>s</kbd><kbd>b</kbd>, the code will become
```javascript
_.map(
);
mapObjOnK
```
The problem occurs if `startofline` is off.
With this change, I set it before processing the the call to
`dosurround`, and then, after the call, I'm unsetting it if
it was unset.
2022-03-25 16:13:16 -04:00
Tim Pope
baf89ad264
Only reindent when enabled by Vim option
...
References: https://github.com/tpope/vim-markdown/pull/187
2022-01-29 21:05:37 -05:00
Tim Pope
aeb933272e
surround.vim 2.2
...
* Keep HTML attributes when changing tags.
* Support <Space><Space> as space replacement.
* Bug fixes.
v2.2
2021-10-12 12:15:51 -04:00
agguser
f51a26d371
Fix bug when closing delimiter is at line end ( #284 ) ( #285 )
2019-11-28 01:29:20 -05:00
Tim Pope
e4c4cc0f81
Add sponsor button
2019-11-12 18:33:40 -05:00
Viacheslav Lotsmanov
fab8621670
Fix for "all" and "insert" "virtualedit" in Insert mode
2019-07-22 16:30:45 -04:00
Chris AtLee
ca58a2d886
Documentation for function name replacements ( fixes #222 )
2019-03-26 17:22:34 -04:00
matsuhav
597068870b
Fix blank lines issue
...
In #254 , probably because the tag is followed by <CR>, cstta<CR> sets
regtype 'V'(linewise) though its keeper doesn't end with <CR>. And
setreg() adds extra <CR> at @". Remove this extra <CR> and fix adding
<CR> method.
2018-07-23 14:52:25 -04:00
Tim Pope
aa1f120ad3
Fix yss in middle of line
...
Closes https://github.com/tpope/vim-surround/issues/256
2018-06-15 15:17:44 -04:00
Tim Pope
643a42454b
Fix yss adding newlines
2018-05-29 19:08:56 -04:00
Tim Pope
4e7d573c14
Make ys maps atomic
...
Closes https://github.com/tpope/vim-surround/issues/253
2018-05-29 17:37:25 -04:00
Tim Pope
e8dca61597
Modernize README
2018-05-29 17:35:44 -04:00
Adriaan Zonnenberg
e49d6c2459
Only add colon if prompt ends with word ( #204 )
...
Lets you use your own ending characters, instead of always adding ': '.
Closes #203
2016-06-01 18:06:04 -04:00
Tim Pope
2d05440ad2
Merge pull request #175 from yuex/ds__
...
support ds<space><space>
2015-08-07 23:37:10 -04:00
Tim Pope
c492390126
Merge pull request #167 from sunaku/issue-159
...
GH-159: don't use comma as alias for HTML/XML tags
2015-08-07 23:22:40 -04:00
Yue Xin
e38dea3972
support ds<space><space>
2015-08-08 01:28:26 +08:00
Suraj N. Kurapati
5c6a64f333
GH-159: don't use comma as alias for HTML/XML tags
...
This change allows us to surround text with commas.
2015-04-30 10:36:59 -07:00
Tim Pope
772ab9587b
Merge pull request #163 from kiryph/feature-repeat-late
...
Add repeat.vim support to surround with LaTeX environment 'ys<>l'
2015-03-15 13:32:12 -05:00
kiryph
605c12d7d2
Add repeat.vim support to surround with LaTeX environment 'ys<>l'
2015-02-25 21:28:28 +01:00
Tim Pope
ec579a5047
Merge pull request #131 from shanesmith/master
...
Keep HTML attributes when changing tags
2015-02-22 12:37:25 -06:00
Shane Smith
5d6b91ce80
Keep HTML attributes when changing tags
...
By default keep the HTML attributes of the previous surrounding tag.
Option to remove attributes if the new tag prompt is ended with '>'.
Fixes #95 .
2015-02-22 11:50:33 -05:00
Tim Pope
fd75eb2cb2
surround.vim 2.1
...
* Handle arbitrary punctuation delimiters with cs and ds.
* Default to automatic indenting.
* Provide cS to force surroundings on separate lines.
* Support for disabling mappings only for insert mode.
* Add repeat.vim support to surround with function.
* Work around 'nomagic'.
v2.1
2015-02-08 14:06:19 -05:00
Tim Pope
6afb2d90e3
Merge pull request #158 from itspriddle/patch-1
...
Fix typo in `repeat#set` call
2015-02-04 16:50:48 -06:00
Joshua Priddle
7e8f414b8c
Fix typo in repeat#set call
2015-02-04 17:49:38 -05:00
Tim Pope
6e0a168a97
Merge pull request #96 from jwhitley/john/cS
...
Add support for 'cS' per issue 48
2015-02-03 12:39:09 -06:00
John Whitley
5211890344
Update documentation for 'cS'
2015-02-03 10:14:41 -08:00
John Whitley
86f6aca956
Add support for 'cS' per issue 48
...
This adds support for a cS command that puts the contents of the wrapped
region on their own line, analogous to yS. This change includes repeat
support.
2015-02-03 10:14:41 -08:00
Tim Pope
fa433e0b73
Work around 'nomagic'
...
Documentation explicitly advises against setting this option, but this
particular problem is easy enough to work around.
Closes #90 .
2014-07-26 12:42:47 -04:00
Tim Pope
f85cb4e788
Merge pull request #125 from tommcdo/master
...
Add repeat.vim support to surround with function
2014-06-05 19:24:23 -04:00
Tom McDonald
4e73eeb01d
Add repeat.vim support to surround with function
...
Closes #106 .
2014-04-11 15:55:50 -04:00
Tim Pope
42e9b46e7a
Fix quote support
2013-09-23 14:05:37 -04:00
Tim Pope
9bf527af3a
Merge pull request #107 from DanielleSucher/support-arbitrary-delimiters
...
Handle arbitrary delimiters with cs and ds
2013-09-09 15:37:09 -07:00
Danielle Sucher
7def4c0772
Handle any punctuation delimiters with cs and ds
2013-09-06 11:31:14 -07:00
Takatoshi Matsumoto
02199ea008
Support to disable mappings only for insert mode
...
If disable mappings only in normal mode.
let g:surround_no_insert_mappings = 1
2013-01-23 12:26:25 +09:00
Tim Pope
2cc734fd99
Default to automatic indenting
...
Only one way to find out if this is actually a good idea.
2013-01-18 18:39:59 -05:00
Tim Pope
0b2c9ff9df
surround.vim 2.0
...
* Fix vs with selection=exclusive.
* Remove `unnamedplus' from clipboard in addition to `unnamed'.
* Kill vs.
* Bump to Vim 7.
* Add support for repeating ys commands.
* Add support for repeating tags.
* Don't save deleted surrounding in unnamed register.
* Fix deletion of delimiters on their own lines.
v2.0
2013-01-01 01:44:29 -05:00
Tim Pope
4c9a4e0b34
Add a lisp function call replacement
...
Not sure how useful this is but we'll sneak it in undocumented.
2013-01-01 01:42:57 -05:00
Tim Pope
29afa295ae
Add : replacement
...
Both Ruby and Clojure use :keywords, so I'm considering this general
enough to make a default.
2013-01-01 01:34:27 -05:00
Tim Pope
1c9d8e660c
Add leading space replacement
2013-01-01 01:32:49 -05:00
Tim Pope
ac67c1a738
Remove documentation of LaTeX expansion
...
It's dumb, but I can't bring myself to yank it out entirely just yet.
2013-01-01 01:29:57 -05:00
Tim Pope
f57e5aa972
Fix deletion of delimiters on their own lines
...
Closes #19 .
2012-12-25 17:20:21 -05:00
Tim Pope
1a73f607f8
Remove s warning
...
Closes #51 .
2012-06-07 20:50:23 -04:00
Tim Pope
489a1e8c67
Fix . with ys and replacements with input
2012-03-14 12:34:06 -04:00
Tim Pope
dfea25aae8
Fix . after a ys map
...
Closes #54 .
2012-03-14 09:23:25 -04:00
Tim Pope
efc017dcb4
Don't save deleted surrounding in unnamed register
2012-03-03 06:46:11 -05:00
Tim Pope
98e4526c26
Merge pull request #52 from padgetap/master
...
Make repeat work for HTML tags
2012-03-03 03:45:56 -08:00