How do I block the message Pattern not found in :s

2013-03-12 Thread James Kanze
I've written a couple of functions which change the formatting of C++ code, to bring it in line with our coding guidelines; things along the lines of: function! FixParen() s/( */( /g s/ *)/ )/g s/( *)/()/g endfunction The problem is that when calling these over a range

Re: How do I block the message Pattern not found in :s

2013-03-12 Thread James Kanze
On Tuesday, 12 March 2013 15:39:16 UTC, Tim Chase wrote: On 2013-03-12 08:30, James Kanze wrote: function! FixParen() s/( */( /g s/ *)/ )/g s/( *)/()/g endfunction The problem is that when calling these over a range (the usual procedure), vim invokes the function once

Limiting the range of a search

2010-08-12 Thread James Kanze
in the folded text. Is there some option to make search ignore folded text, or some other way of achieving what I want. -- James Kanze -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http

Re: (g)vim changing directory on invocation

2010-05-24 Thread James Kanze
On May 22, 5:55 am, Ben Fritz fritzophre...@gmail.com wrote: On May 21, 1:32 pm, James Kanze james.ka...@gmail.com wrote: On May 20, 1:31 am, Charles E Campbell Jr drc...@campbellfamily.biz wrote: Do you happen to have the acd (autochdir) option set? :verbose set acd? (the question

Re: (g)vim changing directory on invocation

2010-05-21 Thread James Kanze
is relative, nor if I use / instead of \ as a separator. -- James Kanze -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

(g)vim changing directory on invocation

2010-05-19 Thread James Kanze
wondering if this is intentional, and if so, how can I turn it off. (I'm intentionally in the directory one level down, and the only reason I'm using absolute paths in this case is because I'm invoking gvim through cyg-wrapper.sh.) -- James Kanze -- You received this message from the vim_use maillist

Problem with multiline command after :g under Windows

2010-02-16 Thread James Kanze
On 15 Feb, 22:07, Bruce Wheeler bswheele...@hotmail.com wrote: On Mon, 15 Feb 2010 02:42:28 -0800 (PST), James Kanze james.ka...@gmail.com wrote: How do you get a memory fault to simply return a bad return code under Windows? I'm interested in writing regression test programs which run

Recording a sequence which doesn't terminate on a search and replace failure

2010-02-03 Thread James Kanze
strings, so sometimes, this search and replace will fail. I'd like the recorded sequence to continue in such cases. -- James Kanze -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Recording a sequence which doesn't terminate on a search and replace failure

2010-02-03 Thread James Kanze
On 3 Feb, 11:16, A. S. Budden abud...@gmail.com wrote: On 3 February 2010 10:12, James Kanze james.ka...@gmail.com wrote: I was wondering if there was a simple way to define a recorded sequence in vim which doesn't terminate if a :s command doesn't find any matches. Basically, I'm

Re: using shell to generate file list under Windows

2009-12-04 Thread James Kanze
On Dec 3, 7:30 pm, Gary Johnson garyj...@spocom.com wrote: On 2009-12-03, James Kanze wrote: I've recently started working on a Windows platform, and I'm having some problems that, IIRC, worked correctly (i.e. did what I expected) on Unix platforms. In particular: :args ! egrep -l

Re: using shell to generate file list under Windows

2009-12-04 Thread James Kanze
On Dec 3, 7:54 pm, Andy Wokula anw...@yahoo.de wrote: James Kanze schrieb: I've recently started working on a Windows platform, and I'm having some problems that, IIRC, worked correctly (i.e. did what I expected) on Unix platforms. In particular: :args ! egrep -l 'some string' *.{h

using shell to generate file list under Windows

2009-12-03 Thread James Kanze
, since I have to deal with a large body of existing code, in which I often have to make global changes. -- James Kanze -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

jumping to start of function or class in C++

2009-10-08 Thread James Kanze
for {. Does anyone know of any available solution? -- James Kanze --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: jumping to start of function or class in C++

2009-10-08 Thread James Kanze
On Oct 8, 3:21 pm, Luc Hermitte hermi...@free.fr wrote: James Kanze james.ka...@gmail.com : I'm currently having to deal with C++ code which uses the following coding conventions: [...] My problem is getting [[ and ]] to advance or go back to the next function (or class); the opening

Re: better way to remove \n

2009-07-28 Thread James Kanze
. To get the one at the end, the easiest solution is probably to reinsert it: ( tr -d '\n' x ; echo ) y -- James Kanze (GABI Software) email:james.ka...@gmail.com Conseils en informatique orientée objet/ Beratung in objektorientierter Datenverarbeitung 9 place Sémard

Re: how to add only one space character before and after a ,

2009-07-09 Thread James Kanze
. It will. This can be fixed with a second step: :%s/,\s*,/,,/g (or whatever is actually desired). -- James Kanze (GABI Software) email:james.ka...@gmail.com Conseils en informatique orientée objet/ Beratung in objektorientierter Datenverarbeitung 9 place Sémard, 78210 St

Re: offtopic - readability in programing fonts

2009-01-26 Thread James Kanze
by the X resources, e.g.: xterm.vt100.color0: #66 in your .Xdefaults file. Or you can specify them explicitly using the -xrm option when invoking xterm. -- James Kanze (GABI Software) email:james.ka...@gmail.com Conseils en informatique orientée objet

Curious loss of syntax hiliting in NERDTree

2009-01-26 Thread James Kanze
Very curious phenomena: when I do :syntax enable in a gvim window with a NERDTree directory tree at the left, the tree stops coloring directories, etc. It's almost as if syntax hiliting was turned off, instead of on. Has anyone else encountered this? Or am I doing something wrong? -- James

Re: NERDTree converts local filename to absolute

2009-01-11 Thread James Kanze
On Jan 10, 4:01 pm, Marvin Renich m...@renich.org wrote: * James Kanze [090109 20:10]: On Jan 10, 12:46 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: You could e.g. use :set columns+=50 when calling whatever opens the vertically split window, in order to set the GUI screen

NERDTree converts local filename to absolute

2009-01-09 Thread James Kanze
. I'm not sure that this is possible, however.) -- James Kanze (GABI Software) email:james.ka...@gmail.com Conseils en informatique orientée objet/ Beratung in objektorientierter Datenverarbeitung 9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Re: :shell and .bash_login

2009-01-01 Thread James Kanze
starting the program. What I often end up doing is writing a small shell script to start the program, after having set whatever needs to be set (generally by sourcing .bashrc---this isn't an interactive shell), and configuring the menu entry or button to invoke this script. -- James Kanze (GABI

Re: Whether file is executable or not affects sort order in netrw

2008-12-11 Thread James Kanze
On Dec 10, 6:19 pm, Charles Campbell [EMAIL PROTECTED] wrote: James Kanze wrote: Whether a file is executable or not seems to affect the sort ordering in netrw. In my .vimrc, I have: let g:netrw_sort_sequence='[\/]$,*,\.o$,\.info$,\.swp$,\.obj$,\.bak $,\.orig$,^\.' (All on one

Whether file is executable or not affects sort order in netrw

2008-12-10 Thread James Kanze
, the x bit often gets set for files where it doesn't apply, so the information is in some ways false. (x-bit or not, if I invoke a C++ source as a command, Unix isn't going to execute it.) -- James Kanze (GABI Software) email:[EMAIL PROTECTED] Conseils en informatique orientée objet