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 2e398ebe086e93c9759591c3358693c09ca5b812
parent 515db47f27ae908f9724bb61b76a41386cb5e392
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  9 Oct 2019 12:31:12 +0200

Strip trailing spaces on save

Diffstat:
M.config/vis/visrc.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -97,7 +97,7 @@ vis.events.subscribe(vis.events.INIT, function() 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', ':x/ +$/ c//<Enter>:w<Enter>') vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>') vis:map(vis.modes.NORMAL, leader..'X', function() -- mark todo item as done and append date