Re: inserting backticks

2006-10-26 Thread Alexander 'boesi' Bösecke
Hi Am 26.10.2006 05:08:33 schrieb Benji Fisher: If you want someone to try to reproduce the problem, we need more information. Where did you get your copy of vim; or, if you compiled yourself, how did you do it? (In the first case, please give a link to the download site. In the

Re: inserting backticks

2006-10-26 Thread A.J.Mechelynck
Alexander 'boesi' Bösecke wrote: [...] From gvim --help -u vimrc Use vimrc instead of any .vimrc -U gvimrc Use gvimrc instead of any .gvimrc [...] Yes, but -u NONE means: no vimrc, no gvimrc, and no plugins (but viminfo will still be used if you have 'nocompatible') -u NORC means:

Re: Binary files, noeol, and other such things.

2006-10-26 Thread Vigil
On Tue, 24 Oct 2006, Aaron wrote: [61 lines snipped] Sorry for the long lines and top-posting in my earlier correspondence! I prefer that to the crime that you just commited with THAT post! -- .

Re: Binary files, noeol, and other such things.

2006-10-26 Thread Vigil
On Tue, 24 Oct 2006, Aaron wrote: Then it's no surprise that Windows text editors follow the theoretical and probably broken approach, while the Unix ones do things the way they've always been done. It's not just MSWin editors - ZDE, Eclipse, and Scite are all broken in this way (although

Re: inserting backticks

2006-10-26 Thread Alexander 'boesi' Bösecke
Hi Am 26.10.2006 09:31:51 schrieb Alexander 'boesi' Bösecke: Well something with the version on www.vim.org is wrong ... at least in combination with my system/configuration. I've just discovered, that ^ and ´ behave the same way with the orginal gvim 7.0. So it's maybe a generel problem of

Re: chasing symlink

2006-10-26 Thread Charles E Campbell Jr
Yakov Lerner wrote: Let's say I edit file x (vim x) which is a symlink, x-y. (Linux). How can I make a script that opens y instead of x in the buffer (chases the symlinks and opens it) I guess I don't understand exactly what you're doing here. Let me explain: echo junk1 file1 ln -s file1

Re: Terminating search in function

2006-10-26 Thread Charles E Campbell Jr
Meino Christian Cramer wrote: I wrote this snippet: fun! Ffunchdr() let date = strftime( %F ) put='/*-*/' put='/**' put=' *

BUG that will cause loss of edited text

2006-10-26 Thread Yongwei Wu
Hi Bram and maintainers, I encountered this bug when editing files: 1) Open a file, change something. The file is marked as modifed. 2) Use Ctrl-W,Ctrl-] to go to the definition of any symbol in a new window. The newly opened file is unmodified, and the old one is still modified. 3) Use Ctrl-T

RE: Need to write a language

2006-10-26 Thread Billy Patton
Thanks, eveything soundes goo so far. I'll just have to determine if I can create the language for more of the difficult rules -Original Message- From: Peter Hodge [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 6:04 PM To: Billy Patton; vim@vim.org Subject: Re: Need to

Re: BUG that will cause loss of edited text

2006-10-26 Thread Yegappan Lakshmanan
Hi, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram and maintainers, I encountered this bug when editing files: 1) Open a file, change something. The file is marked as modifed. 2) Use Ctrl-W,Ctrl-] to go to the definition of any symbol in a new window. The newly opened file is

Re: BUG that will cause loss of edited text

2006-10-26 Thread Yongwei Wu
Hi Yegappan, On 10/26/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram and maintainers, I encountered this bug when editing files: 1) Open a file, change something. The file is marked as modifed. 2) Use Ctrl-W,Ctrl-] to go to

Re: chasing symlink

2006-10-26 Thread Yegappan Lakshmanan
Hi Yakov, On 10/20/06, Yakov Lerner [EMAIL PROTECTED] wrote: Let's say I edit file x (vim x) which is a symlink, x-y. (Linux). How can I make a script that opens y instead of x in the buffer (chases the symlinks and opens it) You can try using the resolve() Vim function to resolve the

Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread Hugh Sasse
If one searches for code that writes code OR programs that write programs AND vim, one can turn up a number of references to this kind of activity. Dynamic languages are often more concise than those with static typing, and while I don't want to get into the debate on which is better, sometimes

Re: chasing symlink

2006-10-26 Thread Yakov Lerner
On 10/26/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi Yakov, On 10/20/06, Yakov Lerner [EMAIL PROTECTED] wrote: Let's say I edit file x (vim x) which is a symlink, x-y. (Linux). How can I make a script that opens y instead of x in the buffer (chases the symlinks and opens it) You

Re: BUG that will cause loss of edited text

2006-10-26 Thread Yongwei Wu
Hi list, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Yegappan, On 10/26/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram and maintainers, I encountered this bug when editing files: 1) Open a file, change

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread Tim Chase
those with static typing, and while I don't want to get into the debate on which is better, sometimes it makes sense to use a dynamic language to generate code in a statically typed language. It's like asking whether a hammer or a screwdriver is better. Both are suited well to particular

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread Hugh Sasse
On Thu, 26 Oct 2006, Tim Chase wrote: those with static typing, and while I don't want to get into the debate on which is better, sometimes it makes sense to use a dynamic language to generate code in a statically typed language. It's like asking whether a hammer or a screwdriver is

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread David S .
Hugh Sasse hgs at dmu.ac.uk writes: So, we run into a problem: how does one syntax highlight mixed language code? This works well for me, but needs delimters to indicate the appropriate syntax. http://www.vim.org/tips/tip.php?tip_id=856 So in my Python code, for example, I might have: ...

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread A. S. Budden
On 26/10/06, Hugh Sasse [EMAIL PROTECTED] wrote: [snip] So, we run into a problem: how does one syntax highlight mixed language code? [snip] I don't know whether this is of any use, but I have often found situations where I need to embed code from one language in the comments of another. For

Re: has('unix')

2006-10-26 Thread Martin Krischik
Am Mittwoch, 25. Oktober 2006 18:12 schrieb Tim Chase: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem: there is only has('unix') - but that's not good enough

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread Hugh Sasse
On Thu, 26 Oct 2006, David S. wrote: Hugh Sasse hgs at dmu.ac.uk writes: So, we run into a problem: how does one syntax highlight mixed language code? This works well for me, but needs delimters to indicate the appropriate syntax. http://www.vim.org/tips/tip.php?tip_id=856 So

Re: has('unix')

2006-10-26 Thread Tim Chase
for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added [cut] sure it would - but it also means calling an external program at startup. Well, if all else fails... Well, additionally, the 'guifont' option can take a

Re: display underline when searching

2006-10-26 Thread Fabian Braennstroem
Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06,

Re: inserting backticks

2006-10-26 Thread A.J.Mechelynck
Alexander 'boesi' Bösecke wrote: Hi Am 26.10.2006 09:31:51 schrieb Alexander 'boesi' Bösecke: Well something with the version on www.vim.org is wrong ... at least in combination with my system/configuration. I've just discovered, that ^ and ´ behave the same way with the orginal gvim 7.0.

Re: has('unix')

2006-10-26 Thread Gary Johnson
On 2006-10-25, Martin Krischik [EMAIL PROTECTED] wrote: Am Mittwoch, 25. Oktober 2006 18:12 schrieb Tim Chase: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem:

Re: has('unix')

2006-10-26 Thread A.J.Mechelynck
Tim Chase wrote: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added [cut] sure it would - but it also means calling an external program at startup. Well, if all else fails... Well, additionally, the 'guifont' option

Re: [2] has('unix')

2006-10-26 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Tim Chase wrote: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added [cut] sure it would - but it also means calling an external program at startup. Well, if all else fails... Well,

Re: Need to write a language

2006-10-26 Thread A.J.Mechelynck
Peter Hodge wrote: [...] Hello, As well as completing words, it would be very helpful if you wrote a syntax file for your language. If your users see things in color, they can be sure they have typed the commands correctly, but if the text is *not* colored, then ...or if it is highlighted as

Re: getchar() trick with recursive expr map

2006-10-26 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Wed, 25 Oct 2006 at 11:33pm, Mikolaj Machowski wrote: On ¶ro pa¼ 25 2006, Mikolaj Machowski wrote: In Linux terminal and GTK2 versions cursor is stuck in command line and don't at its real position making inserting of text almost random. Getting stuck at

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread Hugh Sasse
On Thu, 26 Oct 2006, A. S. Budden wrote: On 26/10/06, Hugh Sasse [EMAIL PROTECTED] wrote: [snip] So, we run into a problem: how does one syntax highlight mixed language code? [snip] I don't know whether this is of any use, but I have often found situations where I need to embed code

Re: BUG that will cause loss of edited text

2006-10-26 Thread A.J.Mechelynck
Yongwei Wu wrote: Hi list, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Yegappan, On 10/26/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi, On 10/26/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram and maintainers, I encountered this bug when editing files: 1) Open a

Re: Metaprogramming, mixed languages, and Vim.

2006-10-26 Thread A.J.Mechelynck
Hugh Sasse wrote: On Thu, 26 Oct 2006, A. S. Budden wrote: On 26/10/06, Hugh Sasse [EMAIL PROTECTED] wrote: [snip] So, we run into a problem: how does one syntax highlight mixed language code? [snip] I don't know whether this is of any use, but I have often found situations where I need to

Re: has('unix')

2006-10-26 Thread Yakov Lerner
On 10/25/06, Martin Krischik [EMAIL PROTECTED] wrote: Am Mittwoch, 25. Oktober 2006 18:12 schrieb Tim Chase: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem:

gf question

2006-10-26 Thread Ben K.
Vimmers, I find gf very convenient, but with shell scripts, I'd like a different behavior: In shell scripts, there should be no spaces around =. progname=/usr/local/txserver Then if I do gf on /usr/local/txserver, vim thinks the whole line (including progname=) is the pathname and gives

Re: gf question

2006-10-26 Thread Russell Bateman
I don't seem to have this problem when I code because I would tend to code your line thus: progname=/usr/local/txserver Russ Ben K. wrote: Vimmers, I find gf very convenient, but with shell scripts, I'd like a different behavior: In shell scripts, there should be no spaces around =.

Re: has('unix')

2006-10-26 Thread Yegappan Lakshmanan
Hi Martin, On 10/25/06, Martin Krischik [EMAIL PROTECTED] wrote: Am Mittwoch, 25. Oktober 2006 18:12 schrieb Tim Chase: for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little