Questions tagged [snipmate]

Snipmate is a vim script that implements some of TextMate's snippets features in Vim.

Snipmate is a vim script that implements some of TextMate's snippets features in Vim. A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a "Tab"

96 questions
4
votes
3 answers

View available snippets for Snipmate (cheatsheet)

Is there a way to check all available snipMate snippets? Like the i does, but with a little more information? I am curious about: the string that it will complete to. If available the description or comment with the snippet. Some tool…
berkes
  • 26,996
  • 27
  • 115
  • 206
4
votes
3 answers

How can I debug a Vim plugin not being loaded?

I'm trying to use the Vim snipMate plugin, and I've installed it as it directs, but when I press tab nothing happens. How can I debug this? Are there log files Vim makes when it tries to load stuff? How can I see what plugins its loaded…
benui
  • 6,440
  • 5
  • 34
  • 49
4
votes
2 answers

Allow vim snipMate snippets to work on different file types

I am fairly new to vim and have been playing around with the spf13 configuration, which is great. The one thing I have not been able to figure out is how to allow snippets for one type of file to be used on another. In my personal situation I…
septemberbrain
  • 998
  • 9
  • 25
4
votes
1 answer

vim jump forward with doesn't work for me too (snipmate)

I have the same problem as many others users. Jump back works, but jump forward don't. I read same questions and answers but don't get any result. I try :verbose map command and get this: How to disable snipmate mappings?
Dimko Desu
  • 435
  • 5
  • 13
4
votes
2 answers

Get Vimwiki working with SnipMate (the vim plugins)

My issue is that completion for SnipMate does not work when I'm in a vimwiki file. I am testing by typing APACHE in insert mode, but I don't get the snippet as I do when I'm in, say, .vimrc. And even though i_ doesn't work in a…
3
votes
1 answer

How can I disable the vim plugim snipMate to some kind of files?

My questions is self-explanatory, How can I disable vim snipmate to perl files for example?? I found myself frustating because its stuck with my omni-completion and neocomplcache. I just use snipMate in html files. This same question could be asked…
nsbm
  • 5,842
  • 6
  • 30
  • 45
3
votes
2 answers

Configuring Django SnipMate snippets only for Django projects

I'm using SnipMate with Rob Hudson's snipmate_for_django snippets for Django development with MacVim. To activate the snippets automatically based on filetype, Rob recommends adding the following to ~/.vimrc: autocmd FileType python set…
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163
3
votes
1 answer

How to get vim-snipmate's console.log to use double quotes instead of single

cl outputs console.log(': ', ); How do I change the default behavior from using single quotes to double? It would be best if I can set a setting in my .vimrc file. If not then perhaps it is possible to patch…
martins
  • 9,669
  • 11
  • 57
  • 85
3
votes
4 answers

move vim cursor after a function

I'm using both the supertab and snipmate plugins. Let's say I'm using snipmate to create an if statement structure. Once I'm done adding statements inside the if-statement, how can I quickly move the cursor after the if-statement. For example: if […
user14437
  • 3,130
  • 5
  • 21
  • 13
3
votes
1 answer

Vim-snipmate with vundle install not working

For some reason vim-snipmate doesn't want to complete snippets with tab. I have the following in my .vimrc, and used the vundle install settings for vim-snipmate. Vundle installed the plugins inside '~/.vim/bundle/'. I've tried adding set…
3
votes
2 answers

snipmate is not working in vim

The following file is my vimrc file. I tried sourcing snipmate.vim file, there is no set paste in my vimrc file. just did a git clone of the snipmate in my .vim directory and added the location to the runtimepath. I am using MAC OSX $ cat .vimrc…
would_like_to_be_anon
  • 1,639
  • 2
  • 29
  • 47
3
votes
1 answer

pressing tab in snipmate plugin in vim triples the input

Snipmate triples my input. I do the following: template[press tap here] I get an expansion: template class { public: () {} ~() {} private: }; which simply follows the definition in…
kirill_igum
  • 3,953
  • 5
  • 47
  • 73
2
votes
1 answer

Vim snipMate LaTeX template

I am using Vim to write my LaTeX files, and figured I'd make a few snippets to help me along. It's been no problem writing simple snippets (like one for begin, one for figure etc.), but then when I tried making one to set the title (with a default…
sindrenm
  • 3,254
  • 3
  • 24
  • 30
2
votes
1 answer

Vim snippets plugin

I know there is some vim plugins that implements TextMate-like snippets feature. The popular are: snipMate, snippetsEmu, neocomplcache, UltiSnips and xptemplate. What is the best and why? Consider using this with others plugins like SuperTab,…
nsbm
  • 5,842
  • 6
  • 30
  • 45
2
votes
1 answer

Vim snipmate autocomplete conflict

I'm using Vim (7.2.445 on Debian Squeeze) with the vim-snipmate plugin (specially this fork of it - https://github.com/garbas/vim-snipmate) One of the shortcuts you're meant to be able to do is Ctrl-R, Tab, in insert mode, to give you a list of all…
William Turrell
  • 3,227
  • 7
  • 39
  • 57