LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2013, 05:23 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
vi keeps changing case of letter


i'm running Ubntu12.04 precise but I've seen this in other distributions too.

In the vi editor
vi --version
VIM - Vi IMproved 7.3

If in insert mode such as when correcting a word and using the change word (cw) command. I wish to change the first part of the word and delete the later part of a word. When I use the delete key to delete subsquent characters, it correctly deletes forward but also changes the last wanted character to uppercase. I then have to go back and invert the case. Its somewhat annoying.

Is the a cure.

Tried Googling this but its too obtuse for the search engine.

Last edited by keirvt; 09-28-2013 at 05:24 PM.
 
Old 09-28-2013, 08:43 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
must be an ubuntu thing. ive seen some strange editing from vi under OSx, but never anything like you describe.
 
Old 09-28-2013, 08:56 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Just checked with Vim 7.2 and 7.3 (Slackware), nothing like you described.

Must be Ubuntu thing as lleb says.
 
Old 09-29-2013, 04:51 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Does your delete key work normally when editing commands at a command prompt?

What do you see at a command prompt if you type Ctrl+v (that's press Ctrl, keep it pressed and press v) and then press delete?

Do you have a ~/.inputrc file? If so, what's in it?

Which terminal emulator are you using? What is $TERM?
 
Old 09-29-2013, 12:55 PM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Are you using vi or vim? I find vi under debian based OS to be really messed up to use. I always install vim.
 
Old 09-29-2013, 02:15 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
I've seen this with vi (vim-minimal in Fedora; vim-tiny in Ubuntu). It doesn't seem to happen with a full installation of vim
 
1 members found this post helpful.
Old 09-29-2013, 03:14 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Red Squirrel View Post
Are you using vi or vim? I find vi under debian based OS to be really messed up to use. I always install vim.
From the OP...

Quote:
vi --version
VIM - Vi IMproved 7.3
 
Old 10-01-2013, 04:20 PM   #8
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
vi character change

I am using vi not vim.
TERM is xterm
and there is no .inputrc file
The delete forward key works on the command line without changing the case

I installed vim and the problem doesn't present in vim so I guess my problem
is solved.

Thanks for your suggestions.
 
Old 10-01-2013, 05:51 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by keirvt View Post
I am using vi not vim.
TERM is xterm
and there is no .inputrc file
The delete forward key works on the command line without changing the case

I installed vim and the problem doesn't present in vim so I guess my problem
is solved.

Thanks for your suggestions.
Now I am confused, in your original post you had this...

Quote:
In the vi editor
vi --version
VIM - Vi IMproved 7.3
So you are invoking it with "vi" but that is probably a symlink to vim - or did I miss something?

Anyway, glad you got it working.
 
  


Reply



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
[SOLVED] Problem with keyboard letter P only work in uPPer case do_little49 Linux - Newbie 9 08-16-2013 03:19 PM
Changing page size to half letter xowl AIX 4 05-09-2006 02:12 PM
upper case letter moonz Linux - General 3 09-18-2005 06:58 AM
changing case in sed phoenix7 Linux - Software 8 08-30-2005 07:18 AM
Lower case to upper case letter sudhasmyle Programming 1 12-03-2004 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 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