Tagged Questions
2
votes
0answers
130 views
Vim: how to install the UltiSnips plugin?
I tried installing the UltiSnips plugin, but when Vim is loaded it creates a torrent of errors:
Error detected while processing C:\Documents and ...
0
votes
0answers
34 views
how to create a vim code snippets for rails
I'm trying to create some ruby on rails vim snippets for its views, (I have snipmate-snippets) but seems like it does not cover view snippets
I have done the following to create a form
#ff.snippet
...
0
votes
2answers
126 views
snippet in vim - any option to go back to the previous paramter?
I am using neocomplcache along with neosnippet and honza's vim-snippets. They are great, except that when I press Ctrl-k, I can go to the next parameter, but I have no way to go back to the previous ...
0
votes
1answer
112 views
Tab key no longer triggers autocomplete for vim sninpmate snippets
after long hours of vim configuration, I found out that I broke the snipmate plugin. Hitting the tab key no longer works. Any experiences? 'Yeap I know there are million reasons why it might be ...
0
votes
0answers
45 views
snipmate snippets not working in rails application
I have vim 7.3 installed on my machine, snipmate and all its snippets in their right place using pathogen. For some reason snipmate does not seem to work when I am in a rails application. It works ...
0
votes
1answer
76 views
Expanding a snippet within a snippet (vim or sublime)
I'm trying to improve my work flow a little bit and I'm trying to accomplish something but don't really know where to start.
I'm a huge fan of snippets, I've been customizing lots of my own, and it ...
0
votes
2answers
51 views
how could add literal string in vim snippet?
I wanna write a snippet like this:
snippet code
``` ${1:ruby}
```
but `` is used to wrap script command, how could I make it?
Thanks all !
1
vote
2answers
839 views
adding vim snippets
I have found this resource for ruby/rails snippets , Seems like it has lots of cool snippets that I could use with vim.
But since I'm new to vim, I dont know how to enable those snippets to my vim ...
1
vote
2answers
126 views
vim and snipmate / snippets: how to create custom behavior
Here's my snippet:
# Get repository of a table:
snippet repo
$$2 = $this->getRepository('${1:Bundle}:${2:TableName}')
${3}
When I use it, here's what it may generate:
$Person = ...
3
votes
1answer
67 views
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 T = >
class {
public:
() {}
~() {}
private:
};
which simply follows the ...
14
votes
3answers
4k views
With VIM, use both snipMate and pydiction together (share the <tab> key?)
I am trying to use snipMate and pydiction in vim together - however, both use the <tab> key to perform their genius-auto-completion-snippet-rendering-goodness-that-I-so-desire.
When pydiction ...
8
votes
7answers
4k views
Vim html.erb snippets?? snipMate Need a vim tip!
I've started using Vim for my rails development (who hasn't!)..
And i'm loving it except that when im in a html.erb file (HTML and Ruby)..
I get no snipMate snippets,
I would like both html and ...
0
votes
2answers
100 views
Is there a vim snippet plugin that DOESN'T act like snipmate, textmate, etc.?
I'm wondering if there is a snippet plugin that already exists that basically opens a file browser and allows one to select/search for a snippet name that will then insert a block of code. I'm a fan ...
0
votes
2answers
390 views
Where to put my snippets on windows having vim with pathogen?
Like the subject, i found linux solution:
http://stackoverflow.com/a/8103835
but on windows this apparently doesn't work.
When added file "c:\Program ...
4
votes
1answer
183 views
How to do “Surround-with” to a selected word with free-text(not predefined) in Visual Studio 2010, like in Vim
Like in Vim after install Surround plugin, user can select a word and then press "s" key, then input a tag or any free-text he want to use to surround the selected word.
I know in Visual Studio you ...