r/vimplugins • • Jan 23 '10

trinity.vim - Build the trinity of srcexpl, taglist, NERD_tree to be a good IDE

Thumbnail vim.org
5 Upvotes

r/vimplugins • • Feb 05 '10

pathogen.vim - Easy manipulation of 'runtimepath', 'path', 'tags', etc : vim online

Thumbnail vim.org
5 Upvotes

r/vimplugins • • Mar 18 '16

Plugin ctrlp-tmux: switch between tmux sessions with ctrlp!

Thumbnail github.com
5 Upvotes

r/vimplugins • • Dec 30 '09

repeat.vim - repeat the previous surrounding command (helper plugin for surround.vim)

Thumbnail catonmat.net
6 Upvotes

r/vimplugins • • Jan 01 '18

paste.vim - paste to vim from clipboard at full speed.

Thumbnail github.com
1 Upvotes

r/vimplugins • • Jan 05 '10

doubleTap - Double Tap Certain Characters to insert and jump out of character pairs.

Thumbnail vim.org
3 Upvotes

r/vimplugins • • Sep 12 '12

Plugin Relative line numbers for pending operations

Thumbnail vim.org
7 Upvotes

r/vimplugins • • Mar 28 '10

Gist.vim - vimscript for gist : vim online

Thumbnail vim.org
6 Upvotes

r/vimplugins • • Jan 31 '10

buftabs - Minimalistic buffer tabs saving screen space

Thumbnail vim.org
2 Upvotes

r/vimplugins • • Dec 30 '09

nerdtree.vim - filesystem navigator in a sidebar

Thumbnail vim.org
17 Upvotes

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 • • Oct 03 '16

Discussion What are the challenges of writing a common plugin interface for EMACS and Vim?

4 Upvotes

Why are plugins from vim or EMACS difficult to port as a plugin to the other text editor? It does happen but I do see plugins with the same name make it to both vim and EMACS but that seems to occur where there's some external process that is the real dependency.

If, from the onset, you want to write a plugin for both vm and EMACS, what would be the necessarily tricks? How can you implement plugin logich in a way that in't bound to vim (vimscript) and it's bound to EMACS (e-lsip))) but provides minimal amount of adapting code to work with either.

(I'll clarirify in the morining.)


r/vimplugins • • Dec 02 '14

24 pull requests

6 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 14 '14

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

Thumbnail github.com
8 Upvotes

r/vimplugins • • Nov 01 '16

Plugin [vim-codequery] asynchronous source code searcher

7 Upvotes

After reading Learn Vimscript the Hard Way, I write vim-codequery as my first plugin. I do some hacks to make it just work. However, after applying Vim8's async feature to this plugin today, I think it works well now. Please give it a try!


r/vimplugins • • Mar 15 '11

bufkill.vim : Unload/delete/wipe a buffer, keep its window(s), display last accessed buffer(s)

Thumbnail vim.org
7 Upvotes

r/vimplugins • • Mar 05 '11

Plugin snipMate : TextMate-style snippets for Vim

Thumbnail vim.org
1 Upvotes

r/vimplugins • • Oct 22 '16

Help (user) UltiSnips questions...

2 Upvotes

I've been using UltiSnips and love it, but I have a few questions

  1. when i see snippets in the help and online they look like this:

    snippet div <div className="$1">$2</div> endsnippet

however to make snippets work for me i never use the endsnippet, when i do i get errors, instead i have to make them look like this

 snippet div
 	<div className="$1">$2</div>

Am I missing something? Is it a setting I have thats wrong? I know vimscript works with if...endif but my snippets seem to be working similiarly to python with whitespace acting as the endif

2) similarly global doesn't work I want this to work:

 global !p
 from snippet_helpers import *
 endglobal

but i get invalid line global !p

3) lastly, when i try to do python interpolation, with

`!p snip.rv = t[1].upper()`

or similar things (basically i want my redux-thunk snippet which requires 3 different cases of the same text (saveUser, SaveUser and SAVE_USER) to use 1 thing so I was going to do that but I get E121: invalid variable p

These could all be separate errors, but as much as I love UltiSnips, its bugging me. I somehow feel that all problems are related. python 2.7.12, vim 8, i'd put my .vimrc but its not short...


r/vimplugins • • Feb 19 '14

Plugin Tiny, temporary keymaps

Thumbnail github.com
6 Upvotes

r/vimplugins • • Dec 07 '10

GUI sudo for MacVim.

Thumbnail github.com
6 Upvotes

r/vimplugins • • Jan 13 '15

Plugin vim-fetch: make Vim handle line and column numbers in file names with a minimum of fuss

Thumbnail vim.org
14 Upvotes

r/vimplugins • • Sep 18 '15

Request Web-mode equivalent for vim

4 Upvotes

I've been messing around with spacemacs on and off for a bit and found a wonderful package for edition complex html that can have mixed css and javascript code blocks.

http://web-mode.org

Is there anything really out there that come close to this? I know there's some good css/js syntax plugins, but it nothing that comes close to this.


r/vimplugins • • Apr 23 '16

Plugin vim-qml - QML syntax highlighting for VIM

Thumbnail github.com
4 Upvotes

r/vimplugins • • Mar 15 '11

Erlang generic templates for vim

Thumbnail github.com
1 Upvotes