Tuesday, March 26, 2013

Re: replace represenation of certain characters with a string of characters?

On Wed, March 27, 2013 04:46, neolus wrote:
> I'm sorry to be misleading, from the start I wanted to be able to do this
> with more than 2 characters ( at least 4 in particular) it seems like I
> gave
> the impression that I only needed two.
>

How about a different approach and misusing folding:
set fdm=expr fde='>1' fdl=0 foldminlines=0
fdt=substitute(getline(v:foldstart),'vim','EMACS','g') fillchars-=fold

(You might want to adjust the Folded highlighting group. Syntax
highlighting won't be possible though).

regards,
Christian

--
--
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