2016-01-17 3:10 GMT+03:00 Axel Bender <axel.bender@cip-kommunal.de>:
When I want to match a pattern in the first line of a document, I use "\%1l". However, no pattern for the last line is provided in the docs (my - somewhat naive - attempts using "\%$l", or "\%9999l" failed).
Did I miss something?
There is a zero-width pattern that matches the end of the buffer (\%$): not the same as matching anywhere inside the last line like \%Nl will do, but depending on the regex this may be sufficient. You may also use `<C-r>=line('$')<CR>`.
--
--
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.
--
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