On Oct 26, 11:31 am, Ben Fritz <fritzophre...@gmail.com> wrote:
> On Friday, October 26, 2012 1:15:34 PM UTC-5, Bee wrote:
> > is it possible to make a 'substitute' where the 'pattern' is taken from a file?
>
> Not unless you write a script to read the file and use :execute to build a substitute command. What are you trying to accomplish?
>
> Note it's pretty easy to yank text from a buffer or copy it external to Vim and paste it into a command-line. See :help c_CTRL-R.
I thought of creating wordlists in files for, such as, changing case
of application specific keywords.
The lists are not all that long, so embedding them in a :s in .vimrc
would work.
It was curiosity that posted this question.
Bill
--
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
No comments:
Post a Comment