Friday, November 7, 2014

Re: avoiding visual mode

On 2014-11-07 15:42, john Culleton wrote:
> As I work in gvim periodically it switches to
> visual mode. Is there a way to just turn
> off visual mode altogether?

Not particularly. I suppose you could theoretically build without
visual mode as does list "+visual" in the output of
":version" (suggesting that it's possible to build without it).
However, even vim.tiny includes visual mode and looking at the source
code, it looks to me like visual mode can't be entirely disabled (just
block-wise "-visualextra").

To disable it in your case, you'd have to track down where it's
getting set and then disable it there. If you had any more
particulars about when it happens, it might help track it down.

- Is it only in a certain vim configuration with certain plugins (my
best guess)?

- Do you remember what you did right before it kicked into visual
mode?

- is it always one particular visual mode (character-wise, line-wise,
or block-wise)?

Since it's gvim, that makes it unlikely to be some spurious
translation of a funky key (like F1-F12, arrows, alt+char, etc) into
something that kicks you into visual mode.

-tim


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