General :: "syntax On" In Vimrc Is Not Working With RHEL5?
Feb 19, 2010"syntax on" in vimrc is not working with my RHEL5 and i m really suffering by looking at dull code..!!!
View 1 Replies"syntax on" in vimrc is not working with my RHEL5 and i m really suffering by looking at dull code..!!!
View 1 Replies1 - I've put php.vim in ~/vim/syntax directory, and now I would like to set ~/.vimrc to use php.vim when I open a php file. How do I do it? 2 - Where can I learn more on how to write vimrc?
View 1 Replies View Relatedi m using RHEL5 ......but only prob i m facing is that there is no sound in my system.
[root@localhost ~]# /sbin/lsmod
Module Size Used by
deflate 7873 0
zlib_deflate 21977 1 deflate
[code]....
As you can easily see:
Code:
What is my mistake?
When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.
Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.
But still i keep getting the same error. I am not too sure where this file is mentioned.
Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.
What's the command to reload .vimrc without restarting vim?
View 2 Replies View RelatedI have RHEL 5.5 ,Suse linex and windows7 is also running in my system. I am not able to connect to internet from Linux, but internet is working in windows 7 and suse. The service provider is qwest and they say that they do not support linux.
View 3 Replies View Relatedneed to know, how we can display the whole (till current directory) path in below highlighted way. normally it shows only the name of current working directory after the server name.
View 3 Replies View RelatedTata photon card is not working in rhel4 and rhel5.
View 4 Replies View RelatedI am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:
filter f_local4debug { level(debug) and facility(local4); };
When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.
I've been battling with this weird problem for a while now and since I can't seem to find a decent answer I'm hoping one of you guys can steer me in the right direction. The problem is simple... syntax highlighting is not working consistently on ".rb" files.
My user name on my Ubuntu 10.04 LTS is jean-marc. So if I do
touch /home/jean-marc/testing.rb
and then
gedit /home/jean-marc/testing.rb
The file comes up as "Plain Text"
If I copy the file into /tmp/ and do gedit /tmp/testing.rb
the file comes up as "Ruby"
If I do
gedit /home/jean-marc/afile.rb
and the file does not exists the file comes up as "Ruby"
If I manually set the Syntax Highlight mode on my file gedit seems to remember it. Since most of the files are generated through scripting they all come as "Plain Text" and it's definitely not the best way to edit them. Also, the files, no matter where they are show up as "Ruby script (application/x-ruby)" when showing the attributes through nautilus. Now, before someone tells use, use this software or that software instead of gedit, well I'm happy with the tool and its plugins. I'm efficient with it and I'd rather stick to it.
I got this script from website for inviting peoples to game and earning points easily ...but this seems not working and giving error..
View 4 Replies View Relatedin order to select multiple items, shift key was hold for several seconds[sure > 8sec] and there after system is not taking any input from keyboard. however only the mouse works. i searched a lot and found some remedies like hold right and/or left shift keys for 8 sec and it will revert back. press shift key 5 times and hold ins key for 8 sec etc,. but i tried all these and none of it seems to be working. i even hold some alphabet key for 8 seconds to see if it takes input, but none of them seems to be working
i connected this keyboard to other machine and it works fine. this keyboard is USB dell keyboard. i tried logging in init level 3 and even with this i can not input anything from keyboard. i did reboot several times and unable to even login as it does not take any keyboard input. the only way i can access this system is to remote login from other system and work on command prompt!!is there a fix to it? accidentally if something is changed in which file it is saved? can i edit that file and restore to normal? am not sure if all these does not work i may have to reformat!! but this is the last thing i want to do
I have installed RHEL-5 (2.6.18-53) on my Desktop (ASUS Motherboard with Realtek PCIe GBE Family Controler 8168). After installation eth0 is not detecting. I downloaded R8168 drivers from Relatek site, but I am unable to install as it's throwing the following error.
Wed Sep 8 21:49:41 IST 2010
make -C src/ clean
make[1]: Entering directory `/root/Desktop/REALTEK/r8168-8.019.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
[Code]......
I was trying to install vim today and could not find .vim directory where I could install them and only the .vimrc file was there So what I did was Try making a .vim directory copy the .vimrc file in it and and removing the old ~/.vimrc file. I exported the ~/.vim/ to $VIMHOME
View 5 Replies View RelatedI have sound problem I am using rhel5 kernal 2.6.18-8.e15
Audio model =Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
I have tried lot of thing but not getting result.
I just setup the vim,and when i modify the vimrc file ,I obviously made some mistakes ,the error looks like this and this is where the problem is and why my user name is so long ,is there anyway i can make it shorter or use others
View 8 Replies View RelatedI've added the following to my .vimrc:
Code:
function CommentLines()
:'<,'>s/^///
[code]....
I have a project directory that contains source code and subdirectories of source code. I want to use the Unix program find to search recursively for the names of files of certain extensions. The versions of find on Linux and Mac OS X behave differently.
# Works in Linux
find . -type f -regex ".*.(py|html)$"
# Neither of these works in Mac OS X
find . -type f -regex ".*.(py|html)$"
find . -type f -regex ".*.(py|html)$"
How do I write this command so that it will run on Mac OS X (and hopefully on Linux too)?
I'm trying to sanitize this output from it's metadata to plug this output into GreekTools, but I am getting stuck on sed.
View 2 Replies View RelatedI have a requirement to check the following conditions..If my folders are not A and B then list files in the directory else no listing the filesso my if loop is some thing like this.
Code:
if [ $dirName = "C" && $dirName != "A" && != "B" ] then
ls -la
[code]....
I have a couple of files which follow this syntax:
*_yyyy-mm-dd_hhhmmm.*
Example:
*_2010-01-01_00h10m.*
*_2010-01-01_01h10m.*
*_2010-01-01_02h10m.*
[Code].....
and delete the others. or maybe move them to a subdirectory to be safe...
exec, a option of find command, takes a odd format as followsfind ... -exec command {} ;Is there any explaination about why it takes this kind of format, orsome obscure implication?
View 3 Replies View RelatedFor some commands the command synopsis (syntax) is given like this:
command [a|b] [args ...]
I take mplayer (perhaps not GNU) to illustrate the point:
mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options]
mplayer [dvd|dvdnav]://[title|[start_title]-end_title] [options]
An item inside square brackets is optional. The pipe sign is the 'or' logical connective (disjunction). But then, what is [cdda|cddb]?
If optional, I can omit it: it makes no sense because there are more the one possible synopsis for the command line.
What is wrong with the following ldif file :
Code:
dn: dc=mydomain
objectclass: dcObject
objectclass: organization
o: My Ldap
dc: mydomain
dn: cn=Manager,dc=mydomain
objectclass: organizationalRole
cn: Manager
Because I get following output :
Code:
[root@1 ~]# /usr/bin/ldapadd -x -D "cn=Manager,dc=mydomain" -W -f /etc/openldap/basic.ldif
Enter LDAP Password:
adding new entry "dc=mydomain"
ldapadd: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax
how would the syntax of reverse find be..i want to type a name and then find it and delete it from a file i have?
View 2 Replies View RelatedI'm working on reorganizing my .bashrc. I moved my aliases to .bash_aliases (which is sourced by .bashrc, but I can't figure out how to enable syntax highlighting for this file. vim seems unable to figure out what language the file is in. It works fine for .bashrc.
View 2 Replies View RelatedMental note: ignore start-up process scroll.
Okay, now MySQL is just being (even more) difficult. Prior to boot's starting MySQL, I notice the line
Code:
/etc/rc2.d/S19mysql: line 132: syntax error near unexpected token ')'
Near?? Line 132 consists of
Code:
'stop')
Which is proper, and identical to all the other /etc/rc#.d/S19mysql scripts that don't result in errors. C'mon...!
find /opt/postfix/mail/email.com/~spam/~quarantine/ ( -iname * -o -iname .* ) ! -type p -exec grep -i -c admin@email.com {}; -xdev -print
When I do this command I receive this error message:
-bash: syntax error near unexpected token `('
I wrote a script to start portal.
Its start portal (not a problem)
Only getting following message:
This is the else before second logic