Compiling trick for ruby 1.8.6 - win32 vim using gcc

2008-12-24 Thread Anton Sharonov
Hallo all, Not sure it is worst posting, but just in case it will be useful for somebody else... Using _very_ good build howto from Tony page [1], I have got the error [3] by trying to build with ruby 1.8.6. It seems that ruby guys can't imagine their *.h files will be parsed with something othe

Re: Compiling trick for ruby 1.8.6 - win32 vim using gcc

2008-12-24 Thread Tony Mechelynck
On 24/12/08 09:21, Anton Sharonov wrote: > Hallo all, > > Not sure it is worst posting, but just in case it will be useful > for somebody else... > > Using _very_ good build howto from Tony page [1], I have got the > error [3] by trying to build with ruby 1.8.6. It seems that ruby > guys can't ima

Re: Compiling trick for ruby 1.8.6 - win32 vim using gcc

2008-12-24 Thread Anton Sharonov
> Did you get that Ruby package from the site linked to on my > HowTo page? Yes, I did. Hmm, and now I know why I have downloaded 1.8.6 version, although the actual stable ruby version is 1.8.7. It is because I was initially redirected to the German download page: http://www.ruby-lang.org/de/do

Re: Indent with tabs, align with spaces

2008-12-24 Thread Teemu Likonen
bill lam (2008-12-24 13:28 +0800) wrote: > On Tue, 23 Dec 2008, Tony Mechelynck wrote: >> See >> :help ftplugins >> :help filetype-plugins > > I think that OP does not satisfy with these plugins. I would really > use language specific pretty print program to do that job. The GNU "inden

Re: Compiling trick for ruby 1.8.6 - win32 vim using gcc

2008-12-24 Thread Tony Mechelynck
On 24/12/08 11:02, Anton Sharonov wrote: >> Did you get that Ruby package from the site linked to on my >> HowTo page? > > Yes, I did. [...] OK, I've uploaded a new version. What do you think of it? Best regards, Tony. -- Grelb's Reminder: Eighty percent of all people consider themselv

Re: Compiling trick for ruby 1.8.6 - win32 vim using gcc

2008-12-24 Thread Anton Sharonov
> OK, I've uploaded a new version. What do you think of it? In my humble opinion, now it is perfect :) -- Anton 2008/12/24, Tony Mechelynck : > > On 24/12/08 11:02, Anton Sharonov wrote: >>> Did you get that Ruby package from the site linked to on my >>> HowTo page? >> >> Yes, I did. > [...] >

Re: Indent with tabs, align with spaces

2008-12-24 Thread Antony Scriven
2008/12/24 Matt Wozniski : > On Tue, Dec 23, 2008 at 11:26 PM, Tony Mechelynck wrote: > > > > On 24/12/08 01:04, Oliver Zheng wrote: > > > > > > So it seems like there is no feature available. > > > I guess I'll request this feature on vim.org. > > > > It's hard for Vim to guess that in

Re: Indent with tabs, align with spaces

2008-12-24 Thread Richard Hartmann
On Wed, Dec 24, 2008 at 05:12, Tony Mechelynck wrote: > Don't. I use ":set list lcs=tab:\|_,eol:¶,nbsp:~" (and, in the light of > another thread, I don't forget to set 'encoding' to UTF-8 first, not > afterwards, if the locale is something else). if &encoding == "utf-8" set listchars=eol:$,t

Re: Indent with tabs, align with spaces

2008-12-24 Thread Richard Hartmann
On Wed, Dec 24, 2008 at 06:17, Matt Wozniski wrote: > Which is still a far cry away from properly using tabs for indenting > blocks and spaces for aligning code automatically. Like I said > before, vim just isn't capable of doing the right thing here, and > changing that would require making a

Re: Indent with tabs, align with spaces

2008-12-24 Thread Sir Robert Burbridge
Max Waterman wrote: > I feel the need to make my tuppence worth...so I'm gonna : > > I'm curious how the distinction between 'indent' and 'alignment' has > been made. I see them as exactly the same thing; as English words, I > mean. It's obvious from the diagram above what is meant, but the pu

Where recorded macro are saved?

2008-12-24 Thread Шкоденко Тарас
I`m using GVim and Vim under Linux and GVim under Windows. I have several recorded macro to some registers. For example a: qa ... q, then I`m using @a to play it. But how can I move saved macro from one OS to another? Where do they saved on Linux (GVim and Vim) and on Windows (GVim) then I`m quiti

RE: Indent with tabs, align with spaces

2008-12-24 Thread Gene Kwiecinski
>>>It's hard for Vim to guess that in >>> >>> if (a == b && >>> c == d && >>> e == f) >>> >>>you want c aligned with a (and not, let's say, one >>>level of indent further than the "if"). >This is verging on the autistic. The main probl

Re: Indent with tabs, align with spaces

2008-12-24 Thread Matt Wozniski
On Wed, Dec 24, 2008 at 6:25 AM, Antony Scriven wrote: > > On Wed, Dec 24, 2008 at 12:17 AM, Matt Wozniski wrote: > >> On Tue, Dec 23, 2008 at 11:26 PM, Tony Mechelynck wrote: >> >>> However, as others have repeatedly said, with ":set >>> autoindent copyindent" (and maybe 'preserveindent' but >>>

Re: Indent with tabs, align with spaces

2008-12-24 Thread nico
On Dec 23, 6:57 pm, Max Waterman wrote: > I would like to be able to make use of a real compiler in order to do > this kind of code parsing. I'm told that the gcc people, for example, > aren't really interested in doing this. It looks like the llvm people are trying to do it. http://clang.llvm.

Re: Indent with tabs, align with spaces

2008-12-24 Thread Tony Mechelynck
On 24/12/08 15:45, Richard Hartmann wrote: > On Wed, Dec 24, 2008 at 05:12, Tony Mechelynck > wrote: > >> Don't. I use ":set list lcs=tab:\|_,eol:¶,nbsp:~" (and, in the light of >> another thread, I don't forget to set 'encoding' to UTF-8 first, not >> afterwards, if the locale is something else

Re: Where recorded macro are saved?

2008-12-24 Thread Tony Mechelynck
On 24/12/08 12:02, Шкоденко Тарас wrote: > I`m using GVim and Vim under Linux and GVim under Windows. > I have several recorded macro to some registers. > For example a: qa ... q, then I`m using @a to play it. > But how can I move saved macro from one OS to another? > Where do they saved on Linux

Re: Indent with tabs, align with spaces

2008-12-24 Thread pansz
Teemu Likonen 写道: > The GNU "indent" utility seems to be full-featured tool for indenting C > code. So if gg=G does not do what user wants then maybe > > :%!indent --preferred-indent-style-and-options > > will. That is not going to work for someone who insists hard tabs should be used in s

Re: Indent with tabs, align with spaces

2008-12-24 Thread Max Waterman
Sir Robert Burbridge wrote: > > Max Waterman wrote: > >> I feel the need to make my tuppence worth...so I'm gonna : >> >> I'm curious how the distinction between 'indent' and 'alignment' has >> been made. I see them as exactly the same thing; as English words, I >> mean. It's obvious from the

Re: Indent with tabs, align with spaces

2008-12-24 Thread Max Waterman
Max Waterman wrote: > Sir Robert Burbridge wrote: >> Max Waterman wrote: >> >>> I feel the need to make my tuppence worth...so I'm gonna : >>> >>> I'm curious how the distinction between 'indent' and 'alignment' has >>> been made. I see them as exactly the same thing; as English words, I >>> m

Re: Indent with tabs, align with spaces

2008-12-24 Thread Max Waterman
nico wrote: > On Dec 23, 6:57 pm, Max Waterman > wrote: > > >> I would like to be able to make use of a real compiler in order to do >> this kind of code parsing. I'm told that the gcc people, for example, >> aren't really interested in doing this. >> > > It looks like the llvm people are

Re: Indent with tabs, align with spaces

2008-12-24 Thread Matt Wozniski
On Wed, Dec 24, 2008 at 9:24 PM, Max Waterman wrote: > This leads me to think that the person requesting this feature should use > tabs and not spaces, and put a tab in the middle of the text to which he > wishes to align. > > if (thisIsTrue ) { > DoThis(); > } > > ...or something like that. > > O

Re: Indent with tabs, align with spaces

2008-12-24 Thread pansz
Matt Wozniski 写道: > Assuming this indent/alignment style is used, you could get code that > looked like this: Let's add something more, okay? > int main() { > .---int returnval = 5; /* This is the value that I will return. > .--- It's nonzero, which means failure.

Re: Indent with tabs, align with spaces

2008-12-24 Thread Max Waterman
Matt Wozniski wrote: > On Wed, Dec 24, 2008 at 9:24 PM, Max Waterman wrote: > >> This leads me to think that the person requesting this feature should use >> tabs and not spaces, and put a tab in the middle of the text to which he >> wishes to align. >> >> if (thisIsTrue ) { >> DoThis(); >> } >>

Re: Indent with tabs, align with spaces

2008-12-24 Thread Tony Mechelynck
On 25/12/08 03:24, Max Waterman wrote: [...] > Of course, the flexibility to do what is asked/wanted would be nice, but > I don't consider this particular case as being something that *should* > be done because it's *the right way*. On the contrary, IMO, it's more a > side case that is *the wrong

Re: Indent with tabs, align with spaces

2008-12-24 Thread Max Waterman
Tony Mechelynck wrote: > On 25/12/08 03:24, Max Waterman wrote: > [...] > >> Of course, the flexibility to do what is asked/wanted would be nice, but >> I don't consider this particular case as being something that *should* >> be done because it's *the right way*. On the contrary, IMO, it's more

Re: Indent with tabs, align with spaces

2008-12-24 Thread Matt Wozniski
On Wed, Dec 24, 2008 at 11:43 PM, pansz wrote: > > Matt Wozniski 写道: >> Assuming this indent/alignment style is used, you could get code that >> looked like this: > > Let's add something more, okay? ... > The comment will not get aligned after you changed the tab size. mixed > tab and spaces does n