![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Installation & Upgrades For questions about upgrading and installation of your new Ubuntu OS. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() |
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 |
|
|
|
|
|
#3 |
|
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? |
|
|
|
|
|
#4 |
|
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.
|
|
|
|
|
|
#5 |
|
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. |
|
|
|
|
|
#6 |
|
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. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|