Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Installation & Upgrades
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Installation & Upgrades
For questions about upgrading and installation of your new Ubuntu OS.

 
Thread Tools Display Modes
Old October 28th, 2006   #1
ramdisk
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 4
Problems in Terminal after update

I have been using dapper for a while on several computers. I reinstalled from scratch to edgy on one last night. When I go to the terminal and get into vi I am noticing some differences. In dapper when I hit the insert key, it lights up with "insert" in red at the bottom of the vi screen. does not do so in edgy. When I use the arrow keys in insert mode in vi in dapper works fine. In edgy I get the letters A B C D when I try to use arrow keys. Any idea what the problem could be? Tried googleling and searching the forums but have hit my wits end for a saturday morning! was hoping someone else had a solution .. Thanx for you time

ramdisk
ramdisk is offline   Reply With Quote
Old October 28th, 2006   #2
ethan@xmlstandards.org
5 Cups of Ubuntu
 
Join Date: Mar 2006
Location: London
Beans: 27
Ubuntu 6.06 Dapper
Send a message via MSN to ethan@xmlstandards.org
Re: Problems in Terminal after update

I have encountered exactly the same issues when using vi via terminal.

Not sure what is going on either.

Back to Dapper for me I fear. Shame too!
__________________
Ethan Cane
Promoting W3C Standards for the Web...
Web: www.xmlstandards.org | Blog: blog.xmlstandards.org
ethan@xmlstandards.org is offline   Reply With Quote
Old October 30th, 2006   #3
meimato
Just Give Me the Beans!
 
Join Date: Nov 2004
Beans: 53
Re: Problems in Terminal after update

Same problem for me. I even tried with aterm, but the problem is the same.
Moreover, vi has strange behaviours also using it from a console (tty1, tty2...).
Someone has an idea to solve this problem?
meimato is offline   Reply With Quote
Old October 30th, 2006   #4
meimato
Just Give Me the Beans!
 
Join Date: Nov 2004
Beans: 53
Re: Problems in Terminal after update

I found that using the command vim instead of vi solves the problem.
meimato is offline   Reply With Quote
Old November 2nd, 2006   #5
jeblinux
First Cup of Ubuntu
 
Join Date: Nov 2006
Location: Texas
Beans: 9
Re: Problems in Terminal after update

You can use the 'which' command to track down what command is being executed when you type 'vi'. Then you can use 'readlink' to find the target of the symbolic links. In one step this could be

$ readlink -f $(which vi)

which indicates to me that using vi or vim makes no difference on my system---they both point to '/usr/bin/vim.basic'. I just upgraded from Dapper Drake to Edgy Eft a few days ago.

It sounds like you are in vi-compatible mode. This will likely be the default behavior if you do not have a ~/.vimrc file to change it otherwise. or some other system configuration file. On my system the file '/etc/vim/vimrc' sources the file '/usr/share/vim/vim70/debian.vim' to setup the most basic stuff. I put more advanced/personal options in my '~/.vimrc' file.

I tried it on my computer to see if compatible mode gave the behavior you described. If I start vi and then type the command ':set compatible' then everything weird happens like you describe. Just create a file called '.vimrc' in your home directory and enter the line

set nocompatible

in that file. You may want other options such as

syntax on

that make vim less like vi but more useful.

If you don't want to make your own there are several good ones that you can grab off the Net.
jeblinux is offline   Reply With Quote
Old November 17th, 2006   #6
kr4z
First Cup of Ubuntu
 
Join Date: Jun 2006
Location: Canada
Beans: 4
Ubuntu 6.06
Re: Problems in Terminal after update

The problem seems to happen because on edgy, vim-tiny is installed by default instead of vim-full. This means that vim uses the /etc/vim/vimrc.tiny file instead of the /etc/vim/vimrc file. The vimrc file sets nocompatible mode, while vimrc.tiny does not.

There's a bug about this here:
https://launchpad.net/distros/ubuntu...vim/+bug/72174

You can get the old behavior back by installing the vim-full package.
kr4z is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:53 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry