Tuesday, June 10, 2014

Re: indent versus previous line

On Tuesday, June 10, 2014 8:05:45 AM UTC-5, Ni Va wrote:
>
> It works a little using \s out \\s because I have magic card I think:
>
> :g/^\s/exec 'sil! +,/^END_OF_BLOCK/'.repeat('>', strlen(matchstr(getline('.'), '\(\s\)\+')) / 2)
>
>
> In fact I got :
>
> <some\spaces>THE_LINE_OF_THE_HEADER_THREE
> OTHER DEPEND'S LINES
> OTHER DEPEND'S LINES

You were SPECIFICALLY ASKED whether all your \s examples were two literal '\' and 's' characters, or whether they were spaces. You said:

> when I type "\s" these are the literal characters in the file

Next time, maybe don't misrepresent your problem.

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

Post a Comment