Re: Highlighting keywords from C libraries

2007-02-22 Thread Alexey I. Froloff
* Gautam Iyer gautam@ [070222 11:42]: Anyways, following suggestions from this thread I made the following modifications: Well, I'd also suggested to split it to many different files: syntax/c.vim syntax/c/ansi.vim syntax/c/susv3.vim syntax/c/xlib.vim ... with something like if

Re: Cannot run background process in gvim 7

2007-02-22 Thread Manu Hack
On 2/21/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: So? What exactly are you trying to do? How does it fail? Say for example, after editing the tex file I try to run :!xdvi %.dvi , then nothing happens, no errors. If I remove , I can open it. Basically I can run background process in vim,

syntax highlighting and very long lines vim7

2007-02-22 Thread Sam Halperin
I am trying to syntax highlight a file containing one very long line. (A machine generated chunk of ascii that needs to be visually checked when an error occurs.) The highlighting works up to about a screens worth of text (~2400 char), but stops highlighting well before the end of the line.

Re: syntax highlighting and very long lines vim7

2007-02-22 Thread Ilya Bobir
Sam Halperin wrote: I am trying to syntax highlight a file containing one very long line. (A machine generated chunk of ascii that needs to be visually checked when an error occurs.) The highlighting works up to about a screens worth of text (~2400 char), but stops highlighting well before

RE: Outdated page http://vim.sourceforge.net/download.php

2007-02-22 Thread Steve Hall
From: A.J.Mechelynck, Thu, February 22, 2007 4:08 pm Steve Hall has taken up the flame: his Vim-without-Cream distributions for W32, which are reasonably up-to-date (currently 7.0.191) can be found at https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 Hmm? /me

Re: Outdated page http://vim.sourceforge.net/download.php

2007-02-22 Thread Bram Moolenaar
Tony Mechelynck wrote: I was surprised to notice that the Vim download page http://vim.sourceforge.net/download.php still mentions my site as where to find patched W32 Vim binaries. The latest ones I built were 6.4 and 7.0aa versions, now long outdated. Steve Hall has taken up the flame:

Re: Highlighting keywords from C libraries

2007-02-22 Thread Bram Moolenaar
Gautam Iyer wrote: On Thu, Feb 22, 2007 at 01:47:07AM +0300, Alexey I. Froloff wrote: I find it useful to have standard functions and constants in C libraries highlighted. I attach syntax files for this purpose. Check out the std_c syntax, http://www.eandem.co.uk/mrw/vim/syntax/

Re: hlsearch on dark back ground

2007-02-22 Thread Pádraig Brady
Kamaraju S Kusumanchi wrote: consider $ cat file.c /* kamaraju * kamaraju * kamaraju */ kamaraju I use konsole with black background and white foreground on Debian Etch, vim 7.0.122 $ cat .vimrc set hls syn enable With this configuration, if I do set background=dark

Re: hlsearch on dark back ground

2007-02-22 Thread A.J.Mechelynck
Pádraig Brady wrote: [...] I don't see the issue. hls will just invert the fg bg colours. So if you can it fine unhighlighted, the invert should be OK too? Can you describe the colours you see (or better yet take a screenshot) I use vim on dark terminals exclusively and have tweaked things a

Re: hlsearch on dark back ground

2007-02-22 Thread Pádraig Brady
A.J.Mechelynck wrote: I think you're confusing 'hlsearch' with 'incsearch'. Yes I was sorry. I see the prob now. gray on brown is not easy to read. Pádraig.

codepage for vim 7 windows console

2007-02-22 Thread j.hofmann
Hello, I now use vim 7 for DOS batching in WinXP. If I use umlaut (äöüß) in vim 7, it is displayed correctly. But vim 7 saves the buffer using the Windows Codepage, like gvim does! The buffer content is the same when saved by gvim and vim. So I cannot i.e. correctly display (echo) text with

search something from vim in certain directory

2007-02-22 Thread Peng Yu
Hi, I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. I want to do the search in vim. And vim should give me a list of all the occurrences of the searched word. Then I can

RE: entering copied text into command mode?

2007-02-22 Thread Gene Kwiecinski
as a command, so I'd just 'v' the pathname to highlight it, control-insert it to yank it into the clipboard(?), then do :s@sh-ins@@g ie, use shift-insert to paste the path directly into the command. is that any help, or were you referring to something different? Unless I'm mistaken, these are

Re: Problem with opening files from UNC

2007-02-22 Thread Yakov Lerner
On 2/22/07, Thomas Michael Engelke [EMAIL PROTECTED] wrote: 2007/2/21, Yakov Lerner [EMAIL PROTECTED]: On 2/21/07, Thomas Michael Engelke [EMAIL PROTECTED] wrote: I'm using vim7 from my Total Commander under Windows XP with the following command line: vim70\gvim.exe --remote-tab-silent

Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 11:15]: I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. Well you can use an external grep from within vim. One advantage is that it's relatively

Re: search something from vim in certain directory

2007-02-22 Thread Ryan Phillips
Peng Yu [EMAIL PROTECTED] said: Hi, I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. I want to do the search in vim. And vim should give me a list of all the

Re: search something from vim in certain directory

2007-02-22 Thread Peng Yu
On 2/22/07, Jean-Rene David [EMAIL PROTECTED] wrote: * Peng Yu [2007.02.22 11:15]: I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. Well you can use an external grep

Re: restructured text syntax file problem

2007-02-22 Thread kib2
Alan G Isaac a écrit : Single character literals are not handled correctly: for example, ``x`` will product highlighting of the subsequent text. Cheers, Alan Isaac Hi Alan, Mine is havingno problem at all : see the screenshot here : h**p://kib2.free.fr/temp/reST.png

Re: search something from vim in certain directory

2007-02-22 Thread Jean-Rene David
* Peng Yu [2007.02.22 16:15]: I read the help. But I still don't see how to search in all the *.h and *.cc in a certain directory. Do I have to rely on the external command find? It would help if you told us what version of vim you use and what you tried. If you have vim 7, you can use:

Re: tips project

2007-02-22 Thread Ali Polatel
* Swaroop C H ([EMAIL PROTECTED]) wrote: could you please convert a few tips using your script and them post them on the wiki? I would love to see the final output. A heads up ... the script isn't working for other tips, I'll try to polish the script in the morning (well, it's 2 am here).

Re: codepage for vim 7 windows console

2007-02-22 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hello, I now use vim 7 for DOS batching in WinXP. If I use umlaut (äöüß) in vim 7, it is displayed correctly. But vim 7 saves the buffer using the Windows Codepage, like gvim does! The buffer content is the same when saved by gvim and vim. So I cannot i.e. correctly

Re[2]: restructured text syntax file problem

2007-02-22 Thread Alan G Isaac
Alan G Isaac a écrit : Single character literals are not handled correctly: for example, ``x`` will product highlighting of the subsequent text. On Thu, 22 Feb 2007, apparently wrote: Mine is havingno problem at all : see the screenshot here : h**p://kib2.free.fr/temp/reST.png I do

moving buffer changes to new file?

2007-02-22 Thread Lev Lvovsky
I often times rename a file that I'm working on after I realize (or am told ;) that renaming it is in order. Is there any way I can take the changes to that new file from the buffer along with the new name? thanks! -lev

Re: moving buffer changes to new file?

2007-02-22 Thread Alan G Isaac
On Thu, 22 Feb 2007, Lev Lvovsky apparently wrote: I often times rename a file that I'm working on after I realize (or am told ;) that renaming it is in order. Is there any way I can take the changes to that new file from the buffer along with the new name? :h :saveas hth, Alan Isaac

Re: restructured text syntax file problem

2007-02-22 Thread kib2
Alan G Isaac a écrit : I do not see a **single** character literal in that shot. Cheers, Alan Isaac You said for example :``x`` so I posted ``foobar`` witch is highlighted in red. Now, I've made another one : h**p://kib2.free.fr/temp/reST2.png Is this good ?

Re: search something from vim in certain directory

2007-02-22 Thread A.J.Mechelynck
Peng Yu wrote: On 2/22/07, Jean-Rene David [EMAIL PROTECTED] wrote: * Peng Yu [2007.02.22 11:15]: I have a C++ project in some dir say project or its subdir. Although I can use find and grep outside vim to search for any word in project. But this is not very convenient. Well you can use an

Re[2]: restructured text syntax file problem

2007-02-22 Thread Alan G Isaac
On Fri, 23 Feb 2007, apparently wrote: kib2.free.fr/temp/reST2.png No that does not do it. Copy this entire *line*: ``x`` is the problem. Cheers, Alan Isaac

Re: restructured text syntax file problem

2007-02-22 Thread kib2
Alan G Isaac a écrit : On Fri, 23 Feb 2007, apparently wrote: kib2.free.fr/temp/reST2.png No that does not do it. Copy this entire *line*: ``x`` is the problem. Cheers, Alan Isaac Ok Alan, I saw the problem now : confirmed. I'll try to look at the regexps when I find the time

Re: tips project

2007-02-22 Thread Swaroop C H
Fantastic! I pasted this as-is into the wiki and here are the results: * http://code.google.com/p/vimtips/wiki/1504_External_commands_on_Windows We need to replace the code tags with triple braces as a start. Also, we may want to add bullet points to the metadata fields. Here's a reference

Sorting a .bib file

2007-02-22 Thread Vincent Beffara
Dear list, First of all, this is a great mailing list ! I am learning lot. So here is my question. I have a bibliography in a .bib file, which (just in case) is just a plain text files containing entries that each look like this : @article{key, author = {Whatshisname, J.}, title = {My

scripts repository

2007-02-22 Thread Simon Jackson
in debian based linux distros, you can type the following.. apt-get install program ...and the system will download the appropriate files to install that program does vim offer anything like this? if not how hard would this be to implement?

Re: scripts repository

2007-02-22 Thread Swaroop C H
On 2/23/07, Simon Jackson [EMAIL PROTECTED] wrote: in debian based linux distros, you can type the following.. apt-get install program ...and the system will download the appropriate files to install that program does vim offer anything like this? if not how hard would this be to implement?

Re: Sorting a .bib file

2007-02-22 Thread A.J.Mechelynck
Vincent Beffara wrote: Dear list, First of all, this is a great mailing list ! I am learning lot. So here is my question. I have a bibliography in a .bib file, which (just in case) is just a plain text files containing entries that each look like this : @article{key, author =

Re: scripts repository

2007-02-22 Thread A.J.Mechelynck
Simon Jackson wrote: in debian based linux distros, you can type the following.. apt-get install program ...and the system will download the appropriate files to install that program does vim offer anything like this? if not how hard would this be to implement? IIUC, apt-get is a

Re: tips project

2007-02-22 Thread Tom Purl
I added your script to the project's SVN repository: * http://code.google.com/p/vimtips/source We now have a total number of *three* scripts that could possibly convert the tips. Thanks a ton to Dr. Chip, Swaroop, and Ali for contributing scripts! I really think that this should be enough

Re: Sorting a .bib file

2007-02-22 Thread Kazuo Teramoto
On 2/22/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: 1) add a sort key in front of each line For this I think is more fast and easily (but no so safe) to use global to remove the linebreaks and substiture it for something else like a ¬ and put the the key in front like Tony proposed and sort

Insert new blank line in normal mode

2007-02-22 Thread Alexey Vakhov
Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original commands for this tip? Thanks a lot -- Alexey Vakhov mailto:[EMAIL

add c/c++ snippets

2007-02-22 Thread Alexey Vakhov
Hi All, I want to add simple code snippets. For example if I press CR{ I want to extend this to { --- cursor } How can I make this by simplest way? Thanks. -- Alexey Vakhov mailto:[EMAIL PROTECTED]

Advanced highlighting (using ctags for example)

2007-02-22 Thread Alexey Vakhov
Hi All, One question more ) Can i highlight words using for example ctags file and highlight wrong identifier like Visual Assist in Visual Studio. Thanks. -- Alexey Vakhov mailto:[EMAIL PROTECTED]