nvim : add <Leader>. for visual mode, too.
This commit is contained in:
parent
df7a29a6f1
commit
26e0dea207
|
@ -3,6 +3,7 @@
|
|||
# Table of contents.
|
||||
1. [General info.](#general-info)
|
||||
2. [Load Gnome settings.](#load-gnome-settings)
|
||||
3. [Navigation.](#navigation)
|
||||
|
||||
# General info.
|
||||
This is my own custom config that I use on my GNU/Linux machines. Not ment to be used by anyone else. It includes:
|
||||
|
@ -24,3 +25,10 @@ This is my own custom config that I use on my GNU/Linux machines. Not ment to be
|
|||
To load Gnome settings run `dconf_load`.
|
||||
|
||||
# Navigation.
|
||||
Navigation principles are shared between Gnome, Tmux and Nvim. The only difference is "Leader" key. Gnome uses `Super` key, Tmux uses `Meta (alt)` key and Nvim uses `Space`. The rest somewhat repeats itself.
|
||||
|
||||
## Gnome
|
||||
key|action
|
||||
---|---
|
||||
`Super+q`|Move to the left workspace.
|
||||
`Super+e`|Move to the right workspace.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require('key/rekey')
|
||||
|
||||
rekey_normal('<Leader>.', '@:') -- repeat command. NOTE: is this the same as Q ?
|
||||
rekey_normal('<Leader>.', '@:') -- repeat command.
|
||||
rekey_visual('<Leader>.', '@:') -- repeat command.
|
||||
rekey_normal('zz', '<cmd>wa<cr>') -- save file.
|
||||
rekey_normal('<Leader>z', '<cmd>wqa<cr>') -- save & quit all.
|
||||
rekey_normal('<Leader>v', 'v') -- visual select (duplicate).
|
||||
|
|
Reference in a new issue