LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-24-2012, 07:38 AM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

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....


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

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 08:33 AM   #3
smilemukul
Member
 
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, 08:54 AM   #4
TroN-0074
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, 09:38 AM   #5
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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