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

Is it possible to change keybindings? #365

Closed
fosskers opened this issue Dec 31, 2015 · 9 comments
Closed

Is it possible to change keybindings? #365

fosskers opened this issue Dec 31, 2015 · 9 comments

Comments

@fosskers
Copy link

I use a Colemak keyboard, and thus having up and down mapped to J and K is slightly inconvenient for my fingers. Is there a way to change this?

@timss
Copy link
Member

timss commented Dec 31, 2015

Yes, but keep in mind when to use map and noremap in situations like these. See :h map for more information.

noremap e k

Lucky for you, seems like someone already did most of the job :-)

https://github.com/lalopmak/lalopmak-mappings/blob/master/firefox/colemak.vimperator

@fosskers
Copy link
Author

Interesting, thanks for that. There are really only a few remapping I'd need to do.

Where would one write said settings?

@timss
Copy link
Member

timss commented Dec 31, 2015

In ~/.vimperatorrc. You can also put it in a seperate file, and use source ~/.colemak.vimperator if you'd like.

@fosskers
Copy link
Author

Done! While you're here, is there a nice way to cycle through the tabs? dwb and qutebrowser use Shift+j/Shift+k

@timss
Copy link
Member

timss commented Dec 31, 2015

There are many. b is pretty cool, but there's also gX mappings:

liberator://help/tabs#changing-tabs (:h changing-tabs)

@basvdheuvel
Copy link
Contributor

I use . and , for tab switching.

@fosskers
Copy link
Author

How did you set that, @klaplong ? I'm still very new to vimperator config.

@timss
Copy link
Member

timss commented Dec 31, 2015

noremap . gT
noremap , gt

Add this to your ~/.vimperatorrc.

@fosskers
Copy link
Author

fosskers commented Jan 6, 2016

Done, thanks a ton.

@fosskers fosskers closed this as completed Jan 6, 2016
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