Re: weird highlighting when i edit java code

2011-12-29 Thread Taylor Hedberg
Rian Hunter, Thu 2011-12-29 @ 12:29:05-0800: > does vim do this for all languages similar to the currently edited > language by default? No, it doesn't. The Java/C++ case is the only one in which I've seen this behavior. Maybe there are others lurking in $VIMRUNTIME/syntax, but I haven't encounter

Re: weird highlighting when i edit java code

2011-12-29 Thread Rian Hunter
On Dec 29, 2011, at 10:21 AM, Tony Mechelynck wrote: >> if !exists("java_allow_cpp_keywords") >> syn keyword javaError auto delete extern friend inline redeclared >> syn keyword javaError register signed sizeof struct template typedef union >> syn keyword javaError unsigned operator >> endif >

Re: weird highlighting when i edit java code

2011-12-29 Thread Tony Mechelynck
[reordered to bottom-posting standards] On 29/12/11 17:19, Walkman wrote: On 2011.12.29., at 12:23, Rian Hunter wrote: hey all i seem to be getting weird behavior when editing java code and i'm not sure why. for some reason every time i have the word "register" in my source file it gets red

Re: mutt and vim playing together

2011-12-29 Thread Christian Brabandt
Hi Kai! On Do, 29 Dez 2011, Kai Weber wrote: > * Marc Weber : > > > > So everytime I edit a mail the first line and following manually inserted > > > blank > > > lines are highlighted. > > Why do you need this? > > Use syntax commands instead. > > Syntax highlighting is not what I look for. >

Re: set font style in Linux

2011-12-29 Thread Tony Mechelynck
On 29/12/11 11:47, Stanley Rice wrote: Hi all I am working on Linux (GNome) and I want to set the font in my vim in italic style. But I don't know how. In windows, the code could be: set guifont=fontname:h11:i where i stands for italic. But the code doesn't work on Linux, how could it be done i

Re: mutt and vim playing together

2011-12-29 Thread Kai Weber
* Tim Chase : > You could just issue a "noh" after your search: > > vim +'/^$/' -c'set hls' -c'noh' > > should do the trick (I don't have 'hls' set in my vimrc, so I added > it on the command-line to test). Yes it does! Thanks a lot. Did not know about "-c" until now. -- You received this mess

Re: mutt and vim playing together

2011-12-29 Thread sc
On Thursday, December 29, 2011 07:00:59 Kai Weber wrote: > Hi, > I use vim in combination with mutt. To start vim I have > following setting in my muttrc: [snip] > Any other recommendations for a good mail editing workflow? when i used mutt i liked having the flexibility of a mail script for vim

Re: mutt and vim playing together

2011-12-29 Thread Tim Chase
On 12/29/11 10:38, Dominique Pellé wrote: Tim Chase wrote: On 12/29/11 08:16, Kai Weber wrote: What I want to achieve is jumping to the first blank line where I can start typing my mail instantly. So I search for ^$ and vim jumps to the first occurrence (with the consequences I wrote in my fir

Re: mutt and vim playing together

2011-12-29 Thread Dominique Pellé
Tim Chase wrote: > On 12/29/11 08:16, Kai Weber wrote: >> >> * Marc Weber: >> So everytime I edit a mail the first line and following manually inserted blank lines are highlighted. >>> >>> Why do you need this? >>> Use syntax commands instead. >> >> >> Syntax highlighting is not wha

Re: weird highlighting when i edit java code

2011-12-29 Thread Walkman
"register word highlighted in vim" first hit in google: http://vim.1045645.n5.nabble.com/Why-is-quot-template-quot-highlighted-in-Java-code-td1169135.html Sent from my iPad On 2011.12.29., at 12:23, Rian Hunter wrote: > hey all > > i seem to be getting weird behavior when editing java code and

Re: weird highlighting when i edit java code

2011-12-29 Thread Taylor Hedberg
It's because, for some bizarre reason, the author of the Java syntax file that comes with Vim decided that all C++ keywords that aren't also Java keywords (e.g. `register`, `delete`, `virtual`, etc.) should be highlighted as errors in Java buffers. The only reason I can think of for doing that is t

Re: mutt and vim playing together

2011-12-29 Thread Tim Chase
On 12/29/11 08:16, Kai Weber wrote: * Marc Weber: So everytime I edit a mail the first line and following manually inserted blank lines are highlighted. Why do you need this? Use syntax commands instead. Syntax highlighting is not what I look for. What I want to achieve is jumping to the fi

weird highlighting when i edit java code

2011-12-29 Thread Rian Hunter
hey all i seem to be getting weird behavior when editing java code and i'm not sure why. for some reason every time i have the word "register" in my source file it gets red highlighting. i just started using vim so i thought this was an error but my code seems to compile correctly. i've googled

Re: mutt and vim playing together

2011-12-29 Thread Kai Weber
* Marc Weber : > > So everytime I edit a mail the first line and following manually inserted > > blank > > lines are highlighted. > Why do you need this? > Use syntax commands instead. Syntax highlighting is not what I look for. What I want to achieve is jumping to the first blank line where I

Re: mutt and vim playing together

2011-12-29 Thread Marc Weber
Excerpts from Kai Weber's message of Thu Dec 29 14:00:59 +0100 2011: > So everytime I edit a mail the first line and following manually inserted > blank > lines are highlighted. Why do you need this? Use syntax commands instead. Eg :syn match Error /The/ matches the characters The While hlsearc

mutt and vim playing together

2011-12-29 Thread Kai Weber
Hi, I use vim in combination with mutt. To start vim I have following setting in my muttrc: # use vim and skip to the first blank line set editor = "vim +:silent+/^$" In my vimrc I have set hlsearch So everytime I edit a mail the first line and following manually inserted blank lines are hi

Re: set font style in Linux

2011-12-29 Thread Christian Brabandt
Hi Stanley! On Do, 29 Dez 2011, Stanley Rice wrote: > Hi all > > I am working on Linux (GNome) and I want to set the font in my vim in > italic style. But I don't know how. In windows, the code could be: > set guifont=fontname:h11:i > where i stands for italic. > > But the code doesn't work on

set font style in Linux

2011-12-29 Thread Stanley Rice
Hi all I am working on Linux (GNome) and I want to set the font in my vim in italic style. But I don't know how. In windows, the code could be: set guifont=fontname:h11:i where i stands for italic. But the code doesn't work on Linux, how could it be done in Linux? Thanks. -- You received thi

Re: why is Vim coloring text in txt files?

2011-12-29 Thread Tony Mechelynck
On 29/12/11 06:46, wolfv wrote: [...] I created C:\Program Files (x86)\Vim\vimfiles\filetype.vim and copied the code that Tony posted on Dec 27, 12:55 into it. Its not my $HOME, but I am the sole user of this PC, so I guess that's OK. Everything works. It's the default $VIM location for your p