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
0
votes
1 answer

SnipMate error on autocomplete

Minimal working example, of a JavaScript file: class ClassName{ Upon pressing the tab key in insert mode, with the cursor right after the curly bracket, the following error is shown: Error detected while processing function…
easytarget
  • 945
  • 2
  • 13
  • 35
0
votes
1 answer

VIM, SnipMate breaking the undo/redo history

So I recently made the jump over to VIM and I'm still testing out all sorts of plugins. Now, I installed snipMate and the snippets work really great, but I'm encountering a strange bug. When doing undo / redo the buffer ends up in pretty strange…
Ivo Wetzel
  • 46,459
  • 16
  • 98
  • 112
0
votes
1 answer

vim-snippet: after pressing first tab my snippet does not go to next position in snippet

It is a while I am using snippet plugin in vim along with snipMate. I am totally happy with it. My problem is after pressing the first tab (and autocompletion) I can not jump to next position in a snippet. I guess maybe some setting in vimrc…
Aznaveh
  • 558
  • 8
  • 27
0
votes
0 answers

VIM snipmate tab not working

I am not having any luck with Snipmate. I've used pathogen to install snipmate along with tlib, addon-utils, and snippets. Here is the output of verbose imap. snipMateBack Last set from…
ThomasDKim
  • 305
  • 3
  • 14
0
votes
1 answer

CoffeeScript snippets not triggering in vim?

I am frequent user of JS and my specific snippets are placed at ~/.vim/after/snippets/javascript/_.snippets which work fine. Recently i moved to coffeescript but i am not able to define custom snippets of my own. I have…
georoot
  • 3,557
  • 1
  • 30
  • 59
0
votes
2 answers

What is causing this SnipMate message?

I have just started using the Vim plugin SnipMate. When I create an HTML file (with filetype .html), go into insert mode, and type "html" and a tab, I see this message at the bottom of my screen: 1* 1. Users/me/.vim/bundle/vim-snippets…
Jim
  • 13,430
  • 26
  • 104
  • 155
0
votes
1 answer

Vim snipMate installed with pathogen not triggering

Sorry I searched for answer to the above question but none matched my exact situation. I am a beginner at vim and trying to set it up for C++ programming. I am using Xubuntu 14.04 and installed vim using sudo-apt and I also installed YouCompleteMe…
hellfragger
  • 143
  • 1
  • 4
  • 12
0
votes
3 answers

How to make a file with .pt extension, with xml syntax highlighting and vim's plugin snipmate load pt.snippets?

I have the following in my .vimrc: au BufNewFile,BufRead *.pt set filetype=xml This is needed because although I'm editing a file with *.pt extension, it's indeed a valid xml file: setting the filetype like this I can have syntax highlighting. I'm…
0
votes
1 answer

Variables in snipMate definition, is it possible? (vim)

I use vim for programming purposes and I use the snipMate utility. I'm aware of the basic snippets definition, but I'm trying to do something like the following (this doesn't work): snippet ${1}_. <$1 class="${2}">${3} I think it would be…
JLeon
  • 61
  • 5
0
votes
2 answers

How do I prevent snipmate from remapping ?

In my after.vim config I have line: inoremap I would like this binding to work. However, after starting VIM I type the first line and get the following output: :verbose map s *…
newUserNameHere
  • 17,348
  • 18
  • 49
  • 79
0
votes
1 answer

How to use a snipmate variable in an expression

How can I use a snipmate variable in an expression? snippet foo ${1:4} + 2 = `$1+2` With the default value of 4 the above snippet produces: 4 + 2 = 2 Thanks.
tbrandon
  • 1
  • 1
0
votes
2 answers

Is there a way to tab to locations in a file to change text?

Using snipmate I can create tab stops using ${1}, ${2}, and so on. But let us say I have a file that has several lines of text I frequently use. When I yank and put these into my active file there are certain parts of the line that need to be…
thequerist
  • 1,774
  • 3
  • 19
  • 27
0
votes
1 answer

snipMate.vim error only when opening index.html files

I keep getting this error "index.html" 20L, 382C Warning in snipMate.vim: Snippet section is already defined. See :h multi_snip for help on snippets with multiple matches. Whenever I open an index.html file in vim. Only index.html for whatever…
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124
0
votes
1 answer

How do I create my own snippets under $home/vimfiles/after in windows

I am trying to create my own set of snippets for vim on Windows. As soon as I create the directory $HOME/vimfiles/after/snippets (with or without files) the "standard" snippets (i.e. those that came with snipmate itself) won't be triggered…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293
0
votes
3 answers

With snipMate, how do I add specific snippets for mySpecial.html file only?

In my vim environment, I want to add a few specific snippets that should only be active when I am editing mySpecial.html file. Since this file is an html file I want it to have the html filetype. But on the other hand, if I edit any other html file,…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293