Re: How to get value of ~ (last used replace-to string) in script

2007-05-21 Thread Yakov Lerner
On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde =

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-21 Thread Yakov Lerner
On 5/21/07, Steve Litt [EMAIL PROTECTED] wrote: On Sunday 20 May 2007 15:51, you wrote: On 5/20/07, Steve Litt [EMAIL PROTECTED] wrote: Hi all, I tried to compile graphical Vim 7.1 on Mandriva 2007. I downloaded vim-7.1.tar.bz2, untarred it, and did the following from the top level

Re: How to get value of ~ (last used replace-to string) in script

2007-05-21 Thread Antony Scriven
On 5/21/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick

Save as not responding

2007-05-21 Thread Smoldas Vladimir
Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open existing file it's works well...

Re: Save as not responding

2007-05-21 Thread A.J.Mechelynck
Smoldas Vladimir wrote: Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open

Re: Save as not responding

2007-05-21 Thread A.J.Mechelynck
Smoldas Vladimir wrote: Sorry I forgot to attach environment info: Vim 7.1 (2007 May 12,compiled May 12...) Windows XP SP2 But, I have installed this version today only.. I will try install the version you mentioned. Regards Vladimír Šmoldas The version I'm using is a Linux version; but for

[Fwd: RE: Save as not responding]

2007-05-21 Thread A.J.Mechelynck
Forward to list. Original Message Subject: RE: Save as not responding Date: Mon, 21 May 2007 11:33:17 +0200 From: Smoldas Vladimir [EMAIL PROTECTED] To: A.J.Mechelynck [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Fwd: RE: Save as not responding]

2007-05-21 Thread John Little
Hi Try explicitly setting the browsedir option to a directory before clicking save as ... For example, set browsedir=c:\ It may be that vim has remembered some now inaccessible place and is trying to display its contents. HTH

Re: Save as not responding

2007-05-21 Thread Robert Hicks
Smoldas Vladimir wrote: Hi, I have a problem to execute: browse confirm saveas (or save as from menu list) on new file (without name). Steps to simulate the problem: 1.Open gvim 2. Save as (browse confirm saveas) - gvim not responding for 5 minutes (than I killed him) But when I open

undo replace in multiple files

2007-05-21 Thread Yakov Lerner
Let's say I do multi-file replace like 'argdo %s/foo/bar/g', and I 'autowrite' and 'nohidden' options are set. So the argdo will replace and write files, because of 'autowrite' is on. My question is, is there any trick to do 'undo' after that that would undo all changed files in this situation ?

Re: undo replace in multiple files

2007-05-21 Thread Tim Chase
Let's say I do multi-file replace like 'argdo %s/foo/bar/g', and I 'autowrite' and 'nohidden' options are set. So the argdo will replace and write files, because of 'autowrite' is on. My question is, is there any trick to do 'undo' after that that would undo all changed files in this situation ?

Feature request! ftl.vim

2007-05-21 Thread Mathieu Malaterre
Hello there, could someone please add the freemarker syntax support in vim. The syntax file is here : http://freemarker.sourceforge.net/editors.html A couple of distro have started distributing ftl.vim on there own. Thanks ! -- Mathieu

Getting vimscripts

2007-05-21 Thread Robert Hicks
Is there a way to use wget or curl to get scripts off the Vim site? Robert

Re: Getting vimscripts

2007-05-21 Thread Swaroop C H
Is there a way to use wget or curl to get scripts off the Vim site? Use `wget http://www.vim.org/scripts/download_script.php?src_id=$id -O foo` ? Best, Swaroop

Re: Vim Wiki - Tip Page Formatting Deadline

2007-05-21 Thread Sebastian Menge
Am Dienstag, den 15.05.2007, 10:23 -0500 schrieb Tom Purl: Task: Wiki Format Sign-Off Deadline: Monday, May 21st (arbitrary, I know) OK, it's May 21st. I reviewed all the contributions and will try to summarize everything in one mail. 1.) Layout - Template 2 is strongly preferred. -

Is it possible to do spelling check for comments only?

2007-05-21 Thread Edward L. Fox
Hi VIMmers, When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? Best regards, Edward L. Fox

Re: Is it possible to do spelling check for comments only?

2007-05-21 Thread Swaroop C H
When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See :help spell-syntax Best, Swaroop --- www.ion.co.in

Re: Getting vimscripts

2007-05-21 Thread Robert Hicks
Swaroop C H wrote: Is there a way to use wget or curl to get scripts off the Vim site? Use `wget http://www.vim.org/scripts/download_script.php?src_id=$id -O foo` ? Thanks! Robert

Vim 7.1 errors

2007-05-21 Thread Robert Hicks
This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is what I compiled

Python Omni complete on Windows?

2007-05-21 Thread Mike Hansen
Oh great VIM gurus. With VIM 7.# on Windows, I can't seem to get the Omni complete to work for Python for my own modules written in python. Omni complete seems to work for standard library modules, but not for modules that I have in the same directory as the source I'm editing. I have a tags file

Re: Vim 7.1 errors

2007-05-21 Thread Robert Hicks
Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string must be given when squeezing repeats Any ideas? This is

Re: Vim 7.1 errors

2007-05-21 Thread Yakov Lerner
On 5/21/07, Robert Hicks [EMAIL PROTECTED] wrote: Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr: at least one string

Re: Vim 7.1 errors

2007-05-21 Thread Robert Hicks
Yakov Lerner wrote: On 5/21/07, Robert Hicks [EMAIL PROTECTED] wrote: Robert Hicks wrote: This could be just something I am doing wrong. I am creating my .vimrc file and once I put: set laststatus=2 in and save and then open Vim I get the following error: sccs: command not found tr:

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-21 Thread Gary Johnson
On 2007-05-21, Natesh Kedlaya [EMAIL PROTECTED] wrote: Hi, I am using Vim6.3 My cscope db was built on a source directory structure 'src1' which was mounted on /dir1. If I use this cscope db in my vim, my cscope query would yeild following results. [...] Any pointers appreciated. You

Re: Is it possible to do spelling check for comments only?

2007-05-21 Thread Edward L. Fox
On 5/21/07, Swaroop C H [EMAIL PROTECTED] wrote: When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See

doc bug: 'browsedir'

2007-05-21 Thread A.J.Mechelynck
In *options.txt* For Vim version 7.1. Last change: 2007 May 11 under 'browsedir', at line 1151, there is: {not in Vi} {only for Motif and Win32 GUI} Actually, this option is functional in my GTK2/Gnome GUI. Best regards, Tony. -- The day after tomorrow is the

Re: Wish: col(^)

2007-05-21 Thread Gary Johnson
On 2007-05-21, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. indent(.)? HTH, Gary -- Gary Johnson |

Re: Wish: col(^)

2007-05-21 Thread Andy Wokula
Andy Wokula schrieb: Gary Johnson schrieb: On 2007-05-21, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. indent(.)? HTH,

Re: Wish: col(^)

2007-05-21 Thread Andy Wokula
Nikolai Weibull schrieb: On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^ is not allowed. Then shouldn't there also be a col(0) for

Re: Wish: col(^)

2007-05-21 Thread Nikolai Weibull
On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: Nikolai Weibull schrieb: On 5/21/07, Andy Wokula [EMAIL PROTECTED] wrote: ... get position of first non-blank character in the line. If there is col($), there should also be col(^). In some situations (e.g. :imap expr) :normal ^

Re: BUG: wrong recognition of words in Vim7.1b on Windows

2007-05-21 Thread Mikolaj Machowski
Dnia poniedziałek 21 maj 2007, Bram Moolenaar napisał: That @ means that Vim uses the library function isalpha(). Apparently your environment is not setup properly for isalpha() to work with your encoding cp1250. Thus that is a problem with your library/system/environment. Well, I installed