96 Commits
Author SHA1 Message Date
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
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.
2021-10-12 12:15:51 -04:00
Tim Pope e4c4cc0f81 Add sponsor button 2019-11-12 18:33:40 -05: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
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
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
Tim Pope ec579a5047 Merge pull request #131 from shanesmith/master
Keep HTML attributes when changing tags
2015-02-22 12:37:25 -06: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'.
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
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
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
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
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.
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
Tim Pope 6f0984a5ca Don't clobber v_s map 2011-10-06 18:15:49 -04:00
Tim Pope 440dc59614 Typo 2011-09-17 16:42:24 -04:00
Tim Pope f6c9d3beb2 Warn about removed "s" mapping 2011-09-10 19:25:18 -04:00
Tim Pope c9120390d8 Kill vs in the docs 2011-08-30 20:32:41 -04:00
Tim Pope 21d7375644 Bump to Vim 7 2011-08-30 20:32:41 -04:00
Tim Pope 2e600335db Clarify copyright 2011-08-30 20:32:41 -04:00
Tim Pope 6fb16eae21 Kill vs 2011-08-29 01:54:43 -04:00
Tim Pope 3d2d04a31b Add a README 2011-08-29 01:22:01 -04:00
Tim Pope 50934cc38b Ignore doc/tags 2011-08-29 01:21:49 -04:00
Tim Pope 4eed69afe5 Kill boilerplate and commented code 2011-08-29 01:00:43 -04:00
Tim Pope 010c5fc915 Use URL not email 2011-08-29 00:54:47 -04:00
Tim Pope 193649616c Fix vs with selection=exclusive 2011-01-11 23:15:43 -05:00
Tim Pope e6f8ab5b82 Update email address 2011-01-11 23:15:43 -05:00
Tim Pope 27710a2224 Add rob-fortune's mnemonic for "ys" 2010-09-09 11:00:28 -04:00
Tim Pope ad5690f10e surround.vim 1.90 2010-03-05 19:57:47 -05:00
Tim Pope 29af61b9b4 Use xmap if possible for vgS 2010-03-05 19:57:47 -05:00
Tim Pope a48b3be6cb Begin phasing out vs and introduce vgS 2010-03-05 19:43:28 -05:00
Tim Pope e842a01061 Switch to a 'shiftwidth' of 2 2010-03-05 19:43:28 -05:00
Tim Pope f5dc0afc4b Update email address 2010-03-05 19:43:28 -05:00
Tim Pope 545ca856ff Work around remapped "d" [Christian Oudard] 2009-11-03 22:16:48 -05:00
Tim Pope 50cea14534 Really get rid of % mapping on tag input 2009-07-21 11:40:41 -04:00
Tim Pope 298858f6a2 Fix bugs related to 'ignorecase' and 'clipboard' 2008-04-25 21:59:41 -05:00
Tim Pope b50ce89362 Documentation typo fixes 2008-04-25 18:26:52 -05:00
Tim Pope e9ba54ce8d Fix shift in csw, etc. 2008-02-15 21:43:42 +00:00
Tim Pope 5f32b8921e Don't back up if no match found 2008-02-04 03:50:46 +00:00
Tim Pope 4c001173ad Settle on using repeat#set 2008-01-29 15:46:22 +00:00
Tim Pope 9b9445f62b Fix regression in quote handling 2008-01-29 15:43:43 +00:00
Tim Pope 9813515fb2 Hedge bets on dot.vim/repeat.vim name 2008-01-27 16:27:08 +00:00
Tim Pope bb456ddcf4 Fix edgecase where ds would move the inner text 2008-01-25 18:31:07 +00:00
Tim Pope dff474073c Surround docs grammar fix and other cleanup 2008-01-25 18:22:00 +00:00
Tim Pope afd585e84c Added dot.vim support to surround.vim 2008-01-24 03:15:36 +00:00
Tim Pope 5cc6e56248 Fixed multiline surrounds in insert mode 2007-10-01 15:27:33 +00:00
Tim Pope b70c7e159d Whitespace tweak 2007-10-01 15:20:30 +00:00
Tim Pope 18967e9fcb Tweaked insert mode indent rules 2007-07-31 14:20:47 +00:00
Tim Pope 714e9b8a61 Experimental C comment support 2007-05-27 21:15:27 +00:00
Tim Pope a7208375e7 surround_indent now works in insert mode; Added <C-]> for braces 2007-05-10 20:49:49 +00:00
Tim Pope e801be2fca Document <C-}>, cleanup formatting 2007-05-10 04:59:47 +00:00
Tim Pope 4606cef260 Added note about surround_insert_tail 2007-02-16 17:29:43 +00:00
Tim Pope 370bb2ab2f surround_insert_tail, xmap rather than vmap 2007-02-12 15:37:15 +00:00
Tim Pope 8ae2a80966 Another substitution example 2007-02-12 01:06:21 +00:00
Tim Pope 8a2116a0c1 Save and restore clipboard option, rather than hack around behavior 2007-02-11 18:23:19 +00:00
Tim Pope c85cef48ca Try to work around clipboard=unnamed 2007-02-11 18:09:45 +00:00
Tim Pope 90295205ad Proof of concept substitutions in user replacements 2007-02-05 17:47:43 +00:00
Tim Pope d49993acfa Made separate help file 2006-11-14 07:16:55 +00:00
Tim Pope fea47208d1 Eliminated error in visual mode mapping 2006-11-12 02:02:30 +00:00
Tim Pope b31015ee87 <C-G>s in insert mode; fixed bug in ys when selection starts at end of line 2006-11-07 23:03:52 +00:00
Tim Pope 1e4cf6f319 Discard numerical argument for ys and yS 2006-11-06 05:53:09 +00:00
Tim Pope dd236914cf Alphabetic characters won't insert themselves 2006-11-05 18:50:27 +00:00
Tim Pope f168e0d58c Bugfix with noexpandtab; restore clipboard 2006-11-05 06:15:24 +00:00
Tim Pope 6916c71a00 S in blockwise visual mode trims trailing space 2006-11-02 17:21:39 +00:00
Tim Pope 07a90d26f3 Cope with backslashes in blockwise visual mode 2006-11-01 05:59:08 +00:00
Tim Pope d12310f483 Allow newlines in closing (but not opening) of replacement 2006-10-31 21:34:54 +00:00
Tim Pope f97446abd1 Alternate insert mode implementation 2006-10-31 20:59:02 +00:00
Tim Pope 6c639ccfd4 Cleaned up; added blockwise visual mode support 2006-10-31 02:02:17 +00:00
Tim Pope f06d809973 (sort of) allow newlines in replacement 2006-10-30 19:19:57 +00:00
Tim Pope 80136d216f Allow count after ds and cs 2006-10-30 04:57:40 +00:00
Tim Pope 011d388ca2 Clarified SurroundHelp() at top of file 2006-10-30 01:34:06 +00:00
Tim Pope 1edeffcc0d Much improved documentation 2006-10-30 00:09:40 +00:00
Tim Pope 62021e986e Case sensitive comparisons; minor tweaks 2006-10-29 21:03:15 +00:00
Tim Pope d99a4b9e01 Remove whitespace in some cases 2006-10-29 04:18:16 +00:00
Tim Pope 736d1b5482 Insert mode mapping, space adding, LaTeX/function replacements 2006-10-29 03:44:12 +00:00
Tim Pope 0229c93f94 Added plugin 2006-10-28 00:31:44 +00:00