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 165b071a87c63f8d5290d4f249ebbd8069c150f2
parent d61fa226b7e8abc982324006e4739b813a1861c3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 18 Jul 2019 09:21:15 +0200

Use par instead of fmt for word wrap and paragraph reflow

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

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -90,7 +90,11 @@ vis.events.subscribe(vis.events.INIT, function() vis:map(vis.modes.NORMAL, leader..'w', ':w<Enter>') vis:map(vis.modes.NORMAL, leader..'W', function() vis:command(':w') - vis:command(':!fmt -w 80 $vis_filepath > /tmp/fmttmp && mv /tmp/fmttmp $vis_filepath') + -- vis:command(':!fmt -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>')