[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

vim - not allowing visual block/line selection.  how to turn on?

Posted on 2006-11-19
10
Medium Priority
?
229 Views
Last Modified: 2008-02-01
I'm working on a server where I am not the admin, and it has vim 6.3.82 on it.  When I try to select using V or ^v, it simply beeps at me.  I've looked high or low for instructions on how to enable visual mode, and I just can't seem to cook up the right search phrase.

Help!
0
Comment
Question by:crnz
  • 6
  • 3
10 Comments
 
LVL 2

Author Comment

by:crnz
ID: 17977417
I checked and I run VT100 on both servers. vim v5.6 does it (visual mode), v6.3 does not.  So how do I turn it on?
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17979757
try another teminal like
TERM=linux vim
try Ecs v instead of ^v
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 17982701
Vim can be built to support visual mode or not support it. Perhaps on that server it's the latter. What's the distro?
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
LVL 2

Author Comment

by:crnz
ID: 17989353
centos

I requested (and got) and install of the vim-enhanced package, but it didn't help.
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 17989441
Is the sequence 'ESC v' not working?
0
 
LVL 2

Author Comment

by:crnz
ID: 17989590
No offence ravenpl, but I'm not considering other fallback options yet (including the old Wordstar faves like ^kc ^kv ^kb) until I am forced to.  I'm looking to get V and ^v working like I know they must do - somehow.
0
 
LVL 2

Author Comment

by:crnz
ID: 17989932
ravenpl, I owe you an apology.  Just tried ESC v and I entered visual mode just fine.  Tried ESC V and my fave - visual line mode was all go.

Does this mean I need to change key mappings somewhere?

(You might forgive an old hacker who doesn't like change...  I'm already swapping between windows and linux, I am trying to avoid having to remember new key sequences on different linux servers too!  :)


0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17989974
> Does this mean I need to change key mappings somewhere?
I guess so. It's the telnet/ssh/whatever client has to support smarter terminal than ancient vt100. What client do You use?
0
 
LVL 2

Author Comment

by:crnz
ID: 17990040
Gottit

It turns out V and v are unmapped in vi (goodness knows why they were mapped on the versions I have used - but I'm happy not to know this)

I just mapped them in vi

:map! V ^[V
:map! v ^[v

I put these in .vimrc and it works fine.

Thanks - I'm a happy chappie again

(for those finding this looking for answers, :map! maps edit mode keys while :map maps command mode keys.  ^[ stands for ESC)

0
 
LVL 2

Author Comment

by:crnz
ID: 17990108
woops - that's the othe way 'round with :map and :map!.  you'll figure it out. :)
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question