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
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
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
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
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
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
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
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
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
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
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
, 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
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
-~--~~~~--~~--~--~---
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
. 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
.
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
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
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
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
.
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
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
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
, 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
23 matches
Mail list logo