Monday, December 7, 2015

Re: programmatically determine blockwise visual mode



2015-12-05 14:59 GMT+03:00 Christian Brabandt <cblists@256bit.org>:
On Sa, 05 Dez 2015, Nikolay Aleksandrovich Pavlov wrote:

> I think that in most cases `"\<C-v>42$"` will work: `+"42$" is 42`, `str2nr
> ("42$") is 42`.

Hm, I am sorry, I don't understand what you are trying to say.

I have mistaken `visualmode()` output with `getregtype()` output. This suggestion could be a solution if `visualmode()` returned the same answer as `getregtype()`.

I am wondering thus whether it make sense to have `visualmode(0, 1)` output for block visual mode the same thing as `getregtype()` for blockwise registers, but with possible `$` after the number. Modifying `col()` to return some seeming arbitrary very big number looks weird.

 

Best,
Christian
--
Es gab noch nie einen guten Krieg oder einen schlechten Frieden.
                -- Benjamin Franklin

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