Jump to content
Wim Alsemgeest

Using snip and Vim

Recommended Posts

Hello, I tried to use snippets and vim in the terminal. That works, but I used TAB after the // in the snippit in Alfred. When I inserted it in vim with snip, it look strange. I think something is going wrong with TABs

 

Have someone tried this? or must I do it different

 

Greetings from the Netherlands Wim Alsemgeest.

Screen Shot 2017-04-19 at 20.16.19.png

Share this post


Link to post

Alfred's snippets should work fine as long as you are in 'insert' (or equivalent) mode in VIM. If you are in the command mode and your snippet text is prefixed with a /, then this will run a / command in VIM as it doesn't have the context that you are pasting text.

 

Before using the snip keyword (or an auto expanding snippet), be sure to to press i for insert.

 

Cheers,

Andrew

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...