How to use $VISUAL
?
#98
-
I'm new to snippet engines and like the minimalism of this project. The linked repo for snippet samples (honza/vim-snippets) uses Since using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to select some text in visual mode, then press the key you've mapped to the In normal mode, you can also use a mapping for |
Beta Was this translation helpful? Give feedback.
You need to select some text in visual mode, then press the key you've mapped to the
cut_text
action, followed the trigger for the snippet and expand it. The text you selected will replace the$VISUAL
placeholder in the snippet.In normal mode, you can also use a mapping for
cut_text
to do the same thing. Let's say the mapping isg<Tab>
and you want to use text within brackets, simply pressg<Tab>ib
, enter the trigger and expand the snippet with the$VISUAL
placeholder.