crash due to -fstack-protector false positive

2007-02-23 Thread Alexey I. Froloff
/* My free translation of * https://bugzilla.altlinux.org/show_bug.cgi?id=10911 */ i586-alt-linux-gcc (GCC) 4.1.1 20070105 (ALT Linux, build 4.1.1-alt11) glibc 2.5 (glibc-2_5-branch snapshot 20070112) Vim built with CFLAGS containing -fstack-protector (turned on by default in gcc). All Vim

Re: crash due to -fstack-protector false positive

2007-02-23 Thread Ali Akcaagac
On Fri, 2007-02-23 at 19:58 +0300, Alexey I. Froloff wrote: i586-alt-linux-gcc (GCC) 4.1.1 20070105 (ALT Linux, build 4.1.1-alt11) glibc 2.5 (glibc-2_5-branch snapshot 20070112) I think it's the stuff above where you need to look for bugs. GLIBC snapshot sounds unfinished and contains bugs to

Re: tips project

2007-02-23 Thread Kim Schulz
On Fri, 23 Feb 2007 06:32:28 +0200 Ali Polatel [EMAIL PROTECTED] wrote: There is one thing to mention about parsing tips. Are we going to put the additional comments to the wiki? There are many useful comments but there are also many useless junk. It would be _lots_ of work to look at

Re: add c/c++ snippets

2007-02-23 Thread Gavin Gilmour
Hi, I assume that you mean {CR? If so, I have a bunch of mappings that do just this: inoremap { {CR}C-OO With some bonus ones that you may either like or find incredibly annoying: inoremap [ []LEFT inoremap ( ()LEFT inoremap LEFT inoremap ' ''LEFT I'm undecided on the latter! Cheers,

Re: add c/c++ snippets

2007-02-23 Thread Alexey Vakhov
I mean If I press enter end next press { system should to understand that it is new block and add right bracket also. But if I press Enter and start line with another symbol system should do nothing. Thanks for :inoremap tip. It's useful ) 2007/2/23, Gavin Gilmour [EMAIL PROTECTED]: Hi, I

Re: Insert new blank line in normal mode

2007-02-23 Thread Tim Chase
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? AFAIK, there's no built-in command to do this in Vim. However,

Re: add c/c++ snippets

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 11:36:40AM +0300, Alexey Vakhov wrote: I mean If I press enter end next press { system should to understand that it is new block and add right bracket also. But if I press Enter and start line with another symbol system should do nothing. Thanks for :inoremap tip. It's

Re: Advanced highlighting (using ctags for example)

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 10:52:52AM +0300, Alexey Vakhov wrote: 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. Hi Alexey Thats possible. vim syntax highligthing is doing this. try :e

Re: Advanced highlighting (using ctags for example)

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 10:52:52AM +0300, Alexey Vakhov wrote: 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. Yet another idea: try c-x[ which does tag completion. Than you have a

Re: search something from vim in certain directory

2007-02-23 Thread Pavel Shevaev
:vimgrep pattern directory/**/*.h Just an aside question - is there anything alike for find replace in files? Something like :%s/../../g glob could be very helpful... Especially it would be great to see replaced stuff in quickfix window. -- Best regards, Pavel

Re: add c/c++ snippets

2007-02-23 Thread hermitte
Hello, Alexey Vakhov [EMAIL PROTECTED] wrote: 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? The simpliest way ? Well, it probably consists in using one of the numerous c or C++ ftplugins

Re: search something from vim in certain directory

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 04:26:50PM +0300, Pavel Shevaev wrote: :vimgrep pattern directory/**/*.h Just an aside question - is there anything alike for find replace in files? Something like :%s/../../g glob could be very helpful... Especially it would be great to see replaced stuff in

Re: Sorting a .bib file

2007-02-23 Thread Charles E Campbell Jr
Vincent Beffara wrote: 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 paper} } (note the '@' at the beginning of the first line

Re: tips project

2007-02-23 Thread Tom Purl
There is one thing to mention about parsing tips. Are we going to put the additional comments to the wiki? There are many useful comments but there are also many useless junk. It would be _lots_ of work to look at every comment and see if they're useful or not. What are your ideas?

Re: tips project

2007-02-23 Thread Swaroop C H
Ok everyone, the project's created: * http://code.google.com/p/vimtips/ I think there's a major disadvantage in using the code.google.com wiki - it only allows people who have been added to the project to edit the wiki via the web interface (please correct me if I'm wrong). At least if it

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Alexey Vakhov wrote: 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 IIUC

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
Yakov Lerner schrieb: On 2/20/07, Tim Chase [EMAIL PROTECTED] wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an

Re: tips project

2007-02-23 Thread Charles E Campbell Jr
Tom Purl wrote: There is one thing to mention about parsing tips. Are we going to put the additional comments to the wiki? There are many useful comments but there are also many useless junk. It would be _lots_ of work to look at every comment and see if they're useful or not. What are your

Re: Insert new blank line in normal mode

2007-02-23 Thread Kev
A.J.Mechelynck wrote: Alexey Vakhov wrote: 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?

Re: tips project

2007-02-23 Thread Tom Purl
Sorry for answering off list again, I can not post to the list. That's unfortunate. I'm happy to post this to the list. There is one thing to mention about parsing tips. Are we going to put the additional comments to the wiki? There are many useful comments but there are also many useless

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Kev wrote: A.J.Mechelynck wrote: Alexey Vakhov wrote: 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

VimTips - Google Wiki Usefulness

2007-02-23 Thread Tom Purl
I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a particular open source project. It is not designed to

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Yakov Lerner
On 2/23/07, Tom Purl [EMAIL PROTECTED] wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
A.J.Mechelynck wrote: [...] :command -bar -bang -range -nargs=* Iline \ if q-bang == '!' | line1put! =q-args | \ else | line2put =q-args | endif Best regards, Tony. The following is maybe easier to understand -- or maybe not: :command -nargs=0 -bar -bang -range -reg Put

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
A.J.Mechelynck schrieb: Andy Wokula wrote: There is another strange detail about c-gu In my vimrc I have (for gVim 6.4, gVim 7.0) :imap cr crc-gu Each u goes back one line of text in the undo history. Note the imap instead of inoremap. This way abbreviations still work. For the strange

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:00 PM, Brian McKee wrote: On 23-Feb-07, at 2:32 PM, Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it

Re: Insert new blank line in normal mode

2007-02-23 Thread Andy Wokula
A.J.Mechelynck schrieb: Alexey Vakhov wrote: 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?

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a particular open source project. It

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Yegappan Lakshmanan
Hi, On 2/23/07, Andy Wokula [EMAIL PROTECTED] wrote: In my vimrc I have (for gVim 6.4, gVim 7.0) :imap cr crc-gu Each u goes back one line of text in the undo history. Note the imap instead of inoremap. This way abbreviations still work. Does it say in the help that if a key is mapped

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Yakov Lerner wrote: [...] My opinion is that that wikipedia-style wiki is the best. It's scalable, it proved itself, i think it's easy on admins, afaik it's used not only by wikipedia. Regarding anonymous contributions, they proved problematic on vim.org/tips. Anonymous contrib was what created

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Brian McKee wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:00 PM, Brian McKee wrote: On 23-Feb-07, at 2:32 PM, Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Andy Wokula wrote: A.J.Mechelynck schrieb: Alexey Vakhov wrote: 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

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:55 PM, A.J.Mechelynck wrote: Waiting for email (with a pseudorandom confirmation code) proves that the registration wasn't requested in your name by someone else. It requires no human intervention server-side and only a few

different indenting for Ruby files

2007-02-23 Thread Jabba Laci
Hi, I always use 3 spaces for indenting. Now I started to learn Ruby, and the style guide says Ruby developers prefer 2 spaces. I just wonder how I could change the indenting just for *.rb files. Thanks, Laszlo

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Brian McKee wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:55 PM, A.J.Mechelynck wrote: Waiting for email (with a pseudorandom confirmation code) proves that the registration wasn't requested in your name by someone else. It requires no human intervention server-side

Re: different indenting for Ruby files

2007-02-23 Thread A.J.Mechelynck
Jabba Laci wrote: Hi, I always use 3 spaces for indenting. Now I started to learn Ruby, and the style guide says Ruby developers prefer 2 spaces. I just wonder how I could change the indenting just for *.rb files. Thanks, Laszlo see :help 'tabstop'

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
for_lists wrote: I guess I just don't get it. oesc - 2 key presses :put_enter - 6 key presses (8 if you count shift) Why is ':put_' or other variants easier? -Brian :put is an ex-command. I spoke of using oEsc at the keyboard, or :put ='' in a script. To use oesc in a *script*, you must use

Re: tips project

2007-02-23 Thread Bram Moolenaar
Tom Purl wrote: Ok everyone, the project's created: * http://code.google.com/p/vimtips/ I think there's a major disadvantage in using the code.google.com wiki - it only allows people who have been added to the project to edit the wiki via the web interface (please correct me if I'm

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread John Beckett
I like the concept of using the Google wiki. In addition to the Google is Good factor, there is the likelihood of very high reliability and zero cost. Also, it seems appropriate due to Bram's work. As has been pointed out, spam is a really big threat, and will get worse (more automated) every

Re: different indenting for Ruby files

2007-02-23 Thread A.J.Mechelynck
Simon Jackson wrote: # Method II (in the vimrc) # autocommand FileType ruby setlocal sts=2 et I tried this and i got: not an editor command Oops! s/autocommand/autocmd Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 60. As your car crashes through the

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Bram Moolenaar
John Beckett wrote: I like the concept of using the Google wiki. In addition to the Google is Good factor, there is the likelihood of very high reliability and zero cost. Also, it seems appropriate due to Bram's work. As has been pointed out, spam is a really big threat, and will get

Howto stop display of title, line # from a cntrl-G ?

2007-02-23 Thread Larry Alkoff
While learning vim 4.6.2 I typed a control-G to display the name of the file, number of lines and characters on the bottom. What is the command to get out of that mode? Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Linux