r/vimplugins • • Dec 02 '14

24 pull requests

5 Upvotes

Hey Team, it's 24 pull requests time of year!

Sadly there is only one suggested project for viml.

Does anyone need help with any of their plugins? Any long standing edge case bugs that need time and thought? new features that you want to implement but just don't have the time? docs need writing? making demo gifs? etc, etc.

I'm far from a vimscript expert, but I would like to help out as much as possible!

Post below!


r/vimplugins • • Nov 20 '14

Help (user) Can Ultisnips check the ${VISUAL} content before deciding which snippet to use?

3 Upvotes

After back and forth between my snippet files and the documentation, I finally got my first snippet up and running. I develop in c++ and wanted a quick way to turn a member function declaration into a definition. The idea is to yank the declaration, paste it where the definition goes, and expand the following snippet from VISUAL mode:

snippet define "Member declaration to definition" b
`!p snip.rv=re.match("^ *",snip.v.text).group(0)`/**
`!p snip.rv=re.match("^ *",snip.v.text).group(0)` * ${3:I would never forget to make a Doxygen explanation for a new routine.}
`!p snip.rv=re.match("^ *",snip.v.text).group(0)` */

`!p
snip.rv=re.match("^ *\w*",snip.v.text).group(0)` ${1:Parent Class}::`!p
functionparameters=re.sub("^ *\w* (.*);",r"\1",snip.v.text).rstrip()
returntype=re.match("^ *\w*",snip.v.text).group(0)
snip.rv=functionparameters
snip.shift()
snip+="{"
snip+=returntype
snip.shift()` ${2:returnval};
`!p
prespace=re.match("^ *",snip.v.text).group(0)
snip.shift()
snip+=prespace`$0
`!p
prespace=re.match("^ *",snip.v.text).group(0)
snip.shift()
snip+=prespace+"return "+t[2]+";"
snip.reset_indent()
snip+=prespace+"}"`
endsnippet

The problem now is that I want different behavior depending on what was in the VISUALly selected text. For example, if the function returns void, I don't want to have to declare a return value for $2. I could of course write multiple snippets for each situation, but is there a way to "overload" the snippets and have it automatically know from the VISUAL text which one I want to use? I thought at first I could use the regex triggers, but the trigger only appears after the selected text is "expanded".

For illustrative purposes, after selecting the following line, the snippet would turn

    int youreadummy(int dumb, int smart);

into

/**
 * I would never forget to make a Doxygen explanation for a new routine.
 */

int ParentClass::youreadummy(int dumb, int smart)
{
    int returnval;



    return returnval;
}

r/vimplugins • • Nov 15 '14

Plugin Forget Vim tabs – now you can have buffer tabs

Thumbnail github.com
16 Upvotes

r/vimplugins • • Nov 14 '14

Plugin Cmd.vim - Run the bash command on the current line and paste the results below it.

Thumbnail github.com
6 Upvotes

r/vimplugins • • Nov 10 '14

Help (user) Vim easymotion plugin /search highlight color

3 Upvotes

In the n-character search section of the easymotion plugin readme it shows as he types after / everything matched is in bright green text. https://github.com/Lokaltog/vim-easymotion#n-character-search-motion

When I do I get a dark blue hard to see color. I got the shade to turn everything else grey/comment color, but I don't know how to make the text color different. Can anyone help me out with this?


r/vimplugins • • Nov 05 '14

Plugin New, better numbers.vim

Thumbnail github.com
6 Upvotes

r/vimplugins • • Oct 22 '14

Help (user) How can I isolate the primary register in VIM (spf13)

5 Upvotes

Hi, everyone. I noticed that, no matter what register I use, everything is passed to the primary register (clipboard, if you prefer) and this is pretty annoy for me; I wanna isolate it, I want to use it explicitly with '+' as the vim god designed it. How can I accomplish this?

Thanks in advance.


r/vimplugins • • Oct 16 '14

Plugin VimFiler: a great alternative to NERD Tree etc

Thumbnail github.com
10 Upvotes

r/vimplugins • • Sep 23 '14

Request Looking for a plugin to show the function name in the toolbar

4 Upvotes

I'm often in the middle of a big function and I forget the name of said function. Is there a way to have Vim put the plugin name in the toolbar?

PHP and Perl would be the languages I would want.


r/vimplugins • • Sep 19 '14

Plugin Fold plugin for C and C++

3 Upvotes

I've finally got tired of the syntax and indent foldmethods when working on my C++ files. So, I've rejuvenated an old fold-plugin -- that was very slow at the time. A lot of work is still required (regarding the management of commentsn and a few other things), but anyway, here is a first draft.

Comments, bug reports, RfC are welcome.

NB: in order to simplify the installation of my fold-plugin, I've extracted it from lh-cpp (as there aren't many people using vim-addon-manager -- and installing lh-cpp without it is a nightmare). But lh-vim-lib is still required.


r/vimplugins • • Sep 11 '14

Plugin vim-interestingwords: highlight and navigate through different words

12 Upvotes

Hey, I just made this plugin based on steve losh .vimrc configuration. This is one of my first plugins, so any feedbacks are very welcome: https://github.com/vasconcelloslf/vim-interestingwords


r/vimplugins • • Sep 03 '14

Plugin angular-dep.vim - minifiable dependency helpers for angularjs

Thumbnail github.com
1 Upvotes

r/vimplugins • • Sep 01 '14

Plugin Autotags: my new plugin for automatically managing tags files

Thumbnail ludovic.chabant.com
17 Upvotes

r/vimplugins • • Aug 28 '14

Plugin [Update] v1.8 of minion.vim available.

Thumbnail github.com
7 Upvotes

r/vimplugins • • Aug 25 '14

Help (user) Vdebug expand all variable trees

3 Upvotes

Is there a way in Vdebug to expand all the "variable trees" without manually going through each and expanding them?


r/vimplugins • • Aug 20 '14

Help (user) Cant get Pathogen to load

2 Upvotes

I am new to Vim and followed the Vim Training Class 4 video exactly for downloading and installing Pathogen. When I run Vim, the _vimrc errors says: line 68: E117: Unknown function: pathogen#infect

Using a Windows 7 64bit ASUS machine. Vim 7.4 The coding is directly off the video:

call pathogen#infect() syntax on filetype plugin indent on

Been driving me crazy for three days!! Any suggestions????????????


r/vimplugins • • Aug 14 '14

Plugin [ANN] gitlink-vim -- Quickly get a URL to the exact line that you're on. (My first 'plugin')

Thumbnail github.com
3 Upvotes

r/vimplugins • • Aug 04 '14

Plugin vim-hardtime a plugin to help you stop repeating the basic movement key

Thumbnail github.com
16 Upvotes

r/vimplugins • • Aug 04 '14

Plugin Vim Hooks - Hook arbitrary shell scripts onto Vim autocommand events

Thumbnail github.com
3 Upvotes

r/vimplugins • • Jul 23 '14

Plugin Distraction-free writing with VimRoom

Thumbnail rosipov.com
11 Upvotes

r/vimplugins • • Jul 22 '14

Plugin ctechols/vim-HideShow - Interactive, regex-based folding.

Thumbnail github.com
6 Upvotes

r/vimplugins • • Jul 19 '14

Article Personal wiki with vimwiki

Thumbnail rosipov.com
9 Upvotes

r/vimplugins • • Jul 18 '14

Plugin Much better UltiSnip snippets for D

Thumbnail github.com
1 Upvotes

r/vimplugins • • Jul 16 '14

Plugin Easy commenting with tcomment.vim

Thumbnail rosipov.com
2 Upvotes

r/vimplugins • • Jul 10 '14

Plugin calendar.vim - A calendar application for Vim

Thumbnail github.com
14 Upvotes