LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: What locale/codeset do you use?
UTF-8 73 85.88%
ISO8859-1 9 10.59%
Other ISO8859-* 2 2.35%
Other 3 3.53%
Multiple Choice Poll. Voters: 85. You may not vote on this poll

Reply
  Search this Thread
Old 08-10-2014, 07:07 AM   #76
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Original Poster
Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043

Doesn't change the point that vi and vim's behaviour is inconsistent.
vim remains in insert/Replace mode until you actively hit escape, vi drops back to command mode automatically on a cursor key press. Regardless of which of these one may view as the correct approach, that inconsistency is likely to catch people out when using the one they're not used to.

Is there a .vimrc setting that'll make it work the same way?
 
Old 08-10-2014, 07:40 AM   #77
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 365

Rep: Reputation: 203Reputation: 203Reputation: 203
Hm, not sure about the setting, but if you start vim like following
Code:
vim -u NONE
then it will run in vi-compatible mode (:set compatible) and arrow keys in insert mode won't work as expected, but instead of going back to normal mode capital letters (A, B, C, D) are inserted, each in new line above the rest. Not sure why this happens, maybe it depends on terminal emulator. I'm trying this on KDE's Konsole.

I can see your point how it would make things even more unfriendly to people who are less experienced with vi-like text editors and who just want to do some simple changes to a text file, but it wasn't really designed to be used like this and staying too long in insert mode just makes things more difficult (e.g. undo will revert too many changes).
 
1 members found this post helpful.
Old 08-10-2014, 08:17 AM   #78
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,927

Original Poster
Rep: Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043Reputation: 5043
As you say, getting into the habit of escaping back to command-mode, is probably the safest approach (as long as whichever vi clone you're using isn't one of those stupid ones that insist on doing a 'bell' when you press escape while already in command mode! )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
Locale or run level - cannot open display message konzo Linux - Newbie 5 01-14-2010 04:32 PM
How on Sarge to get adduser+locale let new user run a language root & others don't Frommacau Debian 3 06-28-2006 08:11 AM
locale: Cannot set LC_ALL to default locale: Invalid argument GadgetWiz Mandriva 1 03-31-2006 11:38 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration