Wednesday, March 27, 2013

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

On Wed, March 27, 2013 16:51, neolus wrote:
> hi I tried the first command and then the second gave me an error saying
>
> E492: Not an editor command:
> fdt=substitute(getline(v:foldstart),'vim','EMACS','g') fillchars-=fold
> I also tried the command with
> set fdt=substitute(getline(v:foldstart),'vim','EMACS','g')
> fillchars-=fold
> which didn't complain but nothing happened, ( I typed a g and it was the
> same? )

That was supposed to be typed in one single line (e.g. one single :set
line without linebreaks), probably my mail was wrapped when sending.
You also need to enable folding, e.g. :set foldenable

So in whole type this as 1 single :set statement:
set fdm=expr fde='>1' fdl=0 foldminlines=0
fdt=substitute(getline(v:foldstart),'vim','EMACS','g') fillchars-=fold fen

BTW: You know, that you need to replace vim by the chars you want to be
replaced and EMACS by the chars, that you like to see, right?

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: