Snipmates not working with Vundle

2013-10-16 Thread Martin Stabenfeldt
Hi,

I'm got several vim plugins working, all installed by Vundle.
But "snipmate-snippets" does not. :(

I.e
>> $ vim test.rb
>> 
>> def 
>> ### Does not work


This is my .vimrc:

>> set nocompatible   " be iMproved
>> filetype off   " required!
>> autocmd!
>> 
>> set rtp+=~/.vim/bundle/vundle/
>> call vundle#rc()
>> 
>> Bundle 'gmarik/vundle'
>> 
>> Bundle 'tpope/vim-fugitive'
>> Bundle 'Lokaltog/vim-easymotion'
>> Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
>> Bundle 'tpope/vim-rails.git'
>> Bundle 'slim-template/vim-slim'
>> Bundle 'godlygeek/tabular'
>> Bundle 'scrooloose/syntastic'
>> Bundle 'https://github.com/mileszs/ack.vim.git'
>> Bundle 'gorkunov/smartgf.vim'
>> 
>> Bundle "MarcWeber/vim-addon-mw-utils"
>> Bundle "tomtom/tlib_vim"
>> Bundle "garbas/vim-snipmate"
>> Bundle "git://github.com/honza/snipmate-snippets.git"
>> Bundle "bonsaiben/bootstrap-snippets" 
>> 
>> filetype plugin indent on " required!

Any tips?

Cheers,
Martin

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Snipmates not working with Vundle

2013-10-16 Thread Marc Weber
Excerpts from Martin Stabenfeldt's message of Wed Oct 16 14:53:42 +0200 2013:
> I.e
> >> $ vim test.rb
> >> 
> >> def 
- don't use space.
- try the command "SnipmateOpenSnippetFiles" or such which lists the
  "source" files snipmate reads. Default should be each path in &rtp +
  "snippets". Thus everything should just work.

If you need help contact me on irc.freenode.net

Marc Weber

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Snipmates not working with Vundle

2013-10-16 Thread Adnan Zafar
On Wed, Oct 16, 2013 at 8:53 AM, Martin Stabenfeldt
 wrote:
>>> Bundle "MarcWeber/vim-addon-mw-utils"
>>> Bundle "tomtom/tlib_vim"
>>> Bundle "garbas/vim-snipmate"
>>> Bundle "git://github.com/honza/snipmate-snippets.git"
>>> Bundle "bonsaiben/bootstrap-snippets"

The repository changed names to vim-snippets
 a while ago. You can just use

Bundle "honza/vim-snippets"

--Adnan Zafar

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Insert lines in vim based on parsing a comma-separated line of code

2013-10-16 Thread DwigtArmyOfChampions
Suppose I have the following Perl code:

defined or $_ = "" for my ($alabama, $alaska, $arizona, $arkansas, $california, 
$colorado, $connecticut, $delaware, $florida, $georgia, $hawaii, $idaho, 
$illinois, $indiana, $iowa, $kansas, $kentucky, $louisiana, $maine, $maryland, 
$massachusetts, $michigan, $minnesota, $mississippi, $missouri, $montana, 
$nebraska, $nevada, $new_hampshire, $new_jersey, $new_mexico, $new_york, 
$north_carolina, $north_carolina, $north_dakota, $ohio, $oklahoma, $oregon, 
$pennsylvania, $rhode_island, $south_carolina, $south_dakota, $tennessee, 
$utah, $vermont, $virginia, $washington, $west_virginia, $wisconsin, $wyoming) 
= split(/\n/, $results);


I want to insert the following lines into my code:

$data{"alabama"} = $alabama;
$data{"alaska"} = $alaska;
$data{"arizona"} = $arizona;

...

$data{"wisconsin"} = $wisconsin;
$data{"wyoming"} = $wyoming;

Is there a way in Vim to parse that line of for loop code to create all fifty 
of those lines?

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Insert lines in vim based on parsing a comma-separated line of code

2013-10-16 Thread Tim Chase
On 2013-10-16 17:44, DwigtArmyOfChampions wrote:
> Suppose I have the following Perl code:
> 
> defined or $_ = "" for my ($alabama, $alaska, $arizona, $arkansas,
> $california, $colorado, $connecticut, $delaware, $florida,
> $georgia, $hawaii, $idaho, $illinois, $indiana, $iowa, $kansas,
> $kentucky, $louisiana, $maine, $maryland, $massachusetts,
> $michigan, $minnesota, $mississippi, $missouri, $montana,
> $nebraska, $nevada, $new_hampshire, $new_jersey, $new_mexico,
> $new_york, $north_carolina, $north_carolina, $north_dakota, $ohio,
> $oklahoma, $oregon, $pennsylvania, $rhode_island, $south_carolina,
> $south_dakota, $tennessee, $utah, $vermont, $virginia, $washington,
> $west_virginia, $wisconsin, $wyoming) = split(/\n/, $results);
> 
> 
> I want to insert the following lines into my code:
> 
> $data{"alabama"} = $alabama;
> $data{"alaska"} = $alaska;
> $data{"arizona"} = $arizona;
> 
> ...
> 
> $data{"wisconsin"} = $wisconsin;
> $data{"wyoming"} = $wyoming;
> 
> Is there a way in Vim to parse that line of for loop code to create
> all fifty of those lines?

(ignoring the wrapping introduced by my mailer)

I'd do a couple passes:

  :t.  " copy the one line to a new line
  0df( " delete through the opening paren
  f)D  " delete after the closing paren
 " at this point, we should have just the variables
  :s/,\s*/\r/g " put each on its own line, remove commas
 " highlight the resulting lines with "V"
  :'<,'>s/\$\(.*\)/$data{"\1"} = &;
 " transform the lines into your desired format


-tim



-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.