Re: :cgetexpr ignores 'errorformat'?

2011-05-10 Thread H Xu
On 05/10/2011 11:43 PM, Bram Moolenaar wrote: Hong Xu wrote: I was testing under windows with MinGW. Here is a C source file: #include int main(void) { eturn 0; } It includes a syntax error. I use the following commands to compile it: :compiler gcc :set makeprg=gcc :mak % I got t

Re: Creating .c files with preloaded content

2011-05-10 Thread Ben Fritz
On May 10, 12:36 pm, Nikunj Badjatya wrote: > Hi Members, > > I have recently started to use VIM as my text editor. And I am amazed at its > capabilities. > I have a question to you all. > I wanted to have a functionality such that whenever a new file with ".c" > extention is created. It should

Re: cscope quickfix scan

2011-05-10 Thread Ben Schmidt
On May 9, 3:43 pm, sinbadwrote: i am using cscope quickfix. from the quickfix results i want to browse thru the entries whose filename or file path matches a specific pattern how can i achieve this. Do you want to eliminate non-matching entries from the list, or just not switch to them? j

Creating .c files with preloaded content

2011-05-10 Thread Nikunj Badjatya
Hi Members, I have recently started to use VIM as my text editor. And I am amazed at its capabilities. I have a question to you all. I wanted to have a functionality such that whenever a new file with ".c" extention is created. It should automatically be loaded with some pre known content. ex. Whe

Re: search lines without a pattern

2011-05-10 Thread Brice Boyer
2011/5/10 cyboman > does anybody know how to do search of lines that don't contain a > pattern: > > /pattern > > searches for a occurrence of a pattern, but i need a way to search for > lines that don't have a pattern. > > please click reply to author when replying this thread. > > any help is ap

Re: search lines without a pattern

2011-05-10 Thread Taylor Hedberg
Vim's `/` command doesn't search for lines containing a pattern; it searches for specific matches of a pattern. It is character-wise rather than linewise. If you just want to find lines that don't match a particular pattern, the easiest way it to just use grep, if you are on a system that has a gre

Re: Escaping spaces for bold in set guifont

2011-05-10 Thread Tim Johnson
* Tim Johnson [110509 17:49]: > Using 7.2, Huge version with GTK2-GNOME GUI > OS=ubuntu 10.04 > > If I issue the following ex command > set guifont=Monospace\ 9 > I get the font setting as expected. > > If I issue the following ex command > set guifont=Monospace\ 9\ bold > I get a font type tha

Re: search lines without a pattern

2011-05-10 Thread Tim Chase
On 05/10/2011 11:51 AM, cyboman wrote: does anybody know how to do search of lines that don't contain a pattern: /pattern searches for a occurrence of a pattern, but i need a way to search for lines that don't have a pattern. You can use /^\%(\%(pattern\)\@!.\)*$ or if you're performing a

Re: Standard way to undo plugin mappings?

2011-05-10 Thread sc
On Tuesday, May 10, 2011 09:27:21 Nathan Neff wrote: > I'm using a plugin (BufExplorer) that maps be, > bs, etc. The BufKill > plugin also maps quite a few things to bX > I want b only (no other bX mappings) so that > there's no delay when I type b. > What's the best way to unmap or turn off th

Re: Standard way to undo plugin mappings?

2011-05-10 Thread Gary Johnson
On 2011-05-10, ZyX wrote: > Reply to message «Re: Standard way to undo plugin mappings?», > sent 19:49:10 10 May 2011, Tuesday > by Gary Johnson: > > > if strlen(maparg("}", "i")) > if !empty(...) > > > if strlen(maparg("}", "i")) > > iunmap } > > endif > silent! iunmap } >

search lines without a pattern

2011-05-10 Thread cyboman
does anybody know how to do search of lines that don't contain a pattern: /pattern searches for a occurrence of a pattern, but i need a way to search for lines that don't have a pattern. please click reply to author when replying this thread. any help is appreciated. -- You received this mess

Re: Standard way to undo plugin mappings?

2011-05-10 Thread ZyX
Reply to message «Re: Standard way to undo plugin mappings?», sent 19:49:10 10 May 2011, Tuesday by Gary Johnson: > if strlen(maparg("}", "i")) if !empty(...) > if strlen(maparg("}", "i")) > iunmap } > endif silent! iunmap } > if strlen(maparg("}", "i")) > iunmap

Re: Standard way to undo plugin mappings?

2011-05-10 Thread Gary Johnson
On 2011-05-10, Nathan Neff wrote: > I'm using a plugin (BufExplorer) that maps be, bs, > etc. The BufKill > plugin also maps quite a few things to bX > > I want b only (no other bX mappings) so that there's no delay > when I type b. > > What's the best way to unmap or turn off these mappings? >

Re: Standard way to undo plugin mappings?

2011-05-10 Thread Ben Fritz
On May 10, 9:27 am, Nathan Neff wrote: > What's the best way to unmap or turn off these mappings? > > I've looked for a switch or options in BufExplorer to turn off these > mappings, but there is none. > This would be the best way, but if it's not available, then... > I realize that I can comm

Re: preview window with custom message

2011-05-10 Thread Ben Fritz
On May 9, 4:38 am, Venu Gopal wrote: > Hi, > I would like to know how to add a custom message to preview window. > My requirement is as follows > 1) When I keep a cursor on a word and press F4. It should open a preview > window and show some message related to that word. That i've in a > diction

Re: 3d1a3aa0240c (v7-3-186) fails to build

2011-05-10 Thread Christian Ebert
[This message has also been posted.] * Bram Moolenaar on Tuesday, May 10, 2011: > Christian Ebert wrote: >> Undefined symbols: >> "_adjust_clip_reg", referenced from: >> _normal_cmd in normal.o >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> make[1]: *** [vim] Error 1 >>

Re: :cgetexpr ignores 'errorformat'?

2011-05-10 Thread Bram Moolenaar
Hong Xu wrote: > I was testing under windows with MinGW. > > > Here is a C source file: > > #include > > int main(void) > { > > eturn 0; > } > > It includes a syntax error. I use the following commands to compile it: > > :compiler gcc > :set makeprg=gcc > :mak % > > I got the follow

Re: cscope quickfix scan

2011-05-10 Thread Ben Fritz
On May 10, 9:27 am, "Christian Brabandt" wrote: > On Tue, May 10, 2011 3:42 pm, sinbad wrote: > > just not switching to them will work for me too. i'm aware that there > > are functions like getqflist() to > > manipulate on the quickfix results. but i'm not too sure if i can > > update that list

Re: 3d1a3aa0240c (v7-3-186) fails to build

2011-05-10 Thread Bram Moolenaar
Christian Ebert wrote: > The latest change breaks compilation, at least here on Mac OS > 10.5.8: > > gcc -L/usr/local/lib -L/sw/lib -o vim objects/buffer.o objects/blowf= > ish.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o obj= > ects/eval.o objects/ex_cmds.o objects

Re: 3d1a3aa0240c (v7-3-186) fails to build

2011-05-10 Thread Taylor Hedberg
I can confirm that the same problem exists when building on Arch Linux: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/local/lib -Wl,--as-needed-o vim objects/buffer.o objects/blowfish.o objects/charset.o objects/diff.o objects/digraph.o o

3d1a3aa0240c (v7-3-186) fails to build

2011-05-10 Thread Christian Ebert
Hi, The latest change breaks compilation, at least here on Mac OS 10.5.8: gcc -L/usr/local/lib -L/sw/lib -o vim objects/buffer.o objects/blowfish.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o ob

:cgetexpr ignores 'errorformat'?

2011-05-10 Thread H Xu
Hello, I was testing under windows with MinGW. Here is a C source file: #include int main(void) { eturn 0; } It includes a syntax error. I use the following commands to compile it: :compiler gcc :set makeprg=gcc :mak % I got the following in my qflist: || ex.c: In function 'main': e

Re: cscope quickfix scan

2011-05-10 Thread Christian Brabandt
On Tue, May 10, 2011 3:42 pm, sinbad wrote: > just not switching to them will work for me too. i'm aware that there > are functions like getqflist() to > manipulate on the quickfix results. but i'm not too sure if i can > update that list. i thought there might > be some easier solutions that folks

Standard way to undo plugin mappings?

2011-05-10 Thread Nathan Neff
I'm using a plugin (BufExplorer) that maps be, bs, etc. The BufKill plugin also maps quite a few things to bX I want b only (no other bX mappings) so that there's no delay when I type b. What's the best way to unmap or turn off these mappings? I've looked for a switch or options in BufExplorer

Re: Hiding comments with conceal

2011-05-10 Thread David Fishburn
On 5/10/2011 8:35 AM, Raghavendra D Prabhu wrote: Hi, I have been looking for ways in which comments can be concealed and this behavior toggled when required. I am thinking of doing this with something like = syntax match matchComment "\v^\s

Re: cscope quickfix scan

2011-05-10 Thread sinbad
On May 10, 3:31 pm, Ben Schmidt wrote: > On 10/05/11 2:26 PM, sinbad wrote: > > > On May 9, 3:43 pm, sinbad  wrote: > >> i am using cscope quickfix. from the quickfix > >> results i want to browse thru the entries whose > >> filename or file path matches a specific pattern > >> how can i achieve

Re: script_id=3580 script page is broken.

2011-05-10 Thread Bram Moolenaar
Yukihiro Nakadaira wrote: > http://www.vim.org/scripts/script.php?script_id=3580 > This page is broken. spam? Yes, looks like link spam. Can someone remove it? -- hundred-and-one symptoms of being an internet addict: 77. The phone company asks you to test drive their new PBX system /// Bram

script_id=3580 script page is broken.

2011-05-10 Thread Yukihiro Nakadaira
http://www.vim.org/scripts/script.php?script_id=3580 This page is broken. spam? -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://w

Hiding comments with conceal

2011-05-10 Thread Raghavendra D Prabhu
Hi, I have been looking for ways in which comments can be concealed and this behavior toggled when required. I am thinking of doing this with something like = syntax match matchComment "\v^\s*#.*" conceal cchar=|| hi! link matchComme

How to run an external command in vim unbuffered?

2011-05-10 Thread H Xu
Hello, If I run a command like this: ":!somecommand | tee somefile", the command is run buffered, and it would be tough to see the result displayed on the screen if the output is long and it takes sometime for 'somecommand' to exit. Is there a way to run a command unbuffered inside vim? Tha

Re: preview window with custom message

2011-05-10 Thread Venu Gopal
Can someone help me with this? On Mon, May 9, 2011 at 3:08 PM, Venu Gopal wrote: > Hi, > I would like to know how to add a custom message to preview window. > My requirement is as follows > 1) When I keep a cursor on a word and press F4. It should open a preview > window and show some message re

Re: cscope quickfix scan

2011-05-10 Thread Ben Schmidt
On 10/05/11 2:26 PM, sinbad wrote: On May 9, 3:43 pm, sinbad wrote: i am using cscope quickfix. from the quickfix results i want to browse thru the entries whose filename or file path matches a specific pattern. how can i achieve this. Do you want to eliminate non-matching entries from the li

Re: How do define a default highlight for none-linked group?

2011-05-10 Thread Ben Schmidt
The same might happen to this message. At this stage in composition, Thunderbird is showing latin1 as the encoding; if it indeed goes out like that, this message can serve as another test case. Of course, it goes without saying that Groups broke with tradition and didn't mangle that one. Maybe o

Re: How do define a default highlight for none-linked group?

2011-05-10 Thread Bram Moolenaar
Ben Schmidt wrote: > >> The same might happen to this message. At this stage in composition, > >> Thunderbird is showing latin1 as the encoding; if it indeed goes out > >> like that, this message can serve as another test case. > > Of course, it goes without saying that Groups broke with traditi

Re: vim crashes without -D_FORTIFY_SOURCE=1 in Ubuntu 11.04

2011-05-10 Thread pansz
2011/5/10 Dominique Pellé : > Ubuntu for some reasons changed gcc to compile with > -D_FORTIFY_SOURCE=2 by default  since Ubuntu-8.10 I didn't realise that, I think the default should be _FORTIFY_SOURCE=0, and that's why I'm surprised that vim does not work with the default. > Vim was also compi