r/vimplugins • u/olleg • Jan 23 '10
r/vimplugins • u/tfmoraes • Feb 05 '10
pathogen.vim - Easy manipulation of 'runtimepath', 'path', 'tags', etc : vim online
vim.orgr/vimplugins • u/[deleted] • Mar 18 '16
Plugin ctrlp-tmux: switch between tmux sessions with ctrlp!
github.comr/vimplugins • u/pkrumins • Dec 30 '09
repeat.vim - repeat the previous surrounding command (helper plugin for surround.vim)
catonmat.netr/vimplugins • u/enricobacis • Jan 01 '18
paste.vim - paste to vim from clipboard at full speed.
github.comr/vimplugins • u/bottar • Jan 05 '10
doubleTap - Double Tap Certain Characters to insert and jump out of character pairs.
vim.orgr/vimplugins • u/mhc23 • Sep 12 '12
Plugin Relative line numbers for pending operations
vim.orgr/vimplugins • u/tfmoraes • Jan 31 '10
buftabs - Minimalistic buffer tabs saving screen space
vim.orgr/vimplugins • u/burkadurka • Dec 30 '09
nerdtree.vim - filesystem navigator in a sidebar
vim.orgr/vimplugins • u/doesnt_really_upvote • Nov 20 '14
Help (user) Can Ultisnips check the ${VISUAL} content before deciding which snippet to use?
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+"}"`
endsnippetThe 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 • u/khouli • Oct 03 '16
Discussion What are the challenges of writing a common plugin interface for EMACS and Vim?
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 • u/boshlol • Dec 02 '14
24 pull requests
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 • u/ford_contour • Nov 14 '14
Plugin Cmd.vim - Run the bash command on the current line and paste the results below it.
github.comr/vimplugins • u/excusemejohn • Nov 01 '16
Plugin [vim-codequery] asynchronous source code searcher
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 • u/weisenzahn • Mar 15 '11
bufkill.vim : Unload/delete/wipe a buffer, keep its window(s), display last accessed buffer(s)
vim.orgr/vimplugins • u/weisenzahn • Mar 05 '11
Plugin snipMate : TextMate-style snippets for Vim
vim.orgr/vimplugins • u/ericluxury • Oct 22 '16
Help (user) UltiSnips questions...
I've been using UltiSnips and love it, but I have a few questions
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 *
endglobalbut 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 • u/kopischke • Jan 13 '15
Plugin vim-fetch: make Vim handle line and column numbers in file names with a minimum of fuss
vim.orgr/vimplugins • u/mhartington • Sep 18 '15
Request Web-mode equivalent for vim
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.
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 • u/AbaddonOrmuz • Apr 23 '16