From f0f84ebae5c0f21b51c22dd23dce468595a93b62 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 28 Jun 2018 13:51:46 +0200 Subject: [PATCH] stop experiments --- config/vis/visrc.lua | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index 07a5e1d..ddf18dc 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -47,29 +47,3 @@ vis:map(vis.modes.NORMAL, ";i", function() vis:command("!python -i $vis_filename") end end) - -lines = nil -index = 1 - -vis:map(vis.modes.INSERT, "", function() - local win = vis.win - local pos = win.selection.pos - local word = win.file:content(win.file:text_object_word(pos - 1)) - if word:gsub("%s+", "") == "" then - vis:insert(" ") - return pos+1 - end - - lines = {} - local nlines = 0 - local handle = io.popen(string.format("cut -f1 tags | uniq | grep '^%s'", word)) - for line in handle:lines() do - table.insert(lines, line) - nlines = nlines + 1 - end - - if nlines == 0 then - lines = nil - end -end) --- Rec