tpope / vim-surround

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease
https://www.vim.org/scripts/script.php?script_id=1697
13.35k stars 443 forks source link

working when outside of interesting areas #91

Open papanikge opened 11 years ago

papanikge commented 11 years ago

I don't know if it is suppose to work when I want to change a (something) to [something] and the cursor is outside of that place (but on the same line of course), but it only works with "".

I think it would be useful to work with parenthesis...

qstrahl commented 11 years ago

Unforunately I think this comes down to vim behaviour. The quote text objects look ahead, but I don't think any of the others do. Could be vim-surround works around that though.

tpope commented 11 years ago

Pretty much. In hindsight it would have been better to not rely on text objects in our implementation.

On Wed, Mar 20, 2013 at 4:59 PM, Quinn Strahl notifications@github.comwrote:

Unforunately I think this comes down to vim behaviour. The quote text objects look ahead, but I don't think any of the others do. Could be vim-surround works around that though.

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-surround/issues/91#issuecomment-15203075 .