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

Mapping doesn't work as expected. #12

Open
trusktr opened this issue Nov 18, 2014 · 4 comments
Open

Mapping doesn't work as expected. #12

trusktr opened this issue Nov 18, 2014 · 4 comments

Comments

@trusktr
Copy link

trusktr commented Nov 18, 2014

I use this in my vimrc:

                noremap i k
                noremap j h
                noremap k j
                noremap h i

etc, so that I can use IJKL for movement instead of HJKL. It's more like arrow keys that way. For text objects, I use h, and in VISUAL mode I can press i to move up. With vim-textobj-function, I was expecting vhF to select a function, but instead I have to use viF, which means I can't move up!

Is there some way you can make this work no matter what key the user maps to i?

Awesome plugin. :)

@kana
Copy link
Owner

kana commented Nov 18, 2014

In that case, you should append vmap h i to allow remapping.

@trusktr
Copy link
Author

trusktr commented Nov 20, 2014

@kana That doesn't work. noremap already maps in Normal, Visual, Select, and Operator-pending. I didn't see any mapping in your source. hmmm...

@kana
Copy link
Owner

kana commented Nov 20, 2014

It works for me. Did you really append the mapping to your vimrc?

@trusktr
Copy link
Author

trusktr commented Nov 23, 2014

@kana It's in my .vimrc, line 613.

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