Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2012, 08:38 AM   #1
Registered: Mar 2010
Posts: 396

Rep: Reputation: 0
Unhappy vi editor in ubuntu turns me off

I have worked pretty comfortably on rhel servers with vi editors and It comes like a smooth free flowing editor.

The story becomes interesting when I work on same "vi" editor in Ubuntu 12.04 Desktop edition....

if I do "I" I cannot see I have entered "insert mode.
If i press down or up arrow key some funky letter comes up on screen...

I am extremly annoyed on this, why is this happening on two different distros I would like to know if there is any problem with ubtu vi editor....

Old 03-24-2012, 09:27 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
There are many preferences which can be set to control the behavior of vim. For system-wide settings, look in /etc/vim/vimrc. For your personal preferences look in ~/.vimrc.

The default settings will vary from one distro to another.
1 members found this post helpful.
Old 03-24-2012, 09:33 AM   #3
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Function of Vi editor in Ubuntu is different as compared to rhel. Before using vi in ubuntu, you have to export your editor as,

export EDITOR="vi" or export EDITOR="vim" & edit the same in .bash_profile file.
1 members found this post helpful.
Old 03-24-2012, 09:54 AM   #4
Senior Member
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
You could download a vi tutorial and learn how to customize it the way you like it. Each individual has different preferences and vi allow you to change things around.
1 members found this post helpful.
Old 03-24-2012, 10:38 AM   #5
Registered: Mar 2010
Posts: 396

Original Poster
Rep: Reputation: 0
Thanks Guys as @smilemukul says I perform export EDITOR=vim and it started behaving friendly as like on rhel server.


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
LXer: Puppy Linux turns to Ubuntu for version 5.0 LXer Syndicated Linux News 0 05-25-2010 12:01 AM
HDD led always turns on in UBUNTU 9.10??? heavenly.park Ubuntu 1 01-31-2010 11:43 PM
LXer: The LiVES Video Editor and VJ Tool Turns 1.0 LXer Syndicated Linux News 0 07-23-2009 03:00 AM
LXer: Turns out there is an OpenSSH update for Ubuntu 6.06 LTS LXer Syndicated Linux News 0 05-21-2008 11:40 AM
LXer: Ubuntu turns to NUN to help new users LXer Syndicated Linux News 0 08-16-2006 07:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 PM.

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