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

o in visual mode #10

Closed
michaelficarra opened this issue Aug 2, 2011 · 5 comments
Closed

o in visual mode #10

michaelficarra opened this issue Aug 2, 2011 · 5 comments

Comments

@michaelficarra
Copy link

This is one of those features that you're really glad exists when you need it. I haven't seen any other editor with a similar feature either, which is a shame.

@misfo
Copy link
Owner

misfo commented Aug 11, 2011

Agreed. I'll throw this in after I get out of the refactor hell that the dot command has put me in

@misfo
Copy link
Owner

misfo commented Aug 11, 2011

O seems to do the same thing in visual mode. So I'll map that as well

@michaelficarra
Copy link
Author

It's always best to go by the spec than just what we observe:

                                                        *v_o* 
o                       Go to Other end of highlighted text: The current 
                        cursor position becomes the start of the highlighted 
                        text and the cursor is moved to the other end of the 
                        highlighted text.  The highlighted area remains the 
                        same.                           
                                
                                                        *v_O* 
O                       Go to Other end of highlighted text.  This is like 
                        "o", but in Visual block mode the cursor moves to the 
                        other corner in the same line.  When the corner is at 
                        a character that occupies more than one position on 
                        the screen (e.g., a ), the highlighted text may 
                        change.

And since we don't have visual block mode (hmm...), they're identical.

@misfo
Copy link
Owner

misfo commented Aug 11, 2011

Yeah, without visual block mode they could both map to the same command. That is interesting that there's a distinction in Vim, though. I did not know that. Vim's thorough documentation is a godsend for a project like this

@michaelficarra
Copy link
Author

Agreed, vim's documentation is some of the most thorough around.

sourrust added a commit to sourrust/jim that referenced this issue Oct 1, 2011
In regards to issue misfo#10, pressing `o` in visual mode will go to the
opposite side of the selected text.
@misfo misfo closed this as completed in d145b0d Oct 6, 2011
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

2 participants