Bug 123205

Summary: strange cursor behavior in vi - edit-mode
Product: [Fedora] Fedora Reporter: shrek-m <shrek-m>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: oliver, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-02 11:54:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description shrek-m 2004-05-13 19:48:19 UTC
Description of problem:
vi has a strange cursor-behaviour in edit-mode

$ vi test
[i] = edit-mode

top => A
down => B
left => D
right => C
home, end, page up, page down => inverse upper<->lower case

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. start "vi test" local
2. start "vi test" via ssh from a fc1-system
3. edit and try to navigate with the cursors

Actual Results:  strange cursor-behavior in edit-mode
i am not able to edit a simple config-file in the usual speed

Expected Results:  vi should have the same behaviour as in rhl 6.x - fc1

Additional info:

clean fresh install fc2t3

# cat /etc/sysconfig/i18n

Comment 1 Karsten Hopp 2004-05-21 13:26:34 UTC
*** Bug 123891 has been marked as a duplicate of this bug. ***

Comment 2 Robert Scheck 2004-05-21 14:57:21 UTC
The problem is caused by the missing /etc/vimrc in vim-minimal.
/etc/vimrc at current is only provided with vim-common...Karsten, 
what was such hard to trigger out that? ;-)

The solution I personally prefer is, to break out a -config package.
A diff from my solution is below:

--- vim.spec       2004-04-09 13:10:24.000000000 +0200
+++ vim.spec.rsc   2004-05-21 16:37:19.000000000 +0200
@@ -555,6 +555,7 @@
 %package minimal
 Summary: A minimal version of the VIM editor.
 Group: Applications/Editors
+Requires: vim-config
 Obsoletes:  vim

 %description minimal
@@ -570,7 +571,7 @@
 %package enhanced
 Summary: A version of the VIM editor which includes recent enhancements.
 Group: Applications/Editors
-Requires: vim-common
+Requires: vim-common, vim-config
 Requires:  %(perl -le 'use Config;print $Config{archlibexp}')
 Obsoletes: vim-color

@@ -587,6 +588,14 @@
 interpreters for the Python and Perl scripting languages.  You'll also
 need to install the vim-common package.

+%package config
+Summary: The config file for the the VIM editor.
+Group: Applications/Editors
+%description config
+This package contains the config file for the minimal and the enhanced
+variant of VIM (VIsual editor iMproved).
 %if "%{withgui}" == "1"
 %package X11
 Summary: The VIM version of the vi editor for the X Window System.
@@ -1247,7 +1256,6 @@

 %files common
-%config(noreplace) /etc/vimrc
 %doc README*
 %doc runtime/docs
@@ -1294,6 +1302,10 @@

+%files config
+%config(noreplace) /etc/vimrc
 %if "%{withgui}" == "1"
 %files X11

Comment 3 Karsten Hopp 2004-05-22 13:38:10 UTC
no, a simple strace would have revealed the problem. I'm just too 
busy at the moment with other things to spend time on such minor 
bugs. I'll fix this one during the next round of package updates, 
although I don't think that I'll add a -config package. Maybe I'll 
just patch the /bin/vi defaults, but I'm not sure yet. 

Comment 4 Karsten Hopp 2004-05-26 09:22:27 UTC
*** Bug 124367 has been marked as a duplicate of this bug. ***

Comment 5 Karsten Hopp 2004-06-02 11:54:05 UTC
fixed in the development tree