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 3fd273ad3e16696b822bc240d64ca7db99e9c56e
parent f396408454cb4bf234f1b1ae3264df54926a14e8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  9 Sep 2019 09:30:34 +0200

Use xsel instead of xclip for reading to clipboard

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

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -91,8 +91,10 @@ vis.events.subscribe(vis.events.INIT, function() 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 -i<Enter>') - vis:map(vis.modes.VISUAL, leader..'Y', ':> xclip -selection clipboard -i<Enter>') + -- vis:map(vis.modes.VISUAL, leader..'y', ':> xclip -i<Enter>') + -- vis:map(vis.modes.VISUAL, leader..'Y', ':> xclip -selection clipboard -i<Enter>') + vis:map(vis.modes.VISUAL, leader..'y', ':> xsel -i<Enter>') + vis:map(vis.modes.VISUAL, leader..'Y', ':> xsel --clipboard -i<Enter>') vis:map(vis.modes.NORMAL, '<F7>', ':!sent $vis_filepath &<Enter>') vis:map(vis.modes.NORMAL, '<Tab><Tab>', '<vis-window-next>') @@ -132,6 +134,9 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) vis:command('set colorcolumn 0') elseif vis.win.syntax == 'python' then vis:command('set expandtab') + elseif vis.win.syntax == 'yaml' then + vis:command('set tabwidth 2') + vis:command('set expandtab') end -- file-type specific mappings