Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block selection does not work as expected #46

Closed
Enrico68 opened this issue Nov 22, 2014 · 8 comments
Closed

Block selection does not work as expected #46

Enrico68 opened this issue Nov 22, 2014 · 8 comments

Comments

@Enrico68
Copy link

I want to change this block of text

http://www.plosone.org/article/feed/search?unformattedQu
http://www.plosone.org/article/feed/search?unformattedQuery=subject%
http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2

into this

"http://www.plosone.org/article/feed/search?unformattedQu"
"http://www.plosone.org/article/feed/search?unformattedQuery=subject%"
"http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2"

According to the instruction you can surround in visual-state with s<textobject><trigger> . But what you get is :

"http://www.plosone.org/article/feed/search?unformattedQu
http://www.plosone.org/article/feed/search?unformattedQuery=subject%
http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2"
@Enrico68
Copy link
Author

It is not supposed to use a macro if emulates surround.vim by Tim Pope...

Tim Harper [email protected] writes:

Use a macro

Sent from my iPhone

On Nov 22, 2014, at 03:14, Enrico Pirani [email protected] wrote:

I want to change this block of text

http://www.plosone.org/article/feed/search?unformattedQu
http://www.plosone.org/article/feed/search?unformattedQuery=subject%
http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2
into this

"http://www.plosone.org/article/feed/search?unformattedQu"
"http://www.plosone.org/article/feed/search?unformattedQuery=subject%"
"http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2"
According to the instruction you can surround in visual-state with s . But what you
get is :

"http://www.plosone.org/article/feed/search?unformattedQu
http://www.plosone.org/article/feed/search?unformattedQuery=subject%
http://www.plosone.org/article/feed/search?unformattedQuery=subject%3A%2"

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.*

Sent with my mu4e

@HalimNaim
Copy link

surround.vim has the same behavior. It surround the entire block, not each line. AFAIK

@Enrico68
Copy link
Author

@HalimNaim
Copy link

I'm Sorry, didn't know you were talking about a visual block. C-v.

@HalimNaim
Copy link

@Enrico68 I have a first draft at implementing that functionality. After a first late night test, seems to work. Give it a go if you like. test

P.S: The code is really ugly.

@Enrico68
Copy link
Author

@Ramapitecus I tried but it looks as before or at least this was what I have done C-v-j-j-$-S-"
screen.

@HalimNaim
Copy link

That's strange. It works here. Maybe you are using an older version of evil. That happened to me in issue #41. I'm pressing exactly the same keys, and using you sample text.

timcharper added a commit that referenced this issue Jun 5, 2015
Implement block-wise surround (Fixes #46)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants