Tuesday, December 22, 2015

Re: Question about '[,']!filter versus %!filter (in autocmd)

Tony Mechelynck wrote:

> P.S. The FileReadPost autocommand is triggered when a file has been
> read in after an arbitrary line of an existing buffer by means of the
> :read command (e.g., ":0read ./filename.ext" would read it at the top
> of the existing buffer, ":$read ./filename.ext" at the bottom, and
> :.-1read ./filename.ext" immediately before the current line.) In such
> a case, :% (or :1,$) specifies the whole _buffer_ while :'[,']
> specifies the newly read _file_.
>
> See :help FileReadPost
>
>
> Best regards,
> Tony.

Ah, that's a very important difference between '[,'] and %
Thanks for that.

cheers,
raf

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