commit a3000d8857f2f617f1cce7b89d55cfaeaf7bbff2
parent 34def499f91b6dcdeae37ccad206aed892b545ac
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 19 Jun 2019 08:39:21 +0200
Put vis binds into alphabetical order
Diffstat:
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -60,27 +60,28 @@ vis.events.subscribe(vis.events.INIT, function()
-- global configuration options
vis:command('set theme adbasic')
- vis:map(vis.modes.NORMAL, leader..'w', ':w<Enter>')
- vis:map(vis.modes.NORMAL, leader..'q', ':q<Enter>')
- vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>')
- vis:map(vis.modes.NORMAL, leader..'n', ':set numbers!<Enter>')
- vis:map(vis.modes.NORMAL, leader..'N', ':set relativenumbers!<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'B', ':e "$BIB"<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'C', ':e ~/.config/vis/visrc.lua<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'e', ':fzf true<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'g', ':rg true<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'G', ':rg<Enter>')
vis:map(vis.modes.NORMAL, leader..'l', ':set show-newline!<Enter>')
vis:map(vis.modes.NORMAL, leader..'m', ':!make<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'n', ':set numbers!<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'N', ':set relativenumbers!<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'o', ':fzf<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -o<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'q', ':q<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ')
+ vis:map(vis.modes.NORMAL, leader..'T', ':e ~/doc/todo.md<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'w', ':w<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>')
+ vis:map(vis.modes.VISUAL, leader..'y', ':> xclip<Enter>')
+
vis:map(vis.modes.NORMAL, '<F7>', ':!sent $vis_filepath &<Enter>')
vis:map(vis.modes.NORMAL, '<Tab><Tab>', '<vis-window-next>')
vis:map(vis.modes.NORMAL, leader..'<Tab>', ':prev<Enter>')
- vis:map(vis.modes.NORMAL, leader..'e', ':fzf true<Enter>')
- vis:map(vis.modes.NORMAL, leader..'o', ':fzf<Enter>')
- vis:map(vis.modes.NORMAL, leader..'g', ':rg true<Enter>')
- vis:map(vis.modes.NORMAL, leader..'G', ':rg<Enter>')
vis:map(vis.modes.NORMAL, leader..',', ':fzfmru<Enter>')
- vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ')
- vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -o<Enter>')
- vis:map(vis.modes.VISUAL, leader..'y', ':> xclip<Enter>')
- vis:map(vis.modes.NORMAL, leader..'C', ':e ~/.config/vis/visrc.lua<Enter>')
- vis:map(vis.modes.NORMAL, leader..'T', ':e ~/doc/todo.md<Enter>')
- vis:map(vis.modes.NORMAL, leader..'B', ':e "$BIB"<Enter>')
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)