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 267bc79de2f59124e955cefa6616de6eaaeb7e80
parent 1d7a8fa1e2c1c81b87243c185dc1199786d63012
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 29 Aug 2019 14:21:54 +0200

Change board file open order, add qall key binding

Diffstat:
M.config/vis/visrc.lua | 22+++++++++++-----------
M.local/bin/board | 2+-
2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -71,8 +71,17 @@ vis.events.subscribe(vis.events.INIT, function() 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/snippets.lua<Enter>') - vis:map(vis.modes.NORMAL, leader..'d', ':< date') + vis:map(vis.modes.NORMAL, leader..'d', ':< date<Enter>') vis:map(vis.modes.NORMAL, leader..'e', ':fzf true<Enter>') + vis:map(vis.modes.NORMAL, leader..'f', function() + vis:command(':w') + vis:command(':!fmt -s -w 80 $vis_filepath > /tmp/fmttmp && '.. + 'mv /tmp/fmttmp $vis_filepath') + -- vis:command(':!PARINIT=\'rTbgqR B=.,?_A_a Q=_s>|\' '.. + -- 'cat $vis_filepath | par > /tmp/fmttmp && '.. + -- 'mv /tmp/fmttmp $vis_filepath') + vis:command(':e') + end) 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>') @@ -84,21 +93,12 @@ vis.events.subscribe(vis.events.INIT, function() vis:map(vis.modes.NORMAL, leader..'o', ':fzf<Enter>') vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -selection clipboard -o<Enter>') vis:map(vis.modes.NORMAL, leader..'q', ':q<Enter>') + vis:map(vis.modes.NORMAL, leader..'Q', ':qa<Enter>') vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ') vis:map(vis.modes.NORMAL, leader..'t', ':!ctags -R . >/dev/null 2>&1 &<Enter>') 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..'W', function() - vis:command(':w') - vis:command(':!fmt -s -w 80 $vis_filepath > /tmp/fmttmp && '.. - 'mv /tmp/fmttmp $vis_filepath') - -- vis:command(':!PARINIT=\'rTbgqR B=.,?_A_a Q=_s>|\' '.. - -- 'cat $vis_filepath | par > /tmp/fmttmp && '.. - -- 'mv /tmp/fmttmp $vis_filepath') - vis:command(':e') - end) vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>') - vis:map(vis.modes.VISUAL, leader..'X', '') vis:map(vis.modes.VISUAL, leader..'y', ':> xclip -selection clipboard -i<Enter>') vis:map(vis.modes.NORMAL, '<F7>', ':!sent $vis_filepath &<Enter>') diff --git a/.local/bin/board b/.local/bin/board @@ -31,7 +31,7 @@ board() { vim +'windo normal G' -c "windo set tw=1000" "$format" \ "$dir"/todo.md "$dir"/progress.md "$dir"/done.md else - $EDITOR "$dir"/todo.md "$dir"/progress.md "$dir"/done.md + $EDITOR "$dir"/done.md "$dir"/progress.md "$dir"/todo.md fi }