Debian :: How To Set VIM (Highlight Syntax And So On)
Sep 24, 2010
I cannot find how to set VIM so that it higlight syntax (for exapmle bash scripts). I installed VIM package by using aptitude, but I dont have file .vimrc in my home directory. I found out that settings have to be written in this file. I can use command in VIM :"syntax on" but VIM shows syntax terrible. I think that is cause by some color setting.
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.
I 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 can't get work terminal syntax highlighting for other users then root.To get the same result I've created /home/user/.bashrc and added the above options.I've also tried to override LS_OPTIONS in system-wide: /etc/bash.bashrc.In all cases is the highlighting working only for root.
I can't figure out the syntax on the apt-cdrom command.
My CDROM is flaky, but have a portable CDROM attached to a usb.
Here's the output of lsusb: Code: Select allroot@home:/etc/apt/apt.conf.d# lsusb Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 002: ID 04b3:310b IBM Corp. Red Wheel Mouse
[Code] ....
Here's the output of df: Code: Select allroot@home:/etc/apt/apt.conf.d# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 464279312 4089292 436582932 1% / udev 10240 0 10240 0% /dev tmpfs 1619088 9132 1609956 1% /run tmpfs 4047716 164 4047552 1% /dev/shm
[Code] ....
Here is my modified fstab: Code: Select allroot@home:/etc# cat fstab # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5).
[Code] ....
Here is my configure file: Code: Select allroot@home:/etc/apt/apt.conf.d# cat config.usb.cdrom Acquire::/dev/sr1::/media/bill;
Here is my command and output: Code: Select allroot@home:/etc/apt/apt.conf.d# apt-cdrom -d=/media/bill -c=config.usb.cdrom add Using CD-ROM mount point /media/bill/ Unmounting CD-ROM... Waiting for disc... Please insert a Disc in the drive and press enter
[Code] ....
There must be something simple that I have missed.
I have currently configured Postfix as an SMTP server. I would preferably not use a domain name in my email address, like so: myname@[1.2.3.4]
I'm currently testing to see how other mail servers handle this kind of address. When I sent a mail with one one of my gmail accounts, I see that the mail gets rejected due to bad syntax.
It seems as though Google is giving me a RCPT TO address like so: myname@1.2.3.4 However, the postfix server rejects this address with the following error:
501 5.1.3 Bad recipient address syntax
To my best knowledge the only way to have an IP address inside an email address with to write it as a domain literal [1.2.3.4].
My question: how to configure postfix to accept myname@1.2.3.4 as well?
I have put both [1.2.3.4] and 1.2.3.4 in "mydestination" and 1.2.3.4 in "virtual_alias_domains".
So I was reading this thread on internet privacy and decided to 'upgrade' my system. I installed privoxy and tor and chained them from squid so it looks like this: iceweasel >> squid >> privoxy >> tor. All is working well except when I go to edit my privoxy default.action file I get a fatal error. I've got version 3.0.9-1 The original line in the newly installed default.action file. #+hide-referer{forge}
I edited it by simply removing the #. +hide-referer{forge} Then:su -c '/etc/init.d/privoxy force-reload'And I get this in the logfile.Sep 14 16:41:36.260 Privoxy(7f4fa64756e0) Fatal error: can't load actions file '/etc/privoxy/default.action': first needed line (361) is invalid: +hide-referer{forge} I've even copy/pasted from the manual and to no avail.Have I been looking at to much text for the last two days?What am I missing?
After a search I've done, all the matches for the respective query remain highlighted and it's annoying. This happens even after I close the respective file (normal behavior?). How to I remove this?
I think this is the right place to post this... I use ubuntu now and its awesome but there is one little thing that annoys me, i have looked through gconf and compiz conf and i still can't find a solution. Its probably something really simple tho.
All it is, when i select an url, any url on any application a box pops up with the options: open with firefox send url open with mozzilla open with opera
Anyone know how to get rid of the highlights (see pic) that come up in 10.04 since i installed it? They appear in different programs as well as the main menu and the taskbar at random.
Some pdf readers for windows allow you to highlight and type notes into PDF files. The pdf readers that I've seen for Linux only allow you to read pdfs. Are there any that allow you to highlight text and add notes?
I believe this to be a gnome issue because it happens on both my Ubuntu 10.04 systems and my Fedora 12 system. What is happing is that it auto copies any text that I highlight, in any app, so, for example, if I highlight a URL on a web site, copy it, then highlight the URL in the address bar and paste it, it will have auto copied the URL that was already in the address bar overwriting the one I just copied of the web site. This is starting to drive me nuts.
I find it annoying that to highlight a text field such as in Chrome or Firefox (i.e. the address field), it requires triple-clicking the box. In Windows those same programs will highlight the text with just a double-click.
I have my general ubuntu 'clicking' set at single-click so that if I want to run a program from a desktop icon I just click on it once. But is there a way to change the triple-clicking? Like I say, I've noticed it most in web browsers.
I'm looking for a simple text editor which could highlight all occurrences of search term in the opened text file. This is a feature that I particularly like in the Windows Notepad++ editor where any selected word is automatically highlighted in the rest of the document.
I want to know some PDF program for Ubuntu 10.10 so that I can highlight text with different colors as I read it and so that I can save it as intact as highlighted so that I will not have to rehighlight the same thing again and again when I open it. I have tried may softwares including the foxit pdf reader that has got the highlighting the text in windows version which is of course free of cost. But I didn't find it in the Ubuntu based Foxit reader version.
I noticed a few minutes ago that although I can open the Places and System menus fine, when I click on Applications it highlights but no drop down menu appears beneath it as usual, and when I right click and select Edit Menus also nothing happens.
I have since restarted which did not resolve the issue.
How can I remedy this, and what could have caused the problem to begin with?
In GNOME there's an option to highlight your mouse when you press CTRL so that it's easier to find. That's a great function for me, because I work with several screens simultaneously. I really like KDE; does anybody know how to do the same thing in KDE or at least something similar? I haven't been able to find anything in Google.
when I use e. g. cat file.txt | grep --color=tty "pattern" I get the pattern I search highlighted. When I want some more context around each hit, grep has the -A, -B and -C parameters. However, I want to display the whole file (or whatever command output) and highlight a certain pattern. Does such a highlight command or tool exist?
It's one of the features I always talk up to people I try to get to try Linux. I upgraded to Natty today and other than not super appreciating the inclusion of a default boot into Unity, I can't get the simple "highlight + click both touchpad buttons" to copy and paste between any application let alone within the same application. I have searched and searched for info on this. Nothing pops up. I've scanned the compiz settings. I just cannot figure this out.
I just noticed that highlighting text and middle button clicking no longer copies and pastes as it has it has been for years. I haven't upgraded anything or installed any new software so this is a bit confusing for me. How I may restore this function? BTW, it doesn't work anywhere, terminal, firefox, etc. For clarity, the mouse itself works, I can point, click, etc... it is just the copy/paste function that has failed -disappeared- Using Suse and KDE desktop
When I highlight a word then delete it, the word is erased as expected. But when I highlight a word and begin typing a word to replace it (instead of deleting or hitting backspace), the first letter of the unwanted word does not erase... so I am required to watch my text very closely when editing.
For example: I'll type the word "fungus" and then highlight it and type the replacement word "mold" and when I look at the text, the word is "fmold". Am I the only one with this odd situation?
Is it possible to change the highlight colour of selected text when OOo Writer 3.1.1 is running under Xfce 4.6.1?
After using "Find and Replace" to search for and select text, the default pale blue used since 3.1 does not stand out clearly against a white background. This is particularly problematic for short search strings and for search targets found in the Table of Contents (blue text on grey background).
According to Robert Tucker in the OOo Forum thread "On Gnome on Fedora the background of selected text can definitely be changed at System>Preferences>Appearance, Theme Tab, Customize button, Selected items button". I cannot find any equivalent in Xfce; can it be done?
I'm trying to highlight some key words as tailing a log file using a perl script; about my case: I want to search for a keyworrs just once and highligt all occurrence of them. I want just highlit the keywords but not the whole line but the problems are that perl just catches the first keyword in a line and skip checking for other occurrence. for example if a line like "Error: some exception happen, Unable to process" it just highlight the error and do not process the remain part of the line where it should hilight the word "exception" and "Unable"
2-How can I do some action if for exapmle at least 4 time "unable" message appear ( not just in one line but diffrent line)in below is how I use perl search and replace : Code: s/(?:(unable|exception|warning))/e[1;31$&.......
Is there a software that can capture a rectangle on the screen defined by a mouse click and drag in which the content is saved the buffer somewhere in png format and then I can cut and paste it to openoffice in one step ? This way I don't have to use a screencapture the whole screen and then pop up imagemagic and then crop the image, save it and read it from openoffice.
Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.