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

vim-repeat remaps my custom key #19

Open
zkf opened this issue Oct 15, 2013 · 5 comments
Open

vim-repeat remaps my custom key #19

zkf opened this issue Oct 15, 2013 · 5 comments

Comments

@zkf
Copy link

zkf commented Oct 15, 2013

Hi

I am having trouble with your plugins vim-surround and vim-repeat. Although I found a dirty workaround I thought you might want to know what the issue is.

The problem is that when I use the features from surround.vim, my u key (which I have remapped) is remapped back to being undo. This happens in repeat.vim.

The workaround I have found is to source repeat.vim just before I set my custom keymappings in .vimrc.

(I tried moving repeat.vim from the autoload directory to plugin, this only results in the u key being remapped when vim starts).

@blueyed
Copy link

blueyed commented Oct 16, 2014

I have a similar problem: I am currently experimenting with nnoremap . : and nnoremap : . to swap : and . (on a German keyboard).

There could be an option, so that vim-repeat could be made to map itself on : instead in my case.

I wonder if there's a way to detect this automatically: while there is hasmapto() which could be used to detect that something else is mapped to ., I could not find a way to get the left-hand-side for this.

@zkf
Do you have another key mapped to u then, similar to my swapping?

blueyed added a commit to blueyed/vim-repeat that referenced this issue Oct 16, 2014
@blueyed
Copy link

blueyed commented Oct 16, 2014

@zkf
You might want to try my PR at: #28

@blueyed
Copy link

blueyed commented Oct 17, 2014

FWIW: vim-vinegar also maps the dot and could benefit from any autodetection and redirection of the lhs.

@zkf
Copy link
Author

zkf commented Oct 17, 2014

@blueyed I don't remap the u key anymore, so I haven't had any issues for a while.

blueyed added a commit to blueyed/vim-repeat that referenced this issue Oct 30, 2014
@PhML
Copy link

PhML commented Oct 12, 2015

What is the status with this issue ? I also experiment troubles with the swap of . with :.

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

Successfully merging a pull request may close this issue.

3 participants