Re: Colorscheme vanishes after edit

2019-02-25 Thread 'Andrew Long' via vim_use
et, it’s going in the right direction. I was fairly sure that it wasn’t a badly formatted file, as the file opens cleanly and displays all syntax colouring until you do ‘something’ to it. THanks again. Reggards, Andy -- Andrew Long Andrew dot Long at Mac dot com -- Andrew Long Andrew dot Long

Re: Colorscheme vanishes after edit

2019-02-25 Thread 'Andrew Long' via vim_use
uess, nonetheless! I doubled the value from the default (2000 mx) to 4000 ms and so far it’s working. I haven’t worked it hard yet, though. I’ll have to wait and see. Thanks for your help. Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com -- Andrew Long Andrew dot Long at Mac dot

Colorscheme vanishes after edit

2019-02-23 Thread 'Andrew Long' via vim_use
-lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lelf -lnsl-lncursesw -liconv -lacl -lattr -lintl -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong -L/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE -lperl -lpthread -ldl -lcrypt "~/vers

Re: VIM & Eclipse

2018-11-25 Thread 'Andrew Long' via vim_use
d get a "vimlike" experience by installing the vrapper plugin for > eclipse, but it's not quite the same. According to the ‘eclim’ web site, they’ve withdrawn support of it on Windows; only supported on Linux & OSX. I’ll have a look at vrapper. Thanks. Regards, Andy -- Andrew L

Re: VIM & Eclipse

2018-11-23 Thread 'Andrew Long' via vim_use
l it locally - everything has to be loaded off a company server, so I’d have to be pretty convincing with the corporate IT guys to make any headway. Must keep talking to them, I guess. Thanks again for the feedback. Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com -- -- You received

VIM & Eclipse

2018-11-22 Thread 'Andrew Long' via vim_use
Some time back, there was some discussion over using VIM as the editor inside eclipse. I can’t find it now, can someone point me at it, or what the resoluition was, please? Regards, Amdy -- Andrew Long Andrew dot Long at Mac dot com -- -- You received this message from the "vi

Re: Can you edit EBCDIC files on non-OS390 builds of VIM?

2016-01-31 Thread Andrew Long
t present. Is there an option to turn it on? I edit copies of mainframe files locally by using netrw, and get ftp to translate between Ascii & EBCDIC Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com -- -- You received this message from the "vim_use" maillist. Do not

Re: vim with Windows developments under linux and git

2015-05-22 Thread Andrew Long
about which line endings you are using. I've seen this in the past when a file, created in Windows with CR-LF line endings, doesn't have a line ending at end-of-file, so yes, that might be a case of 'inconsistent line endings'. In such cases I just do a global replace ':%

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
On 10 Feb 2015, at 18:17, John Culleton wrote: > On Tue, 10 Feb 2015 17:56:29 + > Andrew Long wrote: > >> On 10 Feb 2015, at 15:57, John Culleton wrote: >>> >> >> I've had problems with COBOL.vim if smarttabs >> are switched on, after starti

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
On 10 Feb 2015, at 18:17, John Culleton wrote: > On Tue, 10 Feb 2015 17:56:29 + > Andrew Long wrote: > >> On 10 Feb 2015, at 15:57, John Culleton wrote: >>> >> >> I've had problems with COBOL.vim if smarttabs >> are switched on, after starti

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
s what *looks* like it ought to be a valid line as invalid. I got around this by switching off smart tabs in the ftdetect.vim script If it's this problem you should be able to find out by looking for hard tab characters where there ought to be single space characters? Regards, Andy -- A

Re: Two new Vim books

2014-10-13 Thread Andrew Long
On 13 Oct 2014, at 03:20, Kevin O'Gorman wrote: > > I found two versions there, a PDF and a LibreOffice version. Maybe it got > restored. Seems so. Thank you for pointing me back at it! Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com signature.asc Descri

Re: Two new Vim books

2014-10-07 Thread Andrew Long
azon, but the file in the URL above seems to have vanished? Regards, Andy -- Andrew Long Andrew dot Long at Mac dot com signature.asc Description: Message signed with OpenPGP using GPGMail

Re: Search and replace

2014-04-05 Thread Andrew Long
1.com,www.example2.com,www.example3.com,www.example4.com etc. > > How would I remove the comma and insert ENTER to move theses URL's to a single > line? > > Thank You > > Danny :s/,/\r/g Regards, Andy -- Andrew Long andrew dot long at mac dot com signature.asc Description: Message signed with OpenPGP using GPGMail

Re: Using back-references in 'range'

2013-09-24 Thread Andrew Long
On 23 Sep 2013, at 19:44, Ben Fritz wrote: > On Monday, September 23, 2013 11:54:27 AM UTC-5, Andrew Long wrote: >> >> What I thought of was to use a global operation limited to the 'for' and the >> matching 'repeat', and what I tried was this:- >>

Using back-references in 'range'

2013-09-23 Thread Andrew Long
Only I fell at the first hurdle because it fails to find the matching repeat pattern. Is this possible? Or am I missing an easier way to do this? Regards, Andy -- Andrew Long andrew dot long at mac dot com signature.asc Description: Message signed with OpenPGP using GPGMail

Re: Vim under cygwin

2012-10-24 Thread Andrew Long
On 23 Oct 2012, at 03:42, Tony Mechelynck wrote: > On 12/07/12 18:06, Andrew Long wrote: >> >> >> Begin forwarded message: >> >>> From: "Long, Andrew" >>> Subject: Vim under cygwin >>> Date: 12 July 2012 10:18:32 GMT+01:00 &g

Re: Vim under cygwin

2012-10-22 Thread Andrew Long
On 18 Oct 2012, at 15:51, Andrew Long wrote: > > On 17 Oct 2012, at 18:19, Gary Johnson wrote: > >> On 2012-10-17, Andrew Long wrote: >>> On 12 Jul 2012, at 17:06, Andrew Long wrote: >> >>>> Begin forwarded message: >>>> >>>>

Re: Vim under cygwin

2012-10-18 Thread Andrew Long
On 17 Oct 2012, at 18:19, Gary Johnson wrote: > On 2012-10-17, Andrew Long wrote: >> On 12 Jul 2012, at 17:06, Andrew Long wrote: > >>> Begin forwarded message: >>> >>>> From: "Long, Andrew" >>>> Subject: Vim under c

Re: Vim under cygwin

2012-10-17 Thread Andrew Long
On 12 Jul 2012, at 17:06, Andrew Long wrote: > > > Begin forwarded message: > >> From: "Long, Andrew" >> Subject: Vim under cygwin >> Date: 12 July 2012 10:18:32 GMT+01:00 >> To: andrew.l...@mac.com >> >> >> 0126792@XP037

Re: Vim for iPad

2012-09-03 Thread Andrew Long
On 3 Sep 2012, at 17:22, Benjamin Klein wrote: > On Sep 3, 2012, at 8:06 AM, Andrew Long wrote: > >> I thought I'd saved the original posts about vim on the iPad, but can't find >> them any more :-( > > These don’t refer to the Vim for iOS app but do ref

Re: Vim for iPad

2012-09-03 Thread Andrew Long
ly so don't imagine much progress is being made. Regards, Andy -- Andrew Long andrew dot long at mac dot com signature.asc Description: Message signed with OpenPGP using GPGMail

Fwd: Vim under cygwin

2012-07-12 Thread Andrew Long
ths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > > 0126792@XP037234 ~/NRock/Projects/dbJnlStats/working > > -- > Andrew LongIT Specialist > Mainframe ManagementVirgin Mon

Re: If in OldFile I :write NewFile, do I need to manually reload NewFile and close OldFile?

2012-05-23 Thread Andrew Long
on't want > to have to manually use :edit to load NewFile, use :rew to position back to > OldFile, and use :bdel to close OldFile. :saveas NewFile -- Andrew Long andrew dot long at mac dot com -- You received this message from the "vim_use" maillist. Do not top-post! Ty

Re: Highlighting block of text

2012-05-08 Thread Andrew Long
>>> \], '\|') >>> endif >>>else >>> let left=min([col1, col2]) >>> let right=max([col1, col2]) >>> let top=min([lnum1, lnum2]) >>> let bottom=max([lnum1, lnum2]) >>> if l:mode == 'V' >>>let range= >>>\'\%>'.(top-1).'l'. >>>\'\%<'.(bottom+1).'l'. >>>\'.' >>> else " visual block >>>let range= >>>\'\%>'.(left-1).'c'. >>>\'\%<'.(right+1).'c'. >>>\'\%>'.(top-1).'l'. >>>\'\%<'.(bottom+1).'l'. >>>\'.' >>> endif >>>endif >>>exec printf('sil! match %s /%s/', a:scheme, range) >>> endfunction >>> vnoremap :call Hi("Error") >>> nnoremap :match NONE >> >> -- >> Quis custodiet ipsos custodes > > -- > 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 -- Andrew Long andrew dot long at mac dot com -- 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

Re: Change needed in cobol.vim syntax file.

2012-02-14 Thread Andrew Long
is in column 12 actually start to the left of that, in area A, or even in the line number field. Not saying that is your problem here, but it's worth a look. Regards, Andy -- Andrew Long andrew dot long at mac dot com PGP.sig Description: This is a digitally signed message part

Re: Plugin/addon managers

2011-07-25 Thread Andrew Long
ult, I assumed that > wget > is more likely to be found in OS X which I have never played with by myself). Sadly, it's not. That was the program that drove my installation of macports, though. Regards, Andy - -- Andrew Long andrew dot long at mac dot com -BEGIN PGP SIGN

Re: syntax highlighting: 'good' syntax item becomes 'bad' after unrelated change in file

2011-06-06 Thread Andrew Long
s the sclProcedureCall, then it stops misbehaving. This is, in fact, probably a more realistic definition, too, as I was probably trying to overload the clause by one straw too many - while you can assign a reference a value, you can't do it as part of a string declaration; I can probably live wigh leaving that as an sclAnonymousAssignment. So, while I believe that I have found a bug in the syntax engine, I now have something that looks, from a distance, like a work-around. Despite that, I'm prepared to assist in someone else's debugging of this, if I can. Regards, Andy -- Andrew Long andrew dot long at mac dot com PGP.sig Description: This is a digitally signed message part

syntax highlighting: 'good' syntax item becomes 'bad' after unrelated change in file

2011-06-02 Thread Andrew Long
I'm working on a syntax file for a language called SCL I'm experiencing a problem where a valid piece of syntax (a variable declaration) sudden;y changes state (becomes an (invalid) procedure call) following the insertion elsewhere in the file of an indexed assignment. The form of the declarati

Re: is there s 'toinitialupper' function?

2011-04-30 Thread Andrew Long
h pattern needs brackets, or the \1 should be replaced. > The following works: > > let s=substitute(s, '\w\+', '\u&', 'g') Tim/John Thanks for your suggestions. That's much simpler than I was going to do (cut the word to pieces with strpart, capit

is there s 'toinitialupper' function?

2011-04-29 Thread Andrew Long
ing around with strpart() and len(), but I hoped that it might be simpler than that. looking for 'initial' and 'leading in helpgrep yielded too many hits to easily scan. TIA. Regards, Andy -- Andrew Long andrew dot long at mac dot com PGP.sig Description: This is a digitally signed message part

Re: syntax highlighting colors bold text

2011-04-25 Thread Andrew Long
;> user account (actually, /root/.vimrc is just symlinked to the one in my >> normal $HOME). Just a guess... at my site, we are mandated to have screen colours 'jump out' at you when you're logging into a production system; it's to make you think twice before doing somethin

Re: New to vim: How to get the matched string in a search and use it in a replace

2011-02-17 Thread Andrew Long
art, then you can substitue '\1' (or some other number) to insert the matched substring. Fpr example:- :s/\(abcd\)\(efgh\)/\2\1 reverses the order of the substrings 'abcd' and 'efgh' in the current line. Regards, Andy -- Andrew Long andrew dot long at mac dot com PGP.sig Description: This is a digitally signed message part

Re: E255 on sign command

2010-09-08 Thread Andrew Long
On 7 Sep 2010, at 15:57, Andrew Long wrote: > > On 7 Sep 2010, at 03:54, Vincent B. wrote: > >> Hi, >> >> I made the patch for graphical file loading in MacVim, the >> implementation rely directly in Cocoa for image loading, and I don't >> thi

Re: E255 on sign command

2010-09-07 Thread Andrew Long
islead you > > Regards AH, right. Thanks for the update. Regards, Andy > > Vincent B. > > On 6 sep, 18:19, Andrew Long wrote: >> On 6 Sep 2010, at 23:12, Andrew Long wrote: >> >>> I'm having some troubles using the 'sign define' co

Re: E255 on sign command

2010-09-06 Thread Andrew Long
On 6 Sep 2010, at 23:12, Andrew Long wrote: > I'm having some troubles using the 'sign define' command. I'm running macvim > stable 53 (using vim 7.3, as at bottom) > > In my .vimrc I have the following lines to set up the sign > " > " Place

E255 on sign command

2010-09-06 Thread Andrew Long
-O2 -arch i386 -arch x86_64 -D_FORTIFY_SOURCE=1 Linking: gcc -L.-L. -arch i386 -arch x86_64 -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lncurses -liconv -framework Cocoa -L/usr/local/lib -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lper

Re: syn region question

2010-08-13 Thread Andrew Long
ntic contexts. In the end I got rid of all keywords and declared everything with syntax match' and 'syntax region'. Regards, Andy -- Andrew Long andrew dot long at mac dot com PGP.sig Description: This is a digitally signed message part

syntax file for git fast-import files?

2009-10-13 Thread Andrew Long
Hi I'm in the process of converting my CVS repositories to Git, and I wondered if anyne had written a syntax file for the fast-import files? regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message

Re: How do I have all folds expanded by default when file opens?

2009-08-03 Thread Andrew Long
there to allow folding for my xml files? > The option 'foldlevel' sets the initial number of folds to be open when the file is opened. I set this in my .vimrc as a global for all file types, but you an set it on a file-by-file basis in the file type initialisation routines. see :he

Help with 'syntax region' terminating too soon

2009-07-19 Thread Andrew Long
ope that you can either fix it or it can't be fixed, but there's obviously something different about the lines that fold when their companions don't. All help appreciated Regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

testing from .mac

2009-07-19 Thread Andrew Long
-- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Insert Mode Mappings on a Mac

2008-12-20 Thread Andrew Long
able, I don't know. Here are a few > troubleshooting hints: > On my Mac (Leopard 10.5.6), CTRL=Left, Right, Up or Down are grabbed by Spaces to move the viewport between diffeent virtual screens... Regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~

Re: match() questions

2008-11-09 Thread Andrew Long
bstitute() - note the brackets) Something like this? let var=substitute( someVar, "^.*\(what you're interested in\).*$", "\1", "" ) Regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this

Re: Ballon eval: planned? (also: installing PyClewn on Mac OS X)

2008-11-09 Thread Andrew Long
PS - I've searched the help for how to type combining characters and couldn't find a hint. I was trying to type your name properly, and was reduced to yanking it from the start of the mail :( -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Installing PyClewn on Mac OS X

2008-11-08 Thread Andrew Long
On 7 Nov 2008, at 19:58, Xavier de Gaye wrote: > > On Fri, Nov 7, 2008 at 6:56 PM, Andrew Long <[EMAIL PROTECTED]> > wrote: >> > > Hello Andy > > This is not an issue with --nofork as pyclewn runs gvim with '-es' and > gvim does not fork in thi

Re: Installing PyClewn on Mac OS X

2008-11-07 Thread Andrew Long
On 7 Nov 2008, at 17:03, Andrew Long wrote: > > On 7 Nov 2008, at 06:58, Andrew Long wrote: > >> >> Hi all >> >> I tried to install pyclewn on OS X Leopard last night. The install >> failed > > Update. > > I've had a couple of tries at

Re: Installing PyClewn on Mac OS X

2008-11-07 Thread Andrew Long
On 7 Nov 2008, at 06:58, Andrew Long wrote: > > Hi all > > I tried to install pyclewn on OS X Leopard last night. The install > failed Update. I've had a couple of tries at using different instances of vim with the pyclewn setup file. 1. mvim --nofork gets past the first

Installing PyClewn on Mac OS X

2008-11-06 Thread Andrew Long
a look at the files indicated, and what seems to be happening is that the script is calling 'gvim -- version' and getting no reply back. This seems to be due to gvim forking and returning immediately; I tried to force '-f' in the arglist in the script, but that didn'

Re: ANN: YankRing 6.1

2008-11-02 Thread Andrew Long
, which got me a new version of Vim (7.2), and it all worked perfectly. Regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Search expression spanning multiple lines

2008-10-30 Thread Andrew Long
Not exactly a pattern that trips off the tongue (or even fingers!) and this is without making sure that those first 23 characters on each line are in fact a time stamp. My only other thought was to write a syntax file for the log, which would let you highlight things like the socket errors as Error, a

Re: Search expression spanning multiple lines

2008-10-24 Thread Andrew Long
atch 'dos not match here' pattern might do the trick, but I'm not too up on those :help zero-with gives a couple of patterns ([EMAIL PROTECTED] for ex) but I'm not sure they'd work. After all, proving a negative is one of the hardest tasks. REgards, Andy -- Andrew

Re: Search expression spanning multiple lines

2008-10-23 Thread Andrew Long
There needs to be some unambiguous way to select only the starting occurrence for what you DO want. If the hyphens are on separate lines from the words, this might be worth trying:- /--.*\n.*timesheet\_.\{-\}Winsock.*\n.*--/ regards, Andy -- Andrew Long andrew dot long at mac dot com

Re: Search expression spanning multiple lines

2008-10-23 Thread Andrew Long
, comma etc) try something like this:- /\\_.\{-}\/ The angle brackets cause the search to only consider discrete words. '\_.' matches anything, including end-of-lines, and '\{-\}' matchces as few occurences as possible. HTH Regards, Andy -- Andrew Long andrew dot long at mac dot com -