dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 84d73c6b6098c53b60c6e36e94fd11fa837413b7
parent 99f9a228eae7a838fa82a76d9fe96ed3ab127376
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 19 Jun 2019 14:21:27 +0200

Add git bindings

Diffstat:
M.config/vis/visrc.lua | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -65,13 +65,16 @@ vis.events.subscribe(vis.events.INIT, function() -- global configuration options vis:command('set theme adbasic') + vis:map(vis.modes.NORMAL, leader..'a', ':rg true<Enter>') + vis:map(vis.modes.NORMAL, leader..'A', ':rg<Enter>') vis:map(vis.modes.NORMAL, leader..'B', ':e "$BIB"<Enter>') vis:map(vis.modes.NORMAL, leader..'CC', ':e ~/.config/vis/visrc.lua<Enter>') vis:map(vis.modes.NORMAL, leader..'CS', ':e ~/.config/vis/plugins/snippetsv.lua<Enter>') vis:map(vis.modes.NORMAL, leader..'d', ':< date') 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..'ga', ':!git add $vis_filepath<Enter>') + vis:map(vis.modes.NORMAL, leader..'gc', ':!git commit -v -S<Enter>') + vis:map(vis.modes.NORMAL, leader..'gp', ':!git push<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..'m', ':!tmux split-window -p 25 "make"',