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 c12699e0696c198c468d6980748df75981128424
parent f498add990356cac78ab4e762e15c3757a934ac3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 17 Jul 2019 09:56:00 +0200

Refine snippets plugin

Diffstat:
M.config/vis/plugins/snippets.lua | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.config/vis/plugins/snippets.lua b/.config/vis/plugins/snippets.lua @@ -1,9 +1,9 @@ --- vis-snippets: Insert predefined text snippets from INSERT mode +-- vis-snippets: Insert predefined text snippets -- --- Usage: +-- Usage from INSERT mode: -- Press the snipleader (default @@) and a key specified in the snippets --- table. This will insert the corresponding value from snippets. Optionally, --- a cursor position can be specified with the string '<1>'. +-- table. This will insert the corresponding value string. Optionally, a +-- cursor position can be specified with '<1>'. -- -- Author: Anders Damsgaard <anders@adamsgaard.dk>, adc on #vis-editor @@ -24,7 +24,7 @@ local snippets = { 'PGP fingerprint: 5C95 9DF2 43CE 4DD1 7A5B 2610 B790 F4AD 1BF8 58FE', } -snippets_leader = '@@' +local snippets_leader = '@@' snippets_cursor = '<1>' for k, v in pairs(snippets) do