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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
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] |
| Sponsored Links | ||
|
|
|
|||
|
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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |