LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2005, 09:28 AM   #1
drumstick
Member
 
Registered: Mar 2005
Location: Istanbul
Distribution: Ubuntu Desktop 6.06, SuSE Linux 9.3 Professional
Posts: 35

Rep: Reputation: 15
VI Editor & Emacs


Hello again,

Also my VI editor is colorless. At school (I am a computer science engineering student) we use RedHat Enterprise Server. VI editors on those machines are colorful.

I mean, for example, when you write "#include something.h" it is orange, or when you write "int" it is green, orange for "this" etc.

How can I edit my VI editor to be colorful like that?


Also how can I find the Emacs editor in SuSE 9.3 Professional?
Does any package groups include it?


Think of me as a newbie to Linux...
 
Old 05-19-2005, 09:31 AM   #2
fasmaie
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 10.0, ArchLinux, FreeBSD 5.3
Posts: 14

Rep: Reputation: 0
Make a file on your home directory called .vimrc and put in the line

syntax on

Then start vim
 
Old 05-19-2005, 09:45 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
do a locate vimrc_example.vim

That file may be better for a ~/.vimrc file.
 
Old 05-19-2005, 02:46 PM   #4
drumstick
Member
 
Registered: Mar 2005
Location: Istanbul
Distribution: Ubuntu Desktop 6.06, SuSE Linux 9.3 Professional
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you both for your help...
 
Old 05-19-2005, 02:51 PM   #5
drumstick
Member
 
Registered: Mar 2005
Location: Istanbul
Distribution: Ubuntu Desktop 6.06, SuSE Linux 9.3 Professional
Posts: 35

Original Poster
Rep: Reputation: 15
And one more question...

After editing ".vimrc" I receive a warning:

drumstick@linux:~/MazeProject> vi Maze.cpp
No mapping found
No mapping found
Hit ENTER or type command to continue

After hitting ENTER, it opens the file to edit.

What does this warning mean? And how can I make it gone?
 
Old 05-19-2005, 04:56 PM   #6
drumstick
Member
 
Registered: Mar 2005
Location: Istanbul
Distribution: Ubuntu Desktop 6.06, SuSE Linux 9.3 Professional
Posts: 35

Original Poster
Rep: Reputation: 15
Nobody knows?
 
Old 05-19-2005, 11:41 PM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
emacs

ftp prep.ai.mit.edu
login as anonymous
cd ./gnu/emacs
ls
get <latest version>

Code:
./configure --prefix=/usr \
   --libexecdir=/usr/sbin &&
make bootstrap &&
make install
 
Old 05-20-2005, 08:50 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Read the explanation given in the manpage for lockd. Most kernels don't require it but it doesn't hurt to run it anyway.

From the statd.c file in the kernel source (2-6-8):
* linux/fs/lockd/nsmproc.c
*
* Kernel-based status monitor. This is an alternative to
* the stuff in mon.c.
*
* When asked to monitor a host, we add it to /var/lib/nsm/sm
* ourselves, and that's it. In order to catch SM_NOTIFY calls
* we implement a minimal statd.
*
 
Old 05-23-2005, 08:26 AM   #9
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
Quote:
Originally posted by drumstick
And one more question...
After editing ".vimrc" I receive a warning:
drumstick@linux:~/MazeProject> vi Maze.cpp
No mapping found
No mapping found
Hit ENTER or type command to continue
After hitting ENTER, it opens the file to edit.
What does this warning mean? And how can I make it gone?
please, post your edited .vimrc file..
regards
slackie1000
 
Old 05-30-2005, 07:26 AM   #10
aswen
LQ Newbie
 
Registered: May 2005
Location: NL, Groenlo
Distribution: RHEL/CentOS/Debian/FreeBSD
Posts: 3

Rep: Reputation: 0
I have same (kind of) problem

Hi,

I use Vi both on Debian and SuSE. (Vi version: 6.3 incl patch 1-71 on both machines)

when I add the following part of my global vimrc file from the Suse machine to the Debian machine I get the same Error as described above (No mapping found (2x) Hit ENTER or type commanc to continue):

if myterm == "xterm" || myterm == "kvt" || myterm == "gnome" || myterm == "linux"
" keys in insert/command mode.
map! <ESC>Oo :
map! <ESC>Oj *
map! <ESC>Om -
map! <ESC>Ok +
map! <ESC>Ol ,
map! <ESC>OM
map! <ESC>Ow 7
map! <ESC>Ox 8
map! <ESC>Oy 9
map! <ESC>Ot 4
map! <ESC>Ou 5
map! <ESC>Ov 6
map! <ESC>Oq 1
map! <ESC>Or 2
map! <ESC>Os 3
map! <ESC>Op 0
map! <ESC>On .
" keys in normal mode
map <ESC>Oo :
map <ESC>Oj *
map <ESC>Om -
map <ESC>Ok +
map <ESC>Ol ,
map <ESC>OM
map <ESC>Ow 7
map <ESC>Ox 8
map <ESC>Oy 9
map <ESC>Ot 4
map <ESC>Ou 5
map <ESC>Ov 6
map <ESC>Oq 1
map <ESC>Or 2
map <ESC>Os 3
map <ESC>Op 0
map <ESC>On .
endif

note: this is preceded by: (but without the above if-statement no errors)
" Try to get the correct main terminal type
if &term =~ "xterm"
let myterm = "xterm"
else
let myterm = &term
endif
let myterm = substitute(myterm, "cons[0-9][0-9].*$", "linux", "")
let myterm = substitute(myterm, "vt1[0-9][0-9].*$", "vt100", "")
let myterm = substitute(myterm, "vt2[0-9][0-9].*$", "vt220", "")
let myterm = substitute(myterm, "\\([^-]*\\)[_-].*$", "\\1", "")

" Here we define the keys of the NumLock in keyboard transmit mode of xterm
" which misses or hasn't activated Alt/NumLock Modifiers. Often not defined
" within termcap/terminfo and we should map the character printed on the keys.
 
  


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
using emacs editor with fedora core 4 gambato79 Fedora 1 07-15-2005 10:39 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
Makefile with emacs editor problem? varala_kanth Linux - Software 0 04-03-2004 02:05 AM
Text Mode Editor: What Choices? BASH, VI, EMACS? LinxAI Linux - Newbie 12 03-28-2004 11:17 PM
EMACS-text editor TrippyChik Linux - Software 10 10-17-2003 09:36 AM

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

All times are GMT -5. The time now is 02:36 PM.

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