Re: [PATCH] Determining whether a window used :lcd

2007-04-26 Thread Bob Hiestand
On 4/26/07, Nikolai Weibull [EMAIL PROTECTED] wrote: Either way, wouldn't it be more useful to alter getcwd() to take an optional argument stating whether we want the local or global cwd? The problem is that my plugin needs to change the current working directory, perform an action, and

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Bob Hiestand
On 4/25/07, Nikolai Weibull [EMAIL PROTECTED] wrote: Not at all. This patch merely exposes some information about the current cd/lcd functionality. It does not provide new directory changing stack capability. You misunderstand. Isn't the functionality requested in your todo entry just a

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Bob Hiestand
On 4/25/07, Nikolai Weibull [EMAIL PROTECTED] wrote: OK, I guess then I don't understand your todo entry and Yakov's need for it. I should clarify, it is my need, and I have no idea who added the todo. I found it while trying to discern if the functionality I needed was provided already.

Re: [PATCH] Determining whether a window used :lcd

2007-04-24 Thread Bob Hiestand
On 4/23/07, Nikolai Weibull [EMAIL PROTECTED] wrote: The attached patch very simply implements the following from the todo: Wait! I have a comment! Isn't this todo just a subset of 6 Add :cdprev: go back to the previous directory. Need to remember a stack of previous directories. We

Re: [PATCH] Determining whether a window used :lcd

2007-04-20 Thread Bob Hiestand
On 4/11/07, Bob Hiestand [EMAIL PROTECTED] wrote: The attached patch very simply implements the following from the todo: 7 There is no way to change directory and go back without changing the local and/or global directory. Add a way to find out if the current window uses a local

[PATCH] Fwd: Determining whether a window used :lcd

2007-04-11 Thread Bob Hiestand
: Bob Hiestand [EMAIL PROTECTED] Date: Apr 11, 2007 4:06 PM Subject: Re: Determining whether a window used :lcd To: Yakov Lerner [EMAIL PROTECTED] Cc: vim@vim.org vim@vim.org On 4/11/07, Yakov Lerner [EMAIL PROTECTED] wrote: I needed this once in of my script. I ended with some rude simplification

Determining whether a window used :lcd

2007-04-11 Thread Bob Hiestand
Hello, all. Is there any way to determine whether a particular window has its path set with :lcd? Thank you, Bob

Re: Determining whether a window used :lcd

2007-04-11 Thread Bob Hiestand
On 4/11/07, Yakov Lerner [EMAIL PROTECTED] wrote: I needed this once in of my script. I ended with some rude simplification/workaround, lackng the direct simple solution. I don't know your specific case, but you might find simlpistic workaround. One weird attempt to determine this would be to

Re: repeat replace many time on each line

2007-04-02 Thread Bob Hiestand
On 4/2/07, Tobia [EMAIL PROTECTED] wrote: Arnaud Bourree wrote: I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF %s/\%(\%(foo=\\)\@=\%(0x[0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g this works:

Re: Problem with VCSCommand

2006-12-05 Thread Bob Hiestand
On 11/30/06, Joakim Olsson [EMAIL PROTECTED] wrote: I solved the problem by setting shell to cmd.exe in my .vimrc. The problem stems from the fact that I set the SHELL environment variable to /usr/bin/bash to make rxvt work for Cygwin. Vim sees that and set shell to the same value of course.

Re: Open multiple files (when there are spaces in the pathname)

2006-08-25 Thread Bob Hiestand
On 8/24/06, Bulgrien, Kevin [EMAIL PROTECTED] wrote: At various times it is useful to launch vim with a file list that has been generated by a command so that buffers and macros written on the fly are able to be used on a number of files. A trivial, though questionably useful, example that

Re: Allow only one instance of vim on Windows

2006-08-22 Thread Bob Hiestand
On 8/22/06, Bob Hiestand [EMAIL PROTECTED] wrote: On 8/22/06, Stelian Iancu [EMAIL PROTECTED] wrote: Hello there, I've been using vim on and off for about 5 years now but now I've decided to switch entirely to vim. Up until now I've used UltraEdit and this one can be configured that every

Re: Allow only one instance of vim on Windows

2006-08-22 Thread Bob Hiestand
On 8/22/06, Stelian Iancu [EMAIL PROTECTED] wrote: Hello there, I've been using vim on and off for about 5 years now but now I've decided to switch entirely to vim. Up until now I've used UltraEdit and this one can be configured that every file that I open with it is opened in another tab of

Re: renaming unnamed buffer at creation

2006-08-21 Thread Bob Hiestand
On 8/21/06, Jürgen Krämer [EMAIL PROTECTED] wrote: Hi, Yakov Lerner wrote: Now that my attempt to write unnamed buffer under name /tmp/N failed, I want to autoname empty buffer. My first attempt does not work. Autoevent is ot invoked. function! TempName() let x=1 while

Re: ANN: vcscommand beta 4 (supercedes cvscommand)

2006-08-19 Thread Bob Hiestand
On 8/18/06, Alan G Isaac [EMAIL PROTECTED] wrote: On Wed, 9 Aug 2006, Bob Hiestand apparently wrote: http://vim.sourceforge.net/scripts/script.php?script_id=90 I see that many people are liking this plugin. Could you please add a few details about how it works and why it is better than just

Re: changed-yet-not-saved-lines highlighting feature

2006-08-10 Thread Bob Hiestand
On 8/10/06, Marc Weber [EMAIL PROTECTED] wrote: On Thu, Aug 10, 2006 at 11:02:50PM +0800, Eddy Zhao wrote: Hi, Very often, I open a lot of files to edit. When I exiting vim, vim prompt me to save every file which contain changes not saved yet. So, - Is there plugin that could highlight

Re: Viewing CVS diff with vim

2006-08-07 Thread Bob Hiestand
On 8/7/06, Fabio Rotondo [EMAIL PROTECTED] wrote: Hi, I am trying the vcscommand plugin, but I have a problem: I'd like to CVS diff a file with an older version, I have tried this: :VCSDiff 1.2 this opens up a new buffer with the diff output, but without using the vimdiff feature, as I'd

Re: Help with unwanted shell character expansion

2006-08-07 Thread Bob Hiestand
On 8/3/06, Bob Hiestand [EMAIL PROTECTED] wrote: On 8/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 8/3/06, Bob Hiestand [EMAIL PROTECTED] wrote: As is too often the case, I didn't read enough documentation. I think this is not a well-known feature. On 7/31/06, Bob Hiestand [EMAIL

Re: get only basesname from bufname()

2006-08-07 Thread Bob Hiestand
On 8/7/06, Kim Schulz [EMAIL PROTECTED] wrote: hi Is there an easy way to get only the basename (filename) without the path when using bufname()?? I am using it for a guitablabel and have tried with let label = bufname(i-1); let filename = expand(.label.:h) but that does not work. so what is

ANN: vcscommand beta 3 (supercedes cvscommand)

2006-08-04 Thread Bob Hiestand
Hello, I have released a beta version of vcscommand, which updates cvscommand to VIM 7 (required) and adds support for Subversion (SVN) as well as providing a framework for incorporating additional similar source control systems. The plugin is available at:

Re: can vim do this?

2006-08-03 Thread Bob Hiestand
On 8/3/06, Lev Lvovsky [EMAIL PROTECTED] wrote: I recently started work at a company where the predominant text editor happens to be emacs. I've been using vim for a while now, though only recently started getting into the more advanced functionality beyond simple editing (highlighting,

Re: Help with unwanted shell character expansion

2006-08-01 Thread Bob Hiestand
On 7/31/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Bob Hiestand wrote: Question one: Is there a way to achieve execution of system commands without using the shell? Here I'm thinking (for example) of, in perl, the difference between using a single argument to exec() and using multiple

Help with unwanted shell character expansion

2006-07-31 Thread Bob Hiestand
Question one: Is there a way to achieve execution of system commands without using the shell? Here I'm thinking (for example) of, in perl, the difference between using a single argument to exec() and using multiple arguments. In the first version, shell characters are expanded, in the second,

Re: How to Override Backup Control to Implement File Versioning?

2006-07-13 Thread Bob Hiestand
On 7/13/06, Robert Ingraham [EMAIL PROTECTED] wrote: What I'd like to do is mimic the VMS file versioning feature wherein if you edit a file (say, file.txt) , the original is saved as file.txt.1. Subsequent backups of the same file are saved as file.txt.2, file.txt.3 and so forth. In this case,

Re: Calling through a function reference with a variable argument list

2006-06-13 Thread Bob Hiestand
On 6/12/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Mon, 12 Jun 2006 at 4:07pm, Charles E Campbell Jr wrote: Bob Hiestand wrote: On 6/2/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Bob Hiestand wrote: My question is whether there is a simpler way to pass an unknown

Re: How do I get list of directory + how do I show them

2006-06-06 Thread Bob Hiestand
On 6/6/06, Mueller Stefan [EMAIL PROTECTED] wrote: Hello, thank you for you help. But to be more precious I want to have a list of that directory like mylist[0] = file1.cpp,v mylist[1] = file2.cpp,v ... I want to feed that list to my own vim function, which displays the log, check out by,...

Re: Has Plug Changed?

2006-05-30 Thread Bob Hiestand
On 5/30/06, Vigil [EMAIL PROTECTED] wrote: I try to use cvscommit.vim with NERD_comments, but they both use some \c mappings. The blurb in cvscommit.vim says I can use something like nnoremap ,ca PlugCVSAdd instead. I put all the cvscommit mappings in my ~/.vimrc, formatted in this new way, but

Re: Calling through a function reference with a variable argument list

2006-05-17 Thread Bob Hiestand
On 5/16/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Tue, 16 May 2006 at 2:43pm, Bob Hiestand wrote: Hi all, I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function

Calling through a function reference with a variable argument list

2006-05-16 Thread Bob Hiestand
Hi all, I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function references that define common operations for each source control system in a dictionary specfic to that system. I