Re: Can I delete this control sequence?

2007-01-13 Thread Anthony Campbell

On 13 Jan 2007, Tim Chase wrote:

>And, with xdd, I get
>
>arcadia:~/tmp:$ xxd extract
>000: 200d 8a20 0d0a
>
>Is this any help?

Ah...the most telling/helpful aspect! :)

You might be able to use

:%s/\r\%x8a//g

(typed literally) to nuke those items, or replace them with your 
favorite contents.


And I get to put "\%x" on my list of "new stuff I learned today".

:help /\%x

and a bit under

:help E68

for more on using that for putting hex values in your searches. 
True, it could also be done via control+V followed by "x" 
followed by the "8a" to enter it literally as detailed at


:help i_CTRL-V_digit

So that should get you pointed in the right direction.

-tim



Excellent - thank you very much! Works a treat. Now I 
shall do some reading up too!


Anthony


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Re: Can I delete this control sequence?

2007-01-13 Thread Anthony Campbell
If you could, would it be possible to post an excerpt of a dump 
of the file through xxd/od?  This will help determine exactly 
what the file contains at these junctures.  Or, perhaps you can 
even determine from such output exactly what is following the CR. 
 If it truly is a CR/LF pair, and your 'ff' is "unix", then using


:%s/\r\n

should do the trick.

Something like

xxd infile.wp | sed -n '30,50p'

to extract lines 30-50 of the dump where the behavior/characters 
shows up (adjusting those line numbers until you have a window of 
interest) will allow for a more isolated piece if you intend to 
post some to the list.


Alternatively, if there are characters you don't use in your 
file, you could do something like


tr '\r\n' '#@' < infile.wp > outfile.txt

to replace any instance of either CR or LF with a hash or at-sign 
respectively (choose your own characters according to what you 
know of the file contents) which will make them easier for you to 
spot.


Well, I extracted the offending code and looked at it with 
less:

it reads :^M<8A>

And, with xdd, I get

arcadia:~/tmp:$ xxd extract
000: 200d 8a20 0d0a

Is this any help?


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Re: Can I delete this control sequence?

2007-01-13 Thread Anthony Campbell

On 13 Jan 2007, Tim Chase wrote:
>I've imported a lot of files from a DOS word processor. 
>These have lots of control sequences of the form M-J ) New 
>lines I think). I can search for the M, which is Return, 
>but I don't see any way to get the -J. Is it possible?


IIUC, you have CR/LF pairs in the incoming file and want do do 
something to them?


Vim does some sniffing to detect the fileformat (":he 'ff'")...if 
they're all CR/LF pairs, the FF will come up as DOS.  However, if 
there are some mismatched pairs in there, it often comes up as 
Unix format.  It sounds like you're getting the latter 
format...that you're seeing Vim display the ^M (CR) and the ^J 
(LF) is interpreted as a line-break.


Thus, what you're looking for is

:%s/\r\n/replacement


However, you may want to keep the original line breaks, in which 
case, you just want to use


:%s/\r$/replacement

With a bit more information about what you're trying to do and 
what's in the file (are they paragraphs separated by double blank 
lines that you want to preserve? do the original line-breaks have 
significance to you?) you might have to modify this idea.


I'm not worried about the original line breaks. I think 
these controls were put in by the WP to  be 
reformatable.ends of lines. But they don't seem to be 
ordinary CR/LF.


Anyway, the problem is that -J is not recognized as a 
control sequence by vim so I can't search for it or 
replace it. The best plan I've come up with so far is to 
search for ^M, find it, and do 2x to delete both ^M and 
the next character (i.e. -J). By putting this in a 
register I can repeat it a number of times.



This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Can I delete this control sequence?

2007-01-13 Thread Anthony Campbell
I've imported a lot of files from a DOS word processor. 
These have lots of control sequences of the form M-J ) New 
lines I think). I can search for the M, which is Return, 
but I don't see any way to get the -J. Is it possible?


Anthony


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Re: Entering citations (footnotes) in vim

2006-11-13 Thread Anthony Campbell
Actually, looking at the commands in the plugin script 
more carefully I see that it does allow you to change the 
numbering of the footnotes. I'd found this a long time ago 
but forgotten it. This makes it more usable, though some 
manual readjustment will still be required.



This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Entering citations (footnotes) in vim

2006-11-13 Thread Anthony Campbell
Is there any simple way to add numbered footnotes 
(citations) in vim? I have the vimfootnotes plugin, which 
works, but if I need to add or delete a footnote later I 
then have to continue to do everything by hand, which 
rather defetes the object.


Any suggestions?

Anthony


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com


Re: Preserving undo through save

2006-06-30 Thread Anthony Campbell
On 30 Jun 2006, Thomas Michael Engelke wrote:
> Hello!
> 
> I'm not sure if it was always the case or if this is a recent change
> (through vim 7). I am not able to undo anything after saving a file.
> Is this normal? What settings are involved? How can I change this
> behaviour? The help-file for "undo" is pretty silent regarding this.
> 
> Regards,
> 
> Thomas Engelke
> 

That doesn't happen here.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
On 16 May 2006, Pete Johns wrote:
> On Tue, 2006-05-16 at 09:52:29 +0100, Anthony Campbell sent:
> >Thanks for the clarification. These commands work fine, which is
> >what I was looking for. But ":h spell" produces information only
> >about vimspell and vimspell commands. It does not give the
> >information you supplied. I still don't see how you are supposed
> >to locate that.
> >
> Just some guesswork on my part...
> 
> Looks to me like you have (at least the help for) a vimspell
> plugin loaded. 
> 
> Does 
> 
> :help spell-quickstart
> 
> bring up a different helpfile?
> 
> Hope this helps;
> 
> --paj
> 
> -- 
> Pete Johns   <http://johnsy.com/>
> Tel/Fax numbers and IM information   <http://johnsy.com/contact/>
> Guy Kewney <http://johnsy.com/20060515092823>


Yes. thanks; that was it. I'd added the vimspell plugin some time ago
and forgotten how it came there. All is now clear.

Regards,

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
On 16 May 2006, Georg Dahn wrote:
> Hi!
> 
> --- Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > The commmand :SpellCheck gives "Not an editor command" and \ss does
> > nothing. I do have ispell in place.
> 
> Obviously, there is no editor command "SpellCheck" and you don't need
> ispell, since Vim has an internal spell checker. Just do
> 
> :h spell
> 
> and read the manual.
> 
> > I'm sure I'm missing something important in the help file but if
> > someone can point me to the right place I'd be grateful.
> 
> Set your language with
> 
> :set spelllang=en
> 
> (or whatever language you want). With
> 
> :set spell
> 
> you turn spell checking on and with
> 
> :set nospell
> 
> you turn it off again. If the dictionary of your language is not
> available, just follow the dialogues to download it.
> 
> Best wishes, Georg
> 
> 
Thanks for the clarification. These commands work fine, which is what I
was looking for. But ":h spell" produces information only about vimspell
and vimspell commands. It does not give the information you supplied. I
still don't see how you are supposed to locate that.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
I'm just trying out vim 7.0 but I must be misunderstanding vimspell.

The commmand :SpellCheck gives "Not an editor command" and \ss does
nothing. I do have ispell in place.

I'm sure I'm missing something important in the help file but if someone
can point me to the right place I'd be grateful.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Hardcopy no longer works - SOLVED

2006-04-24 Thread Anthony Campbell
On 24 Apr 2006, Anthony Campbell wrote:
> On 24 Apr 2006, Anthony Campbell wrote:
> > I've always been able to print my files directly from gvim using the
> > print command in the File menu.
> > 
> > Now it no longer works, following recent upgrades to xorg 7.0. I think
> > this may be something to do with a font problem, which I have solved for
> > other apps such as muttprint and printing from slrn.
> > 
> > This is with vim64, on Linux Debian. I get :hardcopy on the command line
> > and the printer lights flash but nothing happens.
> > 
> > Is there somewhere I can set the font for hardcopy?
> > 
> 
> PS I just tried setting pdev to lpr (which works if I run it directly on
> a file); however, it says "Failed to print postscript file"
> 
> Anthony
> -- 

I reinstalled the gsfonts package and things started working correctly.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Hardcopy no longer works

2006-04-24 Thread Anthony Campbell
On 24 Apr 2006, Anthony Campbell wrote:
> I've always been able to print my files directly from gvim using the
> print command in the File menu.
> 
> Now it no longer works, following recent upgrades to xorg 7.0. I think
> this may be something to do with a font problem, which I have solved for
> other apps such as muttprint and printing from slrn.
> 
> This is with vim64, on Linux Debian. I get :hardcopy on the command line
> and the printer lights flash but nothing happens.
> 
> Is there somewhere I can set the font for hardcopy?
> 

PS I just tried setting pdev to lpr (which works if I run it directly on
a file); however, it says "Failed to print postscript file"

Anthony
-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Hardcopy no longer works

2006-04-24 Thread Anthony Campbell
I've always been able to print my files directly from gvim using the
print command in the File menu.

Now it no longer works, following recent upgrades to xorg 7.0. I think
this may be something to do with a font problem, which I have solved for
other apps such as muttprint and printing from slrn.

This is with vim64, on Linux Debian. I get :hardcopy on the command line
and the printer lights flash but nothing happens.

Is there somewhere I can set the font for hardcopy?

Anthony
-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Thor Andreassen wrote:
> On Mon, Apr 17, 2006 at 06:01:23PM +0100, Anthony Campbell wrote:
> > On 17 Apr 2006, Thor Andreassen wrote:
> > > On Mon, Apr 17, 2006 at 04:29:30PM +0100, Anthony Campbell wrote:
> > > > On 17 Apr 2006, Thomas Adam wrote:
> > > > > 
> > > > > --- Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > > > > 
> > > > > > But vim compiles without the gui (gtk version). Any way to get it 
> > > > > > to do
> > > > > > this?
> > > > > 
> > > > > Well, can you tell us what's in config.log?  I suspect you're missing 
> > > > > some of
> > > > > the GTK header files, since a normal ./configure will attempt to 
> > > > > build the
> > > > > X11/GUI component by default.
> > > > 
> > > > configure:2673: checking for X
> > > > configure:3532: checking if X11 header files can be found
> > > > configure:3543: gcc -c -g -O2conftest.c 1>&5
> > > > configure:3537:22: error: X11/Xlib.h: No such file or directory
> > > 
> > > The following is very Debian specific.
> > > 
> > > When you know the exact filename of the file you are looking for,
> > > apt-file(1) is your friend.
> > > 
> > > $ apt-get install apt-file
> > > $ apt-file update
> > > $ apt-file search X11/Xlib.h
> > > 
> > > On my system (Unstable) the result is:
> > >   /usr/X11R6/include/X11/Xlib.h
> > > 
> > > Can you confirm that /usr/X11R6/include/X11/Xlib.h exists?
> > > 
> > > [...]
> > 
> > It does not. It used to but I think it has been removed in the recent
> > upgrade to xorg7.0. Have you done this upgrade in the last 2 o2 3 days?
> 
> No, I have not upgraded yet.
> 
> I am not sure, but this announcement might be related to your
> problem:
> 
> http://lists.debian.org/debian-devel-announce/2006/04/msg00010.html
> 
> -- 
> with kind regards
> Thor Andreassen


Yes, I'd seen this which is why I thought the problem might be related
to xorg. Looks like it is. Anyway, it doesn't matter too much because
I've now got the Debian package to install the help file, though I'm not
quite sure how!

Thanks,

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Thor Andreassen wrote:
> On Mon, Apr 17, 2006 at 04:29:30PM +0100, Anthony Campbell wrote:
> > On 17 Apr 2006, Thomas Adam wrote:
> > > 
> > > --- Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > > 
> > > > But vim compiles without the gui (gtk version). Any way to get it to do
> > > > this?
> > > 
> > > Well, can you tell us what's in config.log?  I suspect you're missing 
> > > some of
> > > the GTK header files, since a normal ./configure will attempt to build the
> > > X11/GUI component by default.
> > 
> > configure:2673: checking for X
> > configure:3532: checking if X11 header files can be found
> > configure:3543: gcc -c -g -O2conftest.c 1>&5
> > configure:3537:22: error: X11/Xlib.h: No such file or directory
> 
> The following is very Debian specific.
> 
> When you know the exact filename of the file you are looking for,
> apt-file(1) is your friend.
> 
> $ apt-get install apt-file
> $ apt-file update
> $ apt-file search X11/Xlib.h
> 
> On my system (Unstable) the result is:
>   /usr/X11R6/include/X11/Xlib.h
> 
> Can you confirm that /usr/X11R6/include/X11/Xlib.h exists?
> 
> [...]
> 
> -- 
> with kind regards
> Thor Andreassen

It does not. It used to but I think it has been removed in the recent
upgrade to xorg7.0. Have you done this upgrade in the last 2 o2 3 days?

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Chris Allen wrote:
> On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > I want to compile vim6.4 for my recently upgraded xorg. This is because
> > the Debian packages all lack the help.txt file for some reason, even
> > though I've installed vim-doc.
> >
> > But vim compiles without the gui (gtk version). Any way to get it to do
> > this?
> 
> Make sure you've got the GTK development package, whatever it may be
> called, installed.
> 
> HTH,
> Chris Allen

I have.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Yakov Lerner wrote:
> On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > On 17 Apr 2006, Chris Allen wrote:
> > > On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > > > configure:2673: checking for X
> > > > configure:3532: checking if X11 header files can be found
> > > > configure:3543: gcc -c -g -O2conftest.c 1>&5
> > > > configure:3537:22: error: X11/Xlib.h: No such file or directory
> > > >
> > > > Perhaps it doesn't like xorg?
> > >
> > > You're missing at least the X11 development headers.  Install those.
> > > Debian shouldn't let you install the GTK headers without also having
> > > the X11 headers, so apt-getting the GTK headers should sort you out.
> > >
> > > For reference, Vim doesn't care if you're running Xorg, XFree86, or
> > > any other implementation of the X Protocol, it just sticks to the API.
> > >  The headers all conform to the X11 API standard, and the
> > > communication they implement all conforms to the X11 protocol.  This
> > > allows you to use any X11 application xhosted from any X11-compliant
> > > server to any X11 compliant client.
> > >
> > > HTH,
> > > Chris Allen
> >
> > I've installed libgtk2.0-dev but that doesn't do it. Do you know exactly
> > which are the packages required? I can't find any relevant.
> 
> Do you have x11-dev installed (or xorg-x11-devel) ?
> 
> Yakov


I have libx11-dev. There is no xorg-x11-dev or similar

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Chris Allen wrote:
> On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > configure:2673: checking for X
> > configure:3532: checking if X11 header files can be found
> > configure:3543: gcc -c -g -O2conftest.c 1>&5
> > configure:3537:22: error: X11/Xlib.h: No such file or directory
> >
> > Perhaps it doesn't like xorg?
> 
> You're missing at least the X11 development headers.  Install those. 
> Debian shouldn't let you install the GTK headers without also having
> the X11 headers, so apt-getting the GTK headers should sort you out.
> 
> For reference, Vim doesn't care if you're running Xorg, XFree86, or
> any other implementation of the X Protocol, it just sticks to the API.
>  The headers all conform to the X11 API standard, and the
> communication they implement all conforms to the X11 protocol.  This
> allows you to use any X11 application xhosted from any X11-compliant
> server to any X11 compliant client.
> 
> HTH,
> Chris Allen

I've installed libgtk2.0-dev but that doesn't do it. Do you know exactly
which are the packages required? I can't find any relevant.

Anthoby




-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Thomas Adam wrote:
> 
> --- Anthony Campbell <[EMAIL PROTECTED]> wrote:
> 
> > But vim compiles without the gui (gtk version). Any way to get it to do
> > this?
> 
> Well, can you tell us what's in config.log?  I suspect you're missing some of
> the GTK header files, since a normal ./configure will attempt to build the
> X11/GUI component by default.
> 
> -- Thomas Adam
> 

I get this:

configure:2673: checking for X
configure:3532: checking if X11 header files can be found
configure:3543: gcc -c -g -O2conftest.c 1>&5
configure:3537:22: error: X11/Xlib.h: No such file or directory
configure: failed program was:
#line 3536 "configure"
#include "confdefs.h"
#include 
int main() {

; return 0; }
configure:3744: checking --enable-gui argument
configure:4992: checking for X11/SM/SMlib.h
configure:5260: checking quality of toupper
configure:5270: gcc -o conftest -g -O2   -L/usr/local/lib conftest.c -lnsl  1>&5
configure: In function 'main':
configure:5267: warning: incompatible implicit declaration of built-in function 
'exit'
configure: failed program was:
#line 5265 "configure"
#include "confdefs.h"


Perhaps it doesn't like xorg?

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Can't compile gui version with xorg

2006-04-17 Thread Anthony Campbell
I want to compile vim6.4 for my recently upgraded xorg. This is because
the Debian packages all lack the help.txt file for some reason, even
though I've installed vim-doc.

But vim compiles without the gui (gtk version). Any way to get it to do
this?

Anthony
-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: gvim not reading gvimrc -SOLVED

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Anthony Campbell wrote:
> On 17 Apr 2006, Yakov Lerner wrote:
> > On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > > I've just had to reinstall vim after a crash of X on my Debian system
> > > (Sid)
> > >
> > > Vim reads its .vimrc file correctly but gvim does not read .gvimrc.
> > > Instead it seems to be reading some other configuration file with
> > > different mappings and the wrong font. I cannot source my gvimrc file,
> > > even with an absolute path namea. And gvim -U /home/ac/.gvimrc also
> > > doesn't bring it up.
> > >
> > > Can anyone suggest what is happening here?
> > 
> > Vim6 or vim7 ? Can you attach the problematic .gvimrc ?
> > What does :scriptnames show ?
> > 
> > Yakov
> 
> This is 6.4.
> 
> :map shows a lot of things I don't recognize, for example:
> 
>  PotwikiPrev & 10_PrevWord
>PotwikiNext & 10_NextWord
>PotwikiEdit & 10_Edit
>PotwikiReload & 10_Reload
>PotwikiClose & 10_Close
>PotwikiFollow & 10_Follow
>PotwikiCR & 10_CR
>PotwikiIndex & 10_Index
> 
> Where does this come from?
> 
> 
> :sriptnames shows the correct /home/ac/.gvimrc
> 
> This is the .gvimrc; it is the same file I was using previously.
> 


OK, there seems to be something wrong with my .gvimrc, which I'm in the
process of finding. I don't know why it worked previously and doesn't
now.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: gvim not reading gvimrc

2006-04-17 Thread Anthony Campbell
On 17 Apr 2006, Yakov Lerner wrote:
> On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote:
> > I've just had to reinstall vim after a crash of X on my Debian system
> > (Sid)
> >
> > Vim reads its .vimrc file correctly but gvim does not read .gvimrc.
> > Instead it seems to be reading some other configuration file with
> > different mappings and the wrong font. I cannot source my gvimrc file,
> > even with an absolute path namea. And gvim -U /home/ac/.gvimrc also
> > doesn't bring it up.
> >
> > Can anyone suggest what is happening here?
> 
> Vim6 or vim7 ? Can you attach the problematic .gvimrc ?
> What does :scriptnames show ?
> 
> Yakov

This is 6.4.

:map shows a lot of things I don't recognize, for example:

 PotwikiPrev & 10_PrevWord
   PotwikiNext & 10_NextWord
   PotwikiEdit & 10_Edit
   PotwikiReload & 10_Reload
   PotwikiClose & 10_Close
   PotwikiFollow & 10_Follow
   PotwikiCR & 10_CR
   PotwikiIndex & 10_Index

Where does this come from?


:sriptnames shows the correct /home/ac/.gvimrc

This is the .gvimrc; it is the same file I was using previously.





winpos 90 20

"turn off Alt for menus (use mouse)
set winaltkeys=no

"set smartcase to make vim search according to case
se smartcase
"set status bar to show file you are editing
"   se laststatus=2
"set show matching brackets
"se showmatch
"set cursor for Command, Visual, Normal
"   set gcr=n-c-v-o:nCursor 
" set cursor not to blink in Insert only
" or to start blinking after some msecs.
set gcr=i:ver30-blinkwait5000
"   set gcr=i:ver30-blinkon0
"   set gcr=i:blinkwaiti5
"hide mouse when typing text
set mousehide

set guioptions-=T
set shm+=I


"syntax on

"turn off Alt for menus (use mouse)
set winaltkeys=no

"set smartcase to make vim search according to case
se smartcase
"set status bar to show file you are editing
"   se laststatus=2
"set show matching brackets
"se showmatch
"set cursor for Command, Visual, Normal
"   set gcr=n-c-v-o:nCursor 
" set cursor not to blink in Insert only
" or to start blinking after some msecs.
"   set gcr=i:ver30-blinkwait9000
"   set gcr=i:ver30-blinkon0
"   set gcr=i:blinkwait2
"hide mouse when typing text
set mousehide
"turn off Alt for menus (use mouse)
set winaltkeys=no

" set 
guicursor=i:ver40-iCursor,r:hor35-rCursor,n:block-nCursor,v:hor75-vCursor,a:blinkwait5000
"set guifont=Monospace\ Bold\ 12
set guifont=Bitstream\ Vera\ Sans\ Mono\ \Bold 

"colorscheme peachpuff
colorscheme desert


"  hi Cursorguibg=red
"  hi iCursor   guibg=cyan
"  hi rCursor   guibg=yellow
"  hi vCursor   guibg=blue 
"  hi nCursor   guibg=green 





" make backspace work in X
set =

"keep some lines around cursor
set scrolloff=3

"set BACKSPACE to delete continuously in Insert mode
se bs=2



"set autoindent on
se ai

"set smartcase to make vim search according to case
se smartcase
"set status bar to show file you are editing
se laststatus=2
"set show matching brackets
se showmatch

"set directory for swap files
se dir=~/.swp

"set ruler
set ruler


"MAPPINGS:

"search stuff
" This turns off search highlighting after 
nnoremap   :nohlsearch
"turning stuff off and on
"set nohlsearch
set incsearch


"Change preceding word to uppercase in Insert mode
map!  gUiw`]a

"Make alt-o insert new line in Insert
imap  A


"ct to count file
cab ct  !wc -w
"ls to ls 
cab ls !ls 


"map ctrl-P to produce  
"   
map  
imap  

"alt-s to save file 
map  :w
imap  :w

"alt-S to save file and exit
map  :wq
imap  :wq

"alt-q to quit if saved 
map   :q
imap  :q

"alt-Q to quit unconditionally
map  ZQ
imap  ZQ

"alt-f to format para (cursor within para)
noremapgqip
inoremap   gqip

"alt-F to format para (cursor outside para)
noremapgqap
inoremap   gqap

"alt-d  to delete line
imap  dd
map   dd

"alt-u to undelete 
map  u
imap  u

"F11 to insert date
map   mx:r!setdate
imap  :r!setdate


"alt-p to insert text from another window
map   "*p 
imap   "*p 

"Find in insert

gvim not reading gvimrc

2006-04-17 Thread Anthony Campbell
I've just had to reinstall vim after a crash of X on my Debian system
(Sid)

Vim reads its .vimrc file correctly but gvim does not read .gvimrc.
Instead it seems to be reading some other configuration file with
different mappings and the wrong font. I cannot source my gvimrc file,
even with an absolute path namea. And gvim -U /home/ac/.gvimrc also
doesn't bring it up.

Can anyone suggest what is happening here?


Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Re: Proposal for a new logo

2006-04-10 Thread Anthony Campbell
On 10 Apr 2006, Yakov Lerner wrote:
> On 4/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I personally don't like it. I only agree with the goals that you have;
> > but this particular logo i don't like.
> >
> > The old was very good... it could simply be revamped.
> 
> I agree. I like the current(old) logo.
> 
> Yakov


As we seem to be voting informally, I like the current one too.

Anthony
-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)