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
1
vote
2 answers

help me create a vim snippet (snipmate)

Let's say I have the following snippet: snippet divt
${2:'some text'}
So when I type divt and hit tab twice "'some text'" should be selected, and when I hit tab once more I would like "some text" to be…
user126284
1
vote
2 answers

Pressing tab in HTML files in vim goes to the next empty tag pair rather than expanding a completion

I'm not sure where the functionality of tabbing to the next empty tag pair in HTML files comes from. I would like to disable it completely. The problem only comes with using SuperTab and SnipMate together, if I remove SuperTab tab goes back to…
Marcus
  • 2,021
  • 2
  • 21
  • 20
1
vote
2 answers

Writing snippet for require in vim for nodejs?

This is the current snippet that i am using snippet req const ${1:} = require('$1'); As you might have guessed it works well with packages that i installed from npm but not so well for local file. Suppose i have a file at ../user.js that i want…
georoot
  • 3,557
  • 1
  • 30
  • 59
1
vote
2 answers

fresh installation of gvim on ubuntu. where should I put my plugins?

I just installed gvim on fresh installation of ubuntu lucid. I've messed this up before that's why I want to start on the correct step here. Where should I keep all my plugins and my .vimrc?? my current runtimepath on gvim…
kurz
  • 57
  • 4
1
vote
1 answer

snipMate does not work

I followed the Pathogen way to install snipMate and I did include :filetype plugin on in .vimrc as the home page of snipMate plugin suggested. Now when I type fr in a .tex file and press TAB nothing happens as expected. I also tried this one but…
Gergely
  • 6,879
  • 6
  • 25
  • 35
1
vote
1 answer

How do you uninstall deleted files installed by git clone command?

I heard about the awesomeness of vim, so naturally I said "vim me up". After, countless Youtube videos and Googling for hours, I was ready to install my pluggins ( so I thought). I was able to install NERDTree thru Pathogen and I was feeling good…
kofi
  • 361
  • 1
  • 5
  • 13
1
vote
2 answers

Snipmate warning snipmate.vim already defined

How can I get rid of this annoying error message occuring everytime I open vim?: Warning in snipMate.vim: Snippet c) is already defined. See :h multi_snip for help on snippets with multiple matches. I tried to install snipmate by % cd…
kofi
  • 361
  • 1
  • 5
  • 13
1
vote
1 answer

vim and snipmate, how to undo expansion

I am using vim with snipmate plugin. How can I undo the expansion? # 1) before expansion def[tab here] # 2) expanded def method_name end # How to get to 1) step?
Jakub Truneček
  • 8,800
  • 3
  • 20
  • 35
1
vote
1 answer

Vim-snipMate doesn't expand insted removes the trigger

I was using snimpmate with vim-snippets plugin, and all fine. Until i tried to remove the vim-snippets and use my custom and only snippets 'ruby.snippets' on '.vim/snippets'. i think the snippets are being loaded just when fire TAB or whatever…
David V
  • 11
  • 2
1
vote
2 answers

vim snipMate: expand snippet within a snippet

Using vim-snipmate I have the following problem: If I try to expand a snippet within a snippet, snipmate takes me to the next placeholder of the current snippet instead of expanding the new snippet. e.g.: If you press tab in the following…
crs
  • 501
  • 1
  • 4
  • 12
1
vote
0 answers

gVim 7.4 and snipMate on windows

Spent some time installing snipMate in gVim 7.4 on Windows. I used Vundle to install the dependencies. Bundle "MarcWeber/vim-addon-mw-utils" Bundle "tomtom/tlib_vim" Bundle "garbas/vim-snipmate" Bundle "honza/vim-snippets" I loaded a new file…
A.W.
  • 2,858
  • 10
  • 57
  • 90
1
vote
1 answer

VIm snipmate auto completion not working

This is the first time 'm trying snipmate with VIm 7.3 in ubuntu 12.04. My .vimrc configuration is : " kill vi compatibility set nocompatible " be iMproved " ------------------------------------- "…
prayagupa
  • 30,204
  • 14
  • 155
  • 192
1
vote
1 answer

Vim's snipMate multiple triggers for the same snippet

is it possible to specify more than one trigger for the exact same snippet? Working with Fortran I would like to trigger an IF THEN END IF snippet with both if and IF trigger. As a small solution I am now repeating the snippet multiple time, like…
StockBreak
  • 2,857
  • 1
  • 35
  • 61
1
vote
1 answer

how to insert tab spaces when snipmate is installed

I want to insert tab spaces in insert mode but snipmate wouldnt allow me to do so. How do i either re-map snipmate trigger button to something other than tab or is there any other way to insert tab spaces when snipmate is installed. Thanks
vicky
  • 59
  • 1
  • 4
1
vote
1 answer

vim commands in snipmate snippet

I am using snipmate plugin with vim. How can I write any commands in snipmate snippet that I would be able to write to .vimrc? Like , , and so on... I want to be able to write a snippet that imports python debugger, sets trace and…
davekr
  • 2,266
  • 1
  • 26
  • 32