Friday, April 18, 2014

S&R with search input from a file

Hi,

Is it posible to search for a list of words, from a file and replace them if found in the buffer that is open, and making the first letter a uppercase
For example:

FileNAME: INPUT.TXT
Containing:
+----------+
james
quebec
canada
+----------+


:%s/<INPUT.TXT>/replace found word with same word but first letter in uppercase./g


Example:
james was in quebec.
The city quebec is in canada.

Becomes:
James was in Quebec.
The city Quebec is in Canada.

Rgds, Jeri

--
--
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/d/optout.

No comments: