Friday, November 7, 2014

Re: avoiding visual mode

On 2014-11-07 19:26, B. Elijah Griffin wrote:
> Tim Chase wrote:
> > 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?
>
> Remap the V and v keys?

Which is possible, but I suspect it's a rogue script/mapping that
isn't properly taking care of things, and a mapping likely uses
"nnoremap" which bypasses the remapping of v/V/^V.

But certainly worth a shot.

> > 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").
>
> The visual.txt doc file implies visual can be disabled at compile
> time:
>
> {not available when the |+visual| feature was disabled when
> compiling}
>
> It does appear that you are correct and the code does not compile
> without +visual.
[snip]
> (I did a bare configure and then added #undefs for FEAT_VISUAL and
> FEAT_VISUALEXTRA to the end of feature.h, since FEAT_VISUAL is set
> in a couple of places in feature.h.)

Yeah, I pulled down the latest sources from Mercurial and in the root
directory, a

:vimgrep /FEAT_VISUAL\>/ **/*.[ch]

doesn't get any hits.

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

Post a Comment