0

I am SSH'ing to a server (running CentOS release 5.4 (Final)). I opened vim, and when I hit shift+v to try to get into "Visual Line" mode, all I get is a beep noise.

Why? Why can't I access visual mode in Vim? echo $TERM says xterm.

I SSH'd into another computer (running Debian), and pressing shift+v worked exactly as I'd expect (this machine also has echo $TERM equal to xterm).

What setting do I need to check to make Vim act the way I want? Or how can I get into visual mode without being beeped at?

2
  • Are you sure that vim is actually installed and not nvi or something else with a symlink?
    – Zoredache
    Mar 18, 2013 at 19:24
  • @Zoredache: When I open vim, it says: VIM - Vi IMproved version 7.0.237
    – gen_Eric
    Mar 18, 2013 at 19:37

1 Answer 1

3

Does "vim --version" show "Tiny Version" immediately before the feature list? If so, that particular Vim binary probably does not have support for visual mode. Check the actual feature list for +visual/-visual. If it is a minus, that confirms that the support is not there.

As this is CentOS 5, I would recommend trying this to get a fully enabled Vim (as root):

yum install vim-enhanced
4
  • Tiny version without GUI. Features included (+) or not (-): -visual. I didn't know there was vim-minimal vs vim-enhanced. On most other linux distros, it's just vim.
    – gen_Eric
    Mar 18, 2013 at 19:38
  • Yep. That is exactly why it wasn't working! Thanks so much :-D
    – gen_Eric
    Mar 18, 2013 at 19:38
  • @RocketHazmat, no. On most other distros, the default Vim is vim-minimal or vim-tiny and you must manually install a proper vim.
    – romainl
    Mar 18, 2013 at 20:04
  • @romainl: I use Arch Linux and Gentoo :-)
    – gen_Eric
    Mar 18, 2013 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .