nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

vim editor

This is a discussion on vim editor within the Linux software forums, part of the Linux Getting Started category; Hi, I have previously posted a message which deals with highlighting of standard library functions (printf ,scanf) built in data ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 11-07-2006, 11:20 AM
Junior Member
User
 
Join Date: Oct 2006
Location: Bangalore
Posts: 12
Rep Power: 0
jithendra
Default vim editor

Hi,
I have previously posted a message which deals with highlighting of standard library
functions (printf ,scanf) built in data types (int,float) etc... which normally get highlighted
while working on vim editor. I have got the reply from u which indicated that

syntax on should be appended to .vimrc file. I didn't find .vimrc file in /root.
Instead i found a .viminfo file in /root. I copied .vimrc file from other system. When I tried
to execute , it has shown the following errors.... Im posting a part of that code ....

.vimrc file

"Linux-Mandrake configuration.
"Chmouel Boudjnah <chmouel@mandrakesoft.com>

"Syntax highlighting only for enhanced-vi
if has("mouse_gpm") && filereadable("/usr/share/vim/syntax/syntax.vim")
syntax on
endif

"Set a statusbar
set statusline=~




The error messages that i have got by executing this file are

line 5: syntax error near unexpected token `"mouse_gpm"'
line 5: `if has("mouse_gpm") &&filereadable("/usr/share/vim/syntax/syntax.vim")'


Suggest me how to resolve this problem.

Thank you.



[/u]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-05-2008, 04:09 PM
Junior Member
User
 
Join Date: Sep 2008
My distro: Ubuntu
Posts: 1
Rep Power: 0
ganeshkumarg is on a distinguished road
Default

hi jit,
if u are using ubuntu
then in " /etc/vim/ " path u'll find vimrc file
in that file u need to uncomment the line.

when u open it'll be as below
"syntax on

just remove the ", i.e
syntax on

hope it helped u,
if not msg me back,

bye
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
how to use editor like vi or mcedit chandrasekar Getting started tutorials 2 04-09-2008 03:36 PM


All times are GMT +5.5. The time now is 09:39 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36