Monday, October 6, 2014

Re: Cannot make snippet plugin working...

On Mon, Oct 06, 2014, Gevisz wrote:
> Nevertheless, my test snippet that is just intended
> to expand "for<C-S>" to "for test" does not work.

Are you running Vim in a terminal? ^S is special in Unix terminals; by
default it sends a signal that you'd like terminal output to stop
temporarily (to be resumed when you press ^Q). If running in a terminal,
you need to run

stty -ixon

(e.g. in your .bashrc) to make the terminal treat ^S like any other
control-key combination.

OTOH, if you're running gVim, that shouldn't be an issue in the first
place.

>
> The for.spt file is put in both ~/.vim/snippets/c
> and ~/.vim/snippets/global directories. In .vimrc
> is added
> let snippet_use_global=1

I see that the documentation does say to use that, but I think you might
have to put g: before snippet_use_global=1.

>
> Well, it is not critical because I have decided to follow
> the advice of Marc Weber and try ultisnips but I am still
> just curious why this snippet plugin does not work.
>
> By the way, ultisnips is much more complex, so I have
> much more chances to get it not working. ;)

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: