Thursday, February 6, 2014

Re: regular expression blindness

> > Thanks!
> >
> > I have found this trick earlier using :! in vim. You can check to other
> > nifty plugins using the same <C-\>e cmap trick:
> > 1) system.vim: http://www.vim.org/scripts/script.php?script_id=4224
> > for :!ls and :! ls (the second one will run :echo system("ls") and
> > there is a difference with using system() or :! in vim, though in
> > gvim they work more or less the same)
> > 2) cmd_alias.vim: http://www.vim.org/scripts/script.php?script_id=4250
> > for making aliases: with this plugin you can define lower case user
> > commands, what is forbidden by a direct usage of :command (see :help
> > command)
> >
> > I am happy you like it! I like it too.
> >
> > Like Tim, I also have a strong vim muscle memory, but let's face it.
> > For some time I've been already thinking that \(..\|..\) is to much
> > pain.
> >
> > Another solution is to define a map:
> > nm / /\v
> > and the advantage is that you can delete \v with a single <c-u>, with my
> > plugin you have to explicitly type \m.
> >
> > Cheers,
> > Marcin
> >
> > --
> > --
> > 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+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
>
> Hi,
>
> ...it started with a simple question of a regex blind...and now THIS!
> GREAT!
>
> Thank you very much!
>
> best regard,
> mcc


I've been working on this plugin, and its better version is on github
which supports <c-f> as well (thanks to Ben Fritz who helped me here on
vim_use) and a few other commands: substitute, global, vimgrep, lvimgrep, and also
the +/ argument for edit and friends (also can escape backslashes what
I always forgot to do :) ). Here is the link:
https://github.com/coot/EnchantedVim
it has a dependency now:
https://www.github/coot/CRDispatcher

If you use one of the others of myplugins: System or CmdAlias you also
need to update them from their github repos.

Best regards,
Marcin

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

No comments:

Post a Comment