Re: How to make gvim/vim-gtk3 behave exactly like vim

2024-01-19 Thread jr
hi,

On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
 wrote:
> I have installed and uninstalled gvim many times. I have to re learn
> some (many) keyboard combinations. Is there a safe way to mod gvim to
> make it behave exactly like vim on the terminal?

not sure I understand exactly, but you can create a '~/.gvimrc' to
complement your '~/.vimrc'.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgoZkkSXO%3D0Mmox7AM1mPtjg_6yyU0J4VkrChSh6ppmO%3Dg%40mail.gmail.com.


Re: DirDiffVim for folders, but files are missed?

2024-01-06 Thread jr
hi,

On Sun, 7 Jan 2024 at 05:20, K otgc  wrote:
> ...
> I'm stuck on:

why does my (proposed) awk solution not work for you, ie output of
lines formatted "md5sum file1, file2[, .., fileN]" ?  (admittedly
there's no "count", and I haven't coded in awk for a while so there
will be "neater" ways of writing, I'm sure)

> step: generating a list of md5 values, with their counts of how often they 
> occur (counts >1 indicate duplicates);
> step: select md5 values with counts >1;
> step: use grep to find that md5 with its (fileName.jpg?) in the original 
> (TakeoutAlbumYears?) file.
>
> Here's where I'm at:
> ...

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrxXuE3Eg%2BKBCdiyWjO%2BKqd4stg-ysz%3Df-WO4cZEyYZng%40mail.gmail.com.


Re: DirDiffVim for folders, but files are missed?

2024-01-06 Thread jr
hi,

(you do realise we're somewhat OT for this forum ? :-))

On Sat, 6 Jan 2024 at 15:00, K otgc  wrote:
> Thanks.
> I ran these commands, and I'm up to the final step of using those hash values 
> to look up all the matching filenames in the original md5 file.
> I'm researching a command for that, as command fdupes seems to be for files, 
> but I need to match up the md5 hash values?
> ubuntu@ubuntu:~/Documents$ find -H test1/ ! -type d -exec md5sum {} + > 
> sum.md5
> ubuntu@ubuntu:~/Documents$ ls
> NoMachine  sum.md5  test1  test2
> ubuntu@ubuntu:~/Documents$ cat sum.md5
> 3bc3be114fb6323adc5b0ad7422d193a  test1/test1.1/test1.1.1/test1.1.1file2.JPG
> 126a8a51b9d1bbd07fddc65819a542c3  
> test1/test1.1/test1.1.1/test1.1.1file1.JPG.json
> 3e7705498e8be60520841409ebc69bc1  test1/test1.1/test1.1.1/test1.1.1file1.JPG
> d8e8fca2dc0f896fd7cb4cb0031ba249  
> test1/test2/test2.2/test2.2.2/test2.2.2file1.JPG
> 126a8a51b9d1bbd07fddc65819a542c3  
> test1/test2/test2.2/test2.2.2/test1.1.1file1.JPG.json
> d8e8fca2dc0f896fd7cb4cb0031ba249  
> test1/test2/test2.2/test2.2.2/test2.2.2file1.JPG.json
> ubuntu@ubuntu:~/Documents$ sort|uniq -c|sort -nr sum.md5 |cut -d ' ' -f1
> 126a8a51b9d1bbd07fddc65819a542c3
> 126a8a51b9d1bbd07fddc65819a542c3
> 3e7705498e8be60520841409ebc69bc1
> 3bc3be114fb6323adc5b0ad7422d193a
> d8e8fca2dc0f896fd7cb4cb0031ba249
> d8e8fca2dc0f896fd7cb4cb0031ba249


ubuntu@ubuntu:~/Documents$ find -H test1/ ! -type d -exec md5sum {} + > sum.md5

why not use '-type f' ?  anyway, the following should do what you look for:

  $ find -H test1/ ! -type d -exec md5sum {} + | awk -f kotgc.awk

the awk code is:
--
{
  if ($1 in arr)
arr[$1] = arr[$1] ", " $2
  else
arr[$1] = $2
}

END {
  for (m in arr)
if (arr[m] ~ ".*,.*")
  print  m " " arr[m]
}
--

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrHoAXZ5ucWnSxRaWzsgHk1D6qjXQnZjT8E8qtq2yvz4w%40mail.gmail.com.


Re: DirDiffVim for folders, but files are missed?

2024-01-04 Thread jr
hi,

On Thu, 4 Jan 2024 at 13:11, K otgc  wrote:
> Diff worked, similar to Meld, with a clear list of what files (photos) are in 
> or not in directories.
> I'm stuck on the command to extract just the md5 values?
> Directory with photo files -> find -H directoryName/ ! -type d -exec md5sum 
> {} + >sum.md5 -> select Enter -> sort | uniq -c | sort -nr 
> checksum’sFileName.md5 -> select Enter -> not sure how to extract just the 
> md5 values?
>
> ubuntu@ubuntu:~/Documents$ cat sum2.md5
> 3bc3be114fb6323adc5b0ad7422d193a  test1/test1.1/test1.1.1/test1.1.1file2.JPG

the command you're looking for is 'cut(1)', eg '$ cat sum2.md5 | cut -d' ' -f1'.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgpw_f_qHJ5OSwcijYHeTh%3Dns3C2dfuFmpTR7uwgEMk7ug%40mail.gmail.com.


Re: Improving vim startuptime

2023-07-17 Thread jr
hi,

On Sun, 16 Jul 2023 at 21:40, Manas  wrote:
> ...
> But still yours is at 64ms and mine at 200ms. ...
> Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK 
> -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz 
> -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount 
> -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo 
> -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 
> -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders 
> -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 
> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include 
> -pthread -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions 
> -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g 
> -ffile-prefix-map=/build/vim/src=/usr/src/debug/vim -flto=auto -D_REENTRANT 
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1

long shot.  I have noticed (or so I think, never sat down to .. time
things :-)) that programs appear to start up a little faster  when
compiled with the '-fPIC' flag ?  (may, of course, be just an artefact
of the machine's configuration)

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrh0RzgMY-DZN9AF3XOZwX0_-W9Stc1H9z7ShPO_yrA9w%40mail.gmail.com.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-16 Thread jr
hi,

On Fri, 16 Jun 2023 at 17:28, 'Susan McElheny' via vim_use
 wrote:
>
> I have used VI on Unix for over 30 years ... how do I open another file 
> without having to go to the top with my mouse and select File, Open?  At the 
> command level I can just :vi "filename", ...

I've used Vim on Linux (Linuces ?) for .. several years, but, I've
never used ':vi "somefile.txt"',  only  ':e somefile.txt' , which
works for me.  hth.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgr7VXDJSN1JwNdueHk72btRc-J2gm-ew%2BS00MGpJL8tuw%40mail.gmail.com.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-16 Thread jr
hi,

On Fri, 16 Jun 2023 at 15:54, Robert Solomon  wrote:
> ...
> I learned there that vim is known to dislike non-standard terminal sizes.

??  why do you write this[*], when followed by:

> So I made the terminal windows smaller and it started to work.
> ...
> I was having trouble in ALL of the windows terminal programs.  The same 
> solution worked for all of them.

genuine question, am puzzled.

[*] not a .. rumour I had heard of.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgq1TCYwkJOoNuv7U3VrGwXbunyTiaDrgMogU%2BCLS5qDGQ%40mail.gmail.com.


Re: alternating lines ?

2023-03-27 Thread jr
On Mon, 27 Mar 2023 at 13:00, Igor Lerinc  wrote:
> ... when it is further down, and also text is intended a lot ...

if using GNU/Linux and depending on your file's contents, of course,
you could perhaps use 'indent' or such to reformat the text
beforehand.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrZfDXyiWmYis5jzExAXPLFynmDkWq9QKbQJjo-mzzmHA%40mail.gmail.com.


Re: alternating lines ?

2023-03-27 Thread jr
hi,

On Mon, 27 Mar 2023 at 07:33, Christian Brabandt  wrote:
> > "ledger" style.
> Like this https://vi.stackexchange.com/a/10162/71 ?

like that :-)  great, thanks.

-- 
regards, jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgqsEpLjX9J-sHZ%3DvTz8njhJ-UqmLYsSa6qPiug6A22Faw%40mail.gmail.com.


Re: alternating lines ?

2023-03-26 Thread jr
hi,

On Mon, 27 Mar 2023 at 05:08, Igor Lerinc  wrote:
>
> how to get sort of alternating lines ?
> not sure how to explain it, but if i want to have one line that is of 
> background of colorscheme, and line after that, to have like some sort of 
> deviation in terms of highlight. and line after this, to be again, ...

"ledger" style.  did a little googling but didn't get (any) useful results.

-- 
regards, jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgq8-19mYD9f_nFp_JXSwmJ7dUD7_UtzEed0D7rSh%3DNyVw%40mail.gmail.com.


Re: Can I copy/yank into and out of vim?

2023-03-05 Thread jr
On Sun, 5 Mar 2023 at 07:59, Tony Mechelynck
 wrote:
>
> On Sat, Mar 4, 2023 at 4:24 AM Angel M Alganza  wrote:
> >
> > On 2023-03-04 03:48, Tony Mechelynck wrote:
> >
> > > The reason for this dfference in behaviour is that xterm doesn't use
> > > the X11 clipboard (register + in Vim) but only the X11 selection ...
> > ...
> > I don't seem to find an explanation of the different between what you
> > describe as "in xterm you need to have some text selected" and whatever
> > the alternative (not having some text selected?) might be.  :-)

man 1 xterm.   man 1 xclipboard too is useful.

-- 
regards, jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgpP2MpvgBxNB_hEEUmtWOCKLt_NWJ89RwnUH2PyCDpRBw%40mail.gmail.com.


Re: Yanking doesn't yank

2023-01-12 Thread jr
hi,

On Thu, 12 Jan 2023 at 14:59, 'Ottavio Caruso' via vim_use
 wrote:
> I have a block of text (say, 10 lines) that I want to copy from
> somewhere to somewhere else.
>
> I put the cursor on the first line, press capital v (shift + v); this ...
> ...

we all work differently :-).  I do not use visual mode in that
situation, just note the line number of the first, then move to the
last line, and, eg, ':123,.y'.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgqpQ%3D5KFt7W4e_LC8AFS73rDhYqzFtN2ok4sZmRaoykMA%40mail.gmail.com.


Re: how to get more efficient writing code

2023-01-03 Thread jr
hi,

On Wed, 4 Jan 2023 at 06:44, Igor Lerinc  wrote:
>
> can you reccomend me some youtube chanells, or videos, where programmers 
> actually use Vim to edit code, and work with all that complex stuff.
> just to give me idea, how they do it. so i can get comfortable if i'm doing 
> it efficient enought

if you're ok with a book instead of .. television :-), I can recommend
"Practical Vim" by Neil Drew.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrJe50RJbk3EB3ocyXCrZbc%2BQkoGxxpe9Hf8g0vs4x%2B0g%40mail.gmail.com.


Re: Gvim taking a minute or more to start

2022-09-12 Thread jr
On Mon, 12 Sept 2022 at 15:32, Andrew Bernard  wrote:
> ...
> static const char *required_env_vars[] = {
> #ifdef WIN32
>"HOMEDRIVE",
>"HOMEPATH",
> ...

nice.

> But if you are running in cygwin I would have thought that shell only
> uses a UNIX environment, so $HOME would be all that is needed. ...

@A.S.Budden : ... and HOME and some other environment variables are
best treated as "read-only".

@c.willis111 : agree, and it would be interesting if someone who uses
the Windows environment variables (corporate, I guess) could "chime
in".

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgpmMCKumcp8zW2u%3DeY9qpR13KiyKFJrcXh7O6ZvKLKvgQ%40mail.gmail.com.


Re: Gvim taking a minute or more to start

2022-09-12 Thread jr
On Mon, 12 Sept 2022 at 14:26, A. S. Budden  wrote:
> ...
> Oooh, that was a good shot! Setting the HOME environment variable seems to 
> work (again, I've only tested this on one machine so far; I'll try the other 
> tomorrow). It doesn't seem to matter what it's set to: I tried 
> c:\cygwin\home\al and also just c:\ and it both cases Vim started very 
> quickly.

great.


> Assuming it works on the other PC then that feels like a good & simple fix, 
> but it'd be nice to understand why Vim goes slowly without HOME set to 
> anything.

fwiw, "it'd be nice to understand" why Microsoft does without a HOME ;-).

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgqFM4gXqkH8q3j96rvEtRTv5h%3Dd59O0w0FSu4vWh-bhuA%40mail.gmail.com.


Re: Gvim taking a minute or more to start

2022-09-09 Thread jr
hi,

On Fri, 9 Sept 2022 at 12:39, A. S. Budden  wrote:
> ...
>> I tried removing the HOME environment variable from cygwin (it's not set to 
>> anything in the Windows system, whereas it's set to /home/al in cygwin) and 
>> ran the command again from the cygwin terminal and it took a long time to 
>> start. I reset HOME to /home/al and it still took a long time to start! 
>> Opening a new cygwin terminal resulted in a quick start again. This is 
>> really weird!

(shot in the dark, have no MS Windows) what happens if you set a HOME
variable under Windows?

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrmMEO1URPWr-FV4_gi7GsH%2BaTeFKVM59aKrdb40cC0dQ%40mail.gmail.com.


Re: Dry run for 'make install`?

2022-07-25 Thread jr
On Mon, 25 Jul 2022 at 13:29, rwmit...@gmail.com  wrote:
>> 'make -n', 'make -n install'.
> while that is technically correct, 'make -n install' typically outputs a lot 
> of text that can be tedious to sort thru,



>  when the real questions is - I just want to see where files are going to be 
> copied.

personally, I like to wrap './configure's and or 'make's with a
'script -c make build-log' or similar, it gives me more
time/opportunity to "process" the details.  to then "see where files
are going", I'd use (eg) 'grep'.


regards, jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgotHovmoKDAn3Z3%3DdB%3D8PNWcWZo%3DACWJLN-AC8Vi1bYqQ%40mail.gmail.com.


Re: Dry run for 'make install`?

2022-07-25 Thread jr
hi,

On Mon, 25 Jul 2022 at 12:25, 'Suresh Govindachar' via vim_use
 wrote:
> Is it possible to do a dry-run of `make install`? If so, how exactly? If
> not, are there other ways to find out what would happen on executing
> `make install`?

'make -n', 'make -n install'.


regards, jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgoYA7cP8nMMWU4Tp5ZPVtc-NT0DUN04XWHo2rPfDw%3DWBA%40mail.gmail.com.


Re: Manual join function and encoding

2021-10-04 Thread jr
hi,

On Mon, 4 Oct 2021 at 10:10, Julius Hamilton
 wrote:
> ... the end of line character “$”? ...

there is no "real" character, its conceptual, the end of line
"anchor".  try 'cat file.txt' vs 'cat -A file.txt' for illustration.

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgrqTM%2B6yUtJtpeuH7NokOnBuoECCWBM-zA4X4H2c%3DyDgA%40mail.gmail.com.


Re: Temporarily edit a vim document without actually changing file

2021-09-09 Thread jr
hi,

On Thu, 9 Sept 2021 at 12:11, Julius Hamilton
 wrote:
> I was curious, is there any mode or plug-in in Vim where you could preview 
> the result of a command,

if after executing a command the result is not what you expected, will
a simple "undo" not do?

> for example a global search and replace function, but by default the edit has 
> not actually been written to file, and that requires a specific command to 
> actually save the previewed changed?
>
> Thank you,
> Julius

-- 
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAM-dBgqKG2Lj10A9hZ8uL6OQsGGMHkF2%2BtZb86F6wrL%2BcLUN6A%40mail.gmail.com.


Re: Separating multiple user-defined commands with | (bar)

2013-09-19 Thread Sam Fourman Jr.
On Wed, Sep 18, 2013 at 6:48 PM, Gary Johnson garyj...@spocom.com wrote:

 On 2013-09-18, Sam Fourman Jr. wrote:
 
  On Wed, Sep 18, 2013 at 4:47 PM, Paul wrote:
 
  On Wednesday, September 18, 2013, Ben Fritz wrote:
   :he :command-bar
 
  That certainly helped.  Thanks, Ben.
 
  so what is the correct way to say | is it actually bar?
  I have always called it pipe

 It depends on the context in which it's being used.


Thanks for the input guys. I was thinking of actually making a few FreeBSD
tutorial videos.. then show the install of vim/gvim.. and that got me
thinking..
What do I call the darn charterers when I refer to them.. things like:

| ` { [ ~

or when you give a command with a parameter like  vim --help
how do you refer to the -- part... I could say minus - minus or I could say
tac - tac... I suppose there is no universal standards that I know of...
-- 

Sam Fourman Jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_use group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Separating multiple user-defined commands with | (bar)

2013-09-18 Thread Sam Fourman Jr.
On Wed, Sep 18, 2013 at 4:47 PM, Paul paul.domas...@gmail.com wrote:

 On Wednesday, September 18, 2013, Ben Fritz wrote:
  :he :command-bar

 That certainly helped.  Thanks, Ben.


so what is the correct way to say | is it actually bar?
I have always called it pipe
-- 

Sam Fourman Jr.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
vim_use group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Launch vimscript from Win system

2012-11-06 Thread Charles E Campbell Jr

Marc Weber wrote:

Excerpts from niva's message of Tue Nov 06 16:32:26 +0100 2012:

I would like to launch those vimscript functions by external system 
call.(system win32).

What do you mean by external sytsem call.?

The only way to communicate with vim from the outsied is by using
client-srever or the netbeans api.

You can't call viml code from the outside (like using a dll) - all you
can do is write input to a file, call vim whih writes output to a
second file, read result like things, and little nicer by using the
client-server features. :h client-server :h netbeans

I'd consider rewriting your code in another language such as python
- depending on how much it is. You can run python from within vim, but
also outside of Vim

I think I'm going to disagree here -- perhaps vim's -c option will 
help.  See :help -c .


As an example, consider

vim -c echo 'hello' -c sleep 3 -c q

which will run vim, show hello in the messages, wait 3 seconds, and 
then quit.  So, you presumably could


vim -c call MyFunction() -c q

and vim will run your function.

Now, I agree with Marc that I don't really know what you mean by running 
vim via an external system call.  How do you intend to launch vim?  If 
by an icon, you presumably could set its properties so as to run vim 
with the -c arguments as I showed.  If you're using cygwin or the 
dos-shell, again, you could run vim as shown (you may need to specify 
the full path).


I also agree with Marc that you can't really interact with vim via an 
external interface other than via the client-server or netbeans 
mechanisms (well, mostly not; I've managed to put together something 
that lets gdb talk to vim under linux/unix systems).


Regards,
Chip Campbell



--
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: Spellcheck on Tex-Files

2012-10-31 Thread Charles E Campbell Jr

xxx wrote:
I would really appreciate a specific example on how to acomplish this. 
My last try is syn region texComment matchgroup=texStatement 
start='{tabular}{' end='}' \ contains=@NoSpell but it doesn't work... 
You almost had it earlier; you need to have your new region contained in 
texDocZone:


   syn region texTabularPos matchgroup=texStatement 
start='\\begin\s*{\s*tabular\s*}{' end='}' fold 
contains=@texFoldGroup,@texDocGroup,@NoSpell containedin=texDocZone


That may not be the only region that it needs to be contained in, however.

I use my :HLT!  command available with my plugin hilinks.vim: 
http://www.drchip.org/astronaut/vim/index.html#HILINKS


Then you can move your cursor around and determine which syntax region 
is currently active under the cursor.


Regards,
C Campbell

--
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: Issue with netrw copy and move

2012-10-24 Thread Charles E Campbell Jr

Marcin Szamotulski wrote:

On 16:49 Tue 10 Apr , Charles Campbell wrote:

A Loumiotis wrote:

Hi,

I'm facing exactly the same problem that Bart mentioned with netrw
v146a as well.  I'm using gVim 7.3 on Windows XP SP3.
I'm not sure what other MS-DOS commands to use besides MOVE and
COPY to set the variables g:netrw_localmovecmd and
g:netrw_localcopycmd.

Any ideas?


Try v146c (http://www.drchip.org/astronaut/vim/index.html#NETRW).  I'd
like to know if it works before giving it to Bram for major distribution.

I'll be trying to get mingw and compile vim for native windows myself
soon.  I had a native vim under Windows, but that was before the latest
updates to cygwin meant that the cygwin compiler no longer handles
native windows executable production.

Regards,
Chip Campbell

--
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

Hello,

It seems that the function mathmenu#StartMathMenu() contains small bug in the
definition of maps: PlugMathMenuSubscript, PlugMathMenuSuperscript and
PlugMathMenuMathify. The following I found in autoload/mathmenu.vim:

vno buffer silent PlugMathMenuSubscript escgv:B call 
mathmenu#Subscript()cr
vno buffer silent PlugMathMenuSuperscript   escgv:B call 
mathmenu#Superscript()cr
vno buffer silent PlugMathMenuMathify   escgv:B call 
mathmenu#Mathify()cr

I guess in all three the B should be just C-U, or just:
vno buffer silent PlugMathMenuSubscript :c-ucall 
mathmenu#Subscript()cr
vno buffer silent PlugMathMenuSuperscript   :c-ucall 
mathmenu#Superscript()cr
vno buffer silent PlugMathMenuMathify   :c-ucall 
mathmenu#Mathify()cr

And this works here just fine.


Hello!

Sorry its taken so long to reply to this (I think that my home computer 
downloaded the email and I didn't see it on my work computer).


Actually the :B is intentional ; what's not is the missing plugin that 
needs to support this (vis.vim).  I'll make the vis plugin part of the 
mathmenu package.  You can get vis by itself from my website:  
http://www.drchip.org/astronaut/vim/index.html#VIS .


Regards,
C Campbell

--
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: OT: The so called steep learning curve of vim...

2012-10-02 Thread David H. Lynch Jr.
Vi is present on nearly every *nix system in existance, from big
servers to whatever is in your refridgerator. It is also on OSX. 
Vi is essentially a subset of vim. If you know vim you know vi. If you
constantly need to work on random systems anywhere - you are stuck
knowing the basics of Vi.
I think Vi without Vim is pretty bad as an editor - but I can still use
it. My fingers know what to do. 
There is nothing else this is true of. 
Vim is Vi on steroids.It is the default Vi in many places, but where it
isn't or windows where there is no decent text editor, Vim can easily be
installed when you are going to be working for more than a few
minutes.  

I personally do not use but a fraction of the power of Vim, I have been
using it for almost a decade and I am a novice. some things are hard to
learn. but the power of even my limited knowledge is enormous. Sure
there are other editors that are really good. I have used and loved many
others, and some were friendlier. But none were everywhere. 
So fine it takes a long time to get to the point where you can change
the 3rd to last word in each line to uppercase, prepend the first word
in the line, and append the line number in octal. But I am sure someone
here can tell you how to do that. 

If you are going to live in eclipse and no where else - then you
probably should learn eclipses built in editor. 
There are other editors that will be the best choice for other specific
scenarios. 
My work dictates that I must know Vi fairly well. And Vim is available
- usually the default Vi in most of the places I work. 
I don't care about the learning curve. I care more about the fact that
there are so many other tools like email, or ... that have their own
limited editing capability built in that do not work like Vim. Anyone
have a vim plugin for eclipse ? ThunderBird ?







   





On Tue, 2012-10-02 at 16:04 +0200, Marc Weber wrote:
 vim  emacs: Well - the whole discussion is pointless because we're not
 talking about what should be learned.
 
 Even notepad can do things Vim can't: Open registry dump files!
 
 So use the right tool for a job. And if you want to learn about Vim -
 and you're helpless - then ask somebody knowing how to find the tool, or
 use the website. Its not a Vim problem. Yes - at the beginning I didn't
 knew how to quit Vim - yet I learned it. I even was too dump to
 understand the press :q  because : is often used as separator - and I
 only experienced the Windows world before.
 
 You all say productivity of Vim is great - well - yes after writing tons
 of plugins (depending on what you do) - and even then you feel limited.
 Or why do people start writing eclim like bridges (talking about
 programming).
 
 Now is Eclipse more productive than Vim?
 Eclipse can highlight used and unused #ifdef regions, Vim cannot
 (AFAIK).
 Thus given infinite amount of time - which tool will be more productive
 if your task is to understand fast which lines are actually used?
 
 So don't forget that there are also other tools - and use what it fits
 your needs.
 
 And if you're worried that new users fail to get started with Vim - then
 teach them how to use google instead of telling them where to find help.
 
 Linux users will soon learn that there is man, Windows users are used
 to F1 and a Help menu - and everything exists and works.
 
 However 
 
 :helpgrep mailinglist does not show anything - WHY?
 :helpgrep irc shows nothing (but my own documentation of my plugins! [1])
 :helpgrep chat (same)
 :h community (does not exist)
 :helpgrep community (one hit: on the netbeans page)
 
 But its us helping new users and giving them those hints
 
 Should we fix that?
 
 So what about adding a help file about the community containing pointers
 to the internet relay chat, and the mailinglist?
 
 If productivity was the thing you want to measure - and if you're a
 writer - and think Vim is the tool I always tried to learn - then also
 have a look at plover: http://plover.stenoknight.com/
 It may allow you to write with 200WPMs and more after some training.
 Maybe that's providing a bigger productivity boost - than all Vim
 knowledge.
 
 So how do you feel about the community? Should we be mentioned in the
 help files?
 
 How much of you (readers of this mailinglist) would have benefited
 knowing about this mailinglist or the #vim irc chat room earlier?
 
 Marc Weber
 
 [1]
 vim-addon-haskell.txt|40 col 3| irc.freenode.net: MarcWeber
 vim-addon-manager-additional-documentation.txt|1147 col 21| Of course #git on 
 irc.freenode.net is willing to help if you have trouble
 vim-addon-manager-getting-started.txt|38 col 6| Join irc.freenode.net, /join 
 #vim. Ask there. VAM has many users
 tovl.txt|145 col 16| MarcWeber on irc.freenode.org or mail: 
 marco-owe...@gmx.de
 lang_haskell.txt|133 col 16| MarcWeber on irc.freenode.org or mail: 
 marco-owe...@gmx.de
 


-- 
You received 

Re: :E and current window

2012-09-01 Thread Charles E Campbell Jr

Mark Volkmann wrote:

Sometimes when I have split windows and press :E to explore the file system, 
the cursor jumps to a different window than the one I was in when I pressed :E. 
This is very frustrating because I have to move back to the original window to 
select a file. What could cause this?

   
Please try the latest netrw; I'm not saying it will fix your problem (as 
I don't have a Mac), but there was a bug with an open buffer, :split, 
etc that has been fixed.  You may get it from my website:  
http://www.drchip.org/astronaut/vim/index.html#NETRW .


Regards,
Chip Campbell

--
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: vim: mpage 1 page down instead of M page down

2012-08-27 Thread Charles E Campbell Jr

ping wrote:

Hi Dr. chip (or other folks if Dr. chip is busy...):
about the MPage plugin, it looks the pagedown pageup keys don't 
work for me...
whenever I scroll back/fwd (c-f/b, pgup/pgdn), it only scroll one page 
amount of lines, not multiple pages lines...


any hints?

Hello!

* are you using the latest version from my website? 
http://www.drchip.org/astronaut/vim/index.html#MPAGE (v1p)
* if you're using vim (ie. not gvim), do your pgup/pgdn keys produce 
sequences that vim will respond to?

  :map pageup :echo pageup works!cr
  :map pagedown :echo pagedown works!cr
 and then press the pageup and pagedown keys to see what happens...

Regards,
Chip Campbell

--
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: vim: netrw: 2 issue about list style

2012-08-27 Thread Charles E Campbell Jr

ping wrote:

hi Dr.chip/folks:
It looks I run into an issue about netrw.

*** the issue1: g:netrw_liststyle= 4 doesn't work

the manual says:
 use the tree style as default listing style.
 let g:netrw_liststyle= 4

but It doesn't work for me, when I tried this:
 vim ftp://ping@127.0.0.1//

Actually, my copy of the manual says:

  *g:netrw_liststyle*  Set the default listing style:
= 0: thin listing (one file per line)
= 1: long listing (one file per line 
with time

 stamp information and file size)
= 2: wide listing (multiple files in columns)
= 3: tree style listing

so you want to use

 let g:netrw_liststyle= 3

to get the tree style listing.

Regards,
Chip Campbell


--
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


problems with gf

2012-08-25 Thread David H. Lynch Jr.
I use gf heavily to edit the file under the cursor. 

I am working on some projects with filenames that contain characters
like [ and ] that are not handled by the gf command. 

has anyone got any ideas on working around this ?


-- 
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: Netrw settings - Problem with very long filenames

2012-08-22 Thread Charles E Campbell Jr

Hans Dampf wrote:

Hello,
I have run into a problem regarding the directory listing of netrw in vim.
Im using gvim 7.3 under Win7 64bit.

I use netrw_liststyle=1 (the long view with date) .

My trouble is that at times the length of filenames in a directory can 
vary from something like main.tpl.php to something like 
content.category.something_else.special.bonus.name.tpl.php which 
destroys the alignment of the time-column.


Is there any way to set the width of the columns for the filenames to 
avoid this issue?
Try v146m of netrw, available from my website 
(http://www.drchip.org/astronaut/vim/index.html#NETRW), and see the help 
for g:netrw_dynamic_maxfilenamelen .
You can already change the length; see  :help g:netrw_maxfilenamelen.  
With the dynamic setting enabled, the maximum filename length is used 
(tnx to Takahiro Yoshihara).


Regards,
Chip Campbell

--
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: bash syntax highlight incorrectly (-print)

2012-06-16 Thread Charles E Campbell Jr

Peng Yu wrote:

On Sat, May 19, 2012 at 10:08 PM, Charles E Campbell Jr
drc...@campbellfamily.biz  wrote:
   

Peng Yu wrote:
 

Hi,

The following code doesn't get syntax highlighted correctly (the for
loop). I'm not sure who I should report the bug to. Does anybody know?

#!/usr/bin/env bash

files=(`find . -type d -print`)

for ${files[@]}
do
done

   


Look into the file  vim73/syntax/sh.vim; therein you'll find the
maintainer's name and (usually) his/her email.
 

OK.

   

It just so happens that I saw this, and as I'm the maintainer ... well, try
http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax and download
sh.vim.gz .  Decompress (with gunzip; if you're a Windows user, see  :help
vimball-windows  ), and place in $HOME/.vim/syntax  (ie. your personal
syntax scripts).  You'll be getting v124 of syntax/sh.vim.  Please try it
with a number of scripts and let me know, please, of any further problems.
  I haven't submitted it to Bram yet...
 

No, the ')' is not correctly highlighted. Did you try my example? And
you didn't see the problem?

   
I haven't been near a computer for about two weeks; now that I am -- 
I've tried your example and it displayed fine.


Regards,
Chip Campbell

--
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: align columns

2012-05-28 Thread Charles E Campbell Jr

sinbad wrote:

On May 28, 6:51 pm, Charles E Campbelldrc...@campbellfamily.biz
wrote:
   

On May 28, 2012, at 9:33 AM, sinbadsinbad.sin...@gmail.com  wrote:

 

i have a text as follows.
   
 

apple  banana
cat   dog
elephant fan
goat hen
   
 

i want to make the above text aligned as follows.
   
 

apple  banana
cat dog
elephant fan
goat   hen
   
 

is there any simple technique without doing to manually.
   

See ifhttp://www.drchip.org/astronaut/vim/index.html#ALIGNhelps (in particular, 
the \tsp mapping).

Regards,
C Campbell
 

while installing using tarball, i'm getting the following errors.
any idea why ?


***vimball*** Source this file to extract it! (:so %)
removed 6 files
Vimball Archive
extractedplugin/AlignPlugin.vim: 41 lines
Error detected while processing function vimball#Vimball:
line  131:
E474: Invalid argument: silent w! ++enc=1 /home/sinbad/.vim/plugin/
   

Sounds like you have an old vimball; in v32 there's a note that says:

  * fenc extraction was erroneously picking up the
end of the line number when no file encoding
was present.  Fixed.

So you should update your vimball plugin; you can also get it from my 
website:


 http://www.drchip.org/astronaut/vim/index.html#VIMBALL

Its up to v35 now.

Regards,
C Campbell

--
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: vim: Align plugin (Dr.chip) for unicode (e.g. Chinese/Japanese)

2012-05-20 Thread Charles E Campbell Jr

ping wrote:

hi experts (Dr. chip):
I tried Align plugin and found it cool! now comma (or other) seperated 
files are not an issue...

http://www.drchip.org/astronaut/vim/index.html#ALIGN
(plus the Sum plugin now I can even calculate the value like Excel..)
http://www.drchip.org/astronaut/vim/index.html#SUM

the only obvious issue is that it might have issue align colomns when 
there are chinese/Japanese charactors


are there any workaround?
Can you give me an example file where there's a problem?  Also, see if 
the help for :align-utf8 helps you.

Is the problem you're having with Align or with Sum?

Regards,
Chip Campbell

--
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: Howto format latex tables?

2012-05-19 Thread Charles E Campbell Jr

Gary Johnson wrote:

On 2012-05-16, skeept wrote:
   

If I have a latex table with long line I always enter newline after //
But if I select the table visually and use the Q command to format it
puts the // in the middle of the text.

I would like to know if there is an option to tell vim not format
the table, but enter a newline after it sees a //.

Any other options on how to format latex tables?
 

I use Chip Campbell's Align plulgin:

 http://vim.sourceforge.net/scripts/script.php?script_id=1195

Install the plugin, open your LaTeX file, visually-select the lines
of your table (V), and type \tt.
   

Thanks, Gary!

In addition, there's also AutoAlign which works with Align.vim...

AutoAlign typically allows one to auto-align on =s as one types.

a=1
bbb=2
z=4

becomes, as one types: (the following looks correct in monospaced fonts)

a   = 1
bbb = 2
z   = 4

It also provides AutoAlign-ing for a number of other things, such as 
Latex tables (it triggers auto-align'ing on pairs of backslashes).


You can get AutoAlign from:

http://vim.sourceforge.net/scripts/script.php?script_id=884
  -or-
http://mysite.verizon.net/astronaut/vim/index.html#AUTOALIGN   (most 
up-to-date)


To install it:

vim autoalign.vba.gz
:so %
:q

(presuming that you have gunzip so that the vimball can be decompressed; 
if you're on Windows,

 see  :help vimball-windows  for how to get a gunzip tool)

Regards,
Chip Campbell

--
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: bash syntax highlight incorrectly (-print)

2012-05-19 Thread Charles E Campbell Jr

Peng Yu wrote:

Hi,

The following code doesn't get syntax highlighted correctly (the for
loop). I'm not sure who I should report the bug to. Does anybody know?

#!/usr/bin/env bash

files=(`find . -type d -print`)

for ${files[@]}
do
done
   


Look into the file  vim73/syntax/sh.vim; therein you'll find the 
maintainer's name and (usually) his/her email.


It just so happens that I saw this, and as I'm the maintainer ... well, 
try http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax and 
download sh.vim.gz .  Decompress (with gunzip; if you're a Windows user, 
see  :help vimball-windows  ), and place in $HOME/.vim/syntax  (ie. your 
personal syntax scripts).  You'll be getting v124 of syntax/sh.vim.  
Please try it with a number of scripts and let me know, please, of any 
further problems.  I haven't submitted it to Bram yet...


Regards,
Chip Campbell

--
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: netrw-plugin: Hide files with names starting with dot

2012-05-19 Thread Charles E Campbell Jr

Paul wrote:

Ben Fritz wrote:
   

On Wednesday, May 16, 2012 10:26:37 AM UTC-5, Paul wrote:
 

One thing I found not to be remembered is setl ts=14 (or whatever
number you use to get the file timestamp column closer to the
filename column).  Is there a way to have this setting stick?
   

I don't have input for your main problem, sorry about that.

But this one I can handle.

netrw sets the 'netrw' filetype on its buffers.

So simply use a FileType autocmd, or a filetype plugin file (in the
after directory).

I.e., either create this autocmd:

au FileType netrw setl ts=14

or create file ~/.vim/after/ftplugin/netrw.vim with contents:

setl ts=14
 

Ben, thanks for that.  Unfortunately, the specific local value for
tabstop depends on the longest filename of interest (not necessarily
the longest filename in the directory.  This is set on a per-directory
basis (and may change if the directory contents change).  I just need
the local tabstop value to stick to the buffer for a particular
directory.  So I need (or rather, want) vim to treat a netrw window in
the same manner as it does other buffers.  That way, even if I close
the window, then open it again (for example, using :e Directory/Path),
the ts value stays the same as it was set to last time.

I get the feeling that I'm asking for the impossible, but there have
been occassions in the past in which I have been pleasantly surprised.

   
Netrw sets   g:netrw_maxfilenamelen  to 32 by default; you can change 
that as you wish (ie. via .vimrc, etc).  It is used to set netrw 
buffers' local tabstop value.  See :help g:netrw_maxfilenamelen .


Regards,
Chip Campbell

--
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: :help WITHOUT split screen

2012-04-01 Thread Charles E Campbell Jr

Tarlika Elisabeth Schmitz wrote:

On Fri, 30 Mar 2012 15:32:59 -0400
Charles Campbellcharles.e.campb...@nasa.gov  wrote:

   

Tarlika Elisabeth Schmitz wrote:
 

On Fri, 30 Mar 2012 13:17:44 -0400
Charles Campbellcharles.e.campb...@nasa.gov   wrote:


   

Manpageview (see
http://www.drchip.org/astronaut/vim/index.html#MANPAGEVIEW), which
handles several kinds of help (vim, manpages, perl, php, and
python), has a TMan command, which provides help in a separate tab.

 

Just installed (v24c).

There doesn't seem to be a TMan though.

   

I've now loaded v24d on my website; its the one with TMan.
 


I installed v24d but the plugin/manpageviewPlugin.vim is from 16/9/2008
and doesn't define TMan. (unless I've done something dumb?)

   

Hello!

I just downloaded v24d myself from my website -- and TMan is there (its 
actually defined as a command in manpageviewPlugin.vim).  It worked for 
me when I tested it, too.


Please check again... (and be sure that you're actually getting v24d, 
it'll say so in manpageview.vim -- perhaps the browser cache is causing 
problems?).


Regards,
Chip Campbell


--
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: relativenumber is very very slow.

2012-03-11 Thread Charles E Campbell Jr

Yichao Zhou wrote:

Hi everyone.
   When I write tex, I always find that typing in vim is very very lag
when the file become longer.  I used to think this is the problem of
latex's complicated syntax.  So I just ignore it.  But today I find
that after disabling 'relativenumber' or change it to 'number' make
vim behave like a rocket.  I have never enjoyed a such so smooth VIM!

Why 'relativenumber' will cause vim so lag even if I just type.  Also
I found that 'relativenumber' will cause mouse scrolling must slower
than 'number'.  I think it should not be so slow since it do not do
many thing.  There must be some bugs in vim.  At least it should give
a warning in document to tell the user this option will heavily slow
down the VIM.

   

For speeding up Latex+syntax highlighting:

  :he tex-slow
  :he tex-folding

Hope that helps,
Chip Campbell

--
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: Dr Chip

2012-03-03 Thread Charles E Campbell Jr

Benjamin R. Haskell wrote:

On Fri, 2 Mar 2012, Kartik Agaram wrote:


Holy crap, I just realized that Dr Chip's vim page is gone.

http://mysite.verizon.net/astronaut/vim
http://drchip.0sites.net/astronaut/vim

Has anyone else noticed this? Is it moved somewhere new?


Dr. Chip (Charles Campbell) posted on this list about the situation 
back in August:


https://groups.google.com/d/topic/vim_use/OKue3zK9p3s/discussion

There wasn't a resolution on-list, but I'm sure the site hasn't just 
vanished entirely.


Its a new situation -- I'd moved the website to drchip.0sites.net -- 
but the new website host has apparently decided to fold.  There was no 
warning that the website was going down, although some ftp access to 
grab stuff is still present for a couple of weeks.  The website as 
hosted is really a mirror, anyway, of what I have on my own computer.


So, I'm (again) in a process of finding a new webhost.  Unfortunately,  
unlike before, I won't be able to put in redirects (well, I suppose I 
could, but they wouldn't be allowed to work).


I'll be sending out a note when I get a new host.

Regards,
Chip Campbell

--
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


problems building vim with cygwin (Make_cyg.mak)

2012-02-29 Thread Charles E Campbell Jr

Hello,

I've been having some problems compiling vim with

  make -f Make_cyg.mak

using cygwin and vista.  In particular,

gobj/os_win32.o:os_win32.c:(.text+0x1f5): undefined reference to `_wcsicmp'
gobj/os_win32.o:os_win32.c:(.text+0x24f2): undefined reference to `__wmkdir'
gobj/os_win32.o:os_win32.c:(.text+0x3d10): undefined reference to `__wopen'
gobj/os_win32.o:os_win32.c:(.text+0x3da1): undefined reference to `__wfopen'
gobj/os_mswin.o:os_mswin.c:(.text+0x19da): undefined reference to `__wchdir'
gobj/os_mswin.o:os_mswin.c:(.text+0x1b13): undefined reference to `__wstat'
gobj/os_mswin.o:os_mswin.c:(.text+0x1ee4): undefined reference to 
`__wfullpath'
gobj/os_mswin.o:os_mswin.c:(.text+0x201d): undefined reference to 
`__wfullpath'
gobj/os_mswin.o:os_mswin.c:(.text+0x3f0e): undefined reference to 
`_IID_IPersistFile'
gobj/if_cscope.o:if_cscope.c:(.text+0x26b5): undefined reference to 
`__open_osfhandle'
gobj/if_cscope.o:if_cscope.c:(.text+0x26f9): undefined reference to 
`__open_osfhandle'


I tried searching for the libraries:  nm -A *.a */*.a */*/*.a | fgrep wmkdir

but was unable to find the library holding these functions.  Help would 
be appreciated!


Regards,
Chip Campbell

--
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: Problems with EasyMotion Plugin (gVim)

2012-02-08 Thread Charles E Campbell Jr

Xell Liu wrote:

EasyMotion plugin includes a folder named autoload which should be
put in your vimfiles directory too. Please read :help autoload in
Vim help for further information.
   
May I point out that if you'd made the EasyMotion plugin into a vimball 
that this problem would not occur?


Regards,
C Campbell

--
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: autoalign and html

2012-02-01 Thread Charles E Campbell Jr

Cesar Romani wrote:

On 30/01/2012 10:04 a.m., Marcin Szamotulski wrote:
 On 09:51 Mon 30 Jan , Charles Campbell wrote:
 Marcin Szamotulski wrote:
 You can check the AutoAlign version (v14i) from:
 http://drchip.0sites.net/astronaut/vim/#AUTOALIGN

 Best,
 Marcin

 On 18:47 Sat 28 Jan , Cesar Romani wrote:

 I'm using wim 7.3.420 on windows 7 with the latest version of
 AutoAlign. Whenever I edit a html file and try to close table
 with  I get:

 
 Error detected while processing function AutoAlign:
 line   70:
 E108: No such variable: b:autoalign
 

 That doesn't happen with other tags, only withtable

 Many thanks in advance,

 Hello,

 Like Marcin S, I don't see an error withtable  in *.html files
 using v14i.
 I didn't say I don't see an error ;) [I did not try] - this is my
 personal experience with (Auto)Align plugin to test the most recent
 version :).

 Cheers,
 Marcin

Thanks Marcin and Chip, it works with v14i. I tried to update AutoAlign
with GLVS and I thought it'd update to the latest version but it wasn't
the case.
V13 is the latest version released to vim.sf.net.  My website has more 
experimental versions.  Eventually, for example, I will release v14...


Regards,
C Campbell

--
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: Display messed up

2012-01-31 Thread Charles E Campbell Jr

Marco wrote:

On 2012-01-31 Tim Chasev...@tim.thechases.com  wrote:

   

Hmm… good question. My .Xresources file says:

Rxvt.font: xft:Mono:pixelsize=13
   

Was that  for the good font  or the bad font?  And is it
only dependent  on the font-name,  or does it  behave if
you just change the font size?
 

I just  did some  more tests. The  result: It  occurs with
different fonts and different  font sizes. So, probably no
font issue.

   

Just to add to the pool of data, what does the output of
:version have  to say about  builtin_terms, terminfo
and  termresponse  (and   note  there's  a  difference
between +  and ++  for some  of those  settings). It
might  also helpful  to  know the  settings for  various
term-related settings:

:set ttybuiltin? term? tenc?
 

++builtin_terms +terminfo +termresponse

:set ttybuiltin? term? tenc?
ttybuiltin
term=rxvt-unicode
termencoding=

Hopefully  this sheds  some  light on  the  source of  the
trouble.  I have  to admit  that  I'm no  expert in  those
things, it had always worked for me.
   


I suspect that your termcap/terminfo database entry may be incorrect.

If your system is using terminfo (as opposed to termcap)...

infocmp ${TERM}   -- will display the terminal settings for your current 
$TERM .  You may wish to save the output (ie.  ...  ${TERM}.info)


Then snoop on vim to see what its issuing:

script snoopy
vim somefile
:q
exit

The snoopy file (pls be sure that you don't already have such a file 
before doing this).  Check that the escape sequences work on your 
terminal as they're supposed to.  I'm afraid you'll probably have to 
google the codes (probably looking for ansi escape sequences will help).


Alternatively, see if you can find a terminfo entry for your ${TERM} via 
google and use infocmp to compare what you have vs what the internet 
version has.


Good luck!
Chip Campbell

--
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: Strange highlighting

2012-01-25 Thread Charles E Campbell Jr

Phil Dobbin wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/01/2012 21:41, Charles Campbell wrote:
   

Phil Dobbin wrote:
 

[...]

   

As a follow up to this I've discovered the odd highlighting only
occurs when passing an argument to Vim i.e `vim .bashrc`

If I start Vim   then edit the same file all is OK.

   


   

Well, I was thinking that perhaps your termtype database was incorrect,
but that should affect :e .bashrc, too.

So, what's the filetype?

   vim .bashrc
   :echoft

Do files other than shell script files appear odd?

Does

   vim -u NONE .bashrc
   :set nocp
   :syn on

have odd highlighting?
 




Running the first instance the filetype returns `sh`.

In the second there's no odd highlighting when the commands are run.
   
I'm afraid that I'm not certain what you're saying here -- does the 
third question, with vim -u NONE .bashrc, have no odd highlighting?
In that case, it seems likely that you've got a plugin problem or 
something odd with your .vimrc.  Would you care to post your .vimrc?

If its a plugin problem, may I suggest that you

  cd .vim
  mv plugin PLUGIN
  mv ftplugin FTPLUGIN
and then move files, one at a time, from PLUGIN (or FTPLUGIN) to their 
corresponding lowercase directory and try  vim .bashrc, looking for 
odd highlighting.  When it occurs, you'll at least know which 
plugin/ftplugin is involved.

The odd highlighting also occurs in text files, python  perl scripts.
It doesn't happen in helpfiles but I guess that's because Vim's already
running.
   


--
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: hints_man2.vim breaks the dot register

2012-01-14 Thread Charles E Campbell Jr

AOYAMA Shotaro wrote:

Hi,

I'm using this hints_man2.vim plugin.
http://www.vim.org/scripts/script.php?script_id=1825

It shows function parameters info while you're typing, and
what it does is basically this:

inorea access accessc-o:echoh HintHLBarecho int access(const char
* pathname, int mode)Barechoh Nonecr

I love this feature but the thing is that it breaks the dot
register (.). Say, you type:
   

Hello!

Please try the lastest hints_man2.vim ftplugin at 
http://drchip.0sites.net/astronaut/vim/index.html#HINTSMAN2


Andy Wokula came up with a great suggestion that fixes the problem.

Regards,
Chip Campbell

--
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: A Small Typo in vim.vim

2011-11-25 Thread Charles E Campbell Jr

Bastien Dejean wrote:

Hi,

I found a minor typo in 'vim.vim' syntax file.
The patch is attached.
   

Thank you -- I'll include it.

Chip Campbell

--
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: line drawing inside vim

2011-11-23 Thread Charles E Campbell Jr

sc wrote:

On Thursday, October 20, 2011 09:45:25 Tim Chase wrote:

   

On 10/20/11 09:35, Eric Smith wrote:
 

Is there a current script for simple drawing of lines or
shapes while in vim?

I tried
http://www.vim.org/scripts/download_script.php?src_id=8798
which is DrawIT and received mutiple errors (not
necesarilly due to an error in the script?).
   
   

While I've not tried them, in addition to DrawIT, you might
poke at any of the following to see if they meet your needs:
 
   

drawing.vim
http://www.vim.org/scripts/script.php?script_id=11
 
   

sketch.vim
http://www.vim.org/scripts/script.php?script_id=705
 
   

boxdraw
http://www.vim.org/script.php?script_id=173
 

  ┌──┐
  │ October 2011 │
  │ Su Mo Tu We Th Fr Sa │
  │1 │
  │  2  3  4  5  6  7  8 │
  │  9 10 11 12 13 14 15 │
  │ 16 17 18 19(20)21 22 │
  │ 23 24 25 26 27 28 29 │
  │ 30 31│
  └──┘

this last is a godsend -- thank you tim -- i've been looking
for those characters for ages -- thought they were GONE it's
been so long since i've seen them -- must have spent hours
scrolling through :dig displays without finding them
   
DrawIt now supports utf-8 and cp437 line drawing characters; if you're 
interested, you may check into 
http://drchip.0sites.net/astronaut/vim/index.html#DRAWIT for a copy.


Regards,
Chip Campbell

--
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: rating manipulations on www.vim.org have taken place

2011-11-19 Thread Charles E Campbell Jr

Benjamin R. Haskell wrote:

On Fri, 18 Nov 2011, Marc Weber wrote:


It happened to a plugin of tpope and to one of mine:

31 down ratings in sequence on  2011-08-06 between 18:234 and 22:05
310 down ratings in sequence on 2011-08-08 between 10:39 and 22:25
509 down ratings in sequence on 2011-08-08 between 01:39  and 18:30

In between no neutral or positive voting for VAM.


This sounds like the same issue that affected one of Dr. Chip's plugins:

Thread on vim-dev, Subject: manpageview rating dive

As I explained there¹:


...some search engine(s) grabbed the down-vote URL when crawling 
www.vim.org.  In this case, googling:


site:www.vim.org inurl:unfulfilling

(where 'unfulfilling' is the 'rating' value for a down-vote) comes up 
with exactly one result for me:


ManPageView - [...]

[...]

Seems like the ratings should only use $_POST (PHP var), but they 
appear to be using $_GET, too.



Bram subsequently fixed the issue², but that didn't happen until after 
the timeframe of your downvotes.


Perhaps downvotes from some period of time could be discarded (by 
whoever has access to the raw data and can see an overall pattern).


¹: https://groups.google.com/d/msg/vim_dev/-TVtxlNoi98/QqoPvye3bOIJ
²: https://groups.google.com/d/msg/vim_dev/-TVtxlNoi98/So-Bu1d_Ij8J



[...]

community: What do you suggest?


That you ignore the ratings, as most people seem to do (I never notice 
them, personally).  Probably they're not very useful in general, so 
maybe removing them altogether is the right solution.  As Erik writes: 
A corrupted voting scheme does not seem to be as helpful as no voting 
scheme.


Although, I'm also likely not the right person to ask, since I'm much 
more likely to install things I find on github or directly on Dr. 
Chip's site than anything from vim.org.  Most of the scripts I see on 
the scripts site seem to be abandonware, whereas the ones on github 
that come up in general google results usually have clear indications 
of recent activity.


After the GET/POST changes that Bram made, I have had several more 
plugins receive barrages of -1s.  I've been withdrawing these plugins 
from vim.sf.net; that is, I put in a stub for a plugin, remove earlier 
copies, and make a note that if one wants the plugin where to go on my 
website to get it.


Regards,
Chip Campbell

--
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: group.vim syntax update

2011-10-05 Thread Charles E Campbell Jr

Linda W wrote:
To be consistent with passwd.vim (as well as allowing modern group 
syntax, please
apply the following diff to syntax/group.vim.)  Bugs me everytime 
I reinstall to have

to fix this...



--- syntax/group.vim  Wed Oct 27 08:42:54 2010
+++ syntax/group.vim   Tue Oct 04 15:06:26 2011
@@ -12,7 +12,7 @@

syn match   groupBegin  display '^' nextgroup=groupName

-syn match   groupName   contained display 
'[a-z_][a-z0-9_-]\{0,15}'

+syn match   groupName   contained display '[^:][^:]*'
\ nextgroup=groupPasswordColon

syn match   groupPasswordColon  contained display ':'
@@ -30,7 +30,7 @@

syn match   groupUserListColon  contained display ':' 
nextgroup=groupUserList


-syn match   groupUserList   contained '[a-z_][a-z0-9_-]*'
+syn match   groupUserList   contained '[^,][^,]**'
\ nextgroup=groupUserListSep

syn match   groupUserListSepcontained display ',' 
nextgroup=groupUserList



syntax/group.vim is maintained by:

   Nikolai Weibull n...@bitwi.se

so you should send this to him.

Regards,
C Campbell

--
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: conceal rules

2011-09-20 Thread Charles E Campbell Jr

M wrote:
I added a couple of personal conceal rules to my vim config files 
(such as 'syn match texMathSymbol '\\ell\' contained conceal cchar=ℓ').


But I struggled with a few. Can anybody help with these?

I would like to replace ‘\{‘ by ‘{‘ and ‘\}’ by ‘}’. Also ‘\item’ by 
‘•’. Finally I would like to replace ‘\,’ and ‘\;’ and '' by ‘ ‘, 
i.e. an empty space (works fine with \quad and \qquad).



Hello,

I've added some more concealed characters to the math support; see 
http://drchip.0sites.net/astronaut/vim/index.html#vimlinks_syntax and 
get tex.vim.gz.


I would appreciate contributions supporting additional symbols that are 
currently missing.  Essentially, just send me some lines such as:


\ ['dotsc', '…'],

with the LaTeX command (w/o the leading backslash) and the utf-8 
character to be used for conceal's cchar.  There are utf-8 lists on the web.


Regards,
Chip Campbell

--
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: How can I select multiple lines that are not in a continuous chunk?

2011-09-05 Thread Charles E Campbell Jr

Kay Z wrote:

Thanks for the reply. Now I know it isn't possible to do so.

I was trying to align using Tabularize plugin:

1. name1=Woof
2. lucky_dog = lucky( dog_one= name1,
3.dog_two= name1 )
4. name2=Howl

I wanted it to align like this:

1. name1   = Woof
2. lucky_dog = lucky( dog_one= name1,
3.dog_two= name1 )
4. name2   = Howl

But I cannot do so because Tabularize will take third line into consideration, 
and align everything into:

1.name1  = Woof
2.lucky_dog= lucky( dog_one= name1,
3.   dog_two = name1 )
4.name2  = Howl
   
The Align plugin allows you to set up patterns that will cause lines to 
be skipped during alignment.


:AlignCtrl v ^\s
:Align =

You  may get Align from 
http://drchip.0sites.net/astronaut/vim/index.html#ALIGN


The result of this:

name1 = Woof
lucky_dog = lucky( dog_one = name1,
   dog_two= name1 )
name2 = Howl

(alignment doesn't look right in variable width fonts)

Regards,
Chip Campbell

--
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: Syntax errors in shell scripts

2011-08-26 Thread Charles E Campbell Jr

Bastien Dejean wrote:

Javier Rojas a écrit :

   

On Thu, Aug 25, 2011 at 10:18:13AM +0200, Bastien Dejean wrote:
 

Any idea why, in the following expression:

${UZBL_URI#*://}

the '#*://' part gets highlighted as shDerefWordError?
   

Because, by default, vim uses the sh syntax file.

To use the bash syntax file by default, add the following line to your
.vimrc file:

 let g:is_bash=1
 

Thanks.
I didn't realise it wasn't valid sh since my shebang line is #! /bin/sh.
   
Yeah -- unfortunately, /bin/sh has been made ambiguous, as Bourne sh, 
ksh, ksh93, posix's ksh, and bash all use /bin/sh (with symbolic links 
to whatever preferred binary).


Regards,
Chip Campbell

--
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: netrw dir listing position

2011-07-30 Thread Charles E Campbell Jr

Sigma wrote:

Hi,

Is there a way to make the netrw dir listing maintain
the cursor position?

For example if I do a dir listing on a big dir, scroll down, and
press enter to edit a file, when I go back to the dir listing the
cursor is no longer at the file where I left it.  The cursor
starts over at the top of the dir listing.

This is a pain if I want to edit a handful of files chosen from
the netrw listing.

Is there a way to maintain the cursor position in the dir listing?
   
I'm afraid that I don't see this behavior using v143d of netrw.  Please 
try upgrading netrw and see if you still have this problem.


You may get v143d from:  
http://mysite.verizon.net/astronaut/vim/index.html#NETRW


Regards,
Charles Campbell

--
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: netrw dir listing position

2011-07-30 Thread Charles E Campbell Jr

Charles E Campbell Jr wrote:

Sigma wrote:
   

Hi,

Is there a way to make the netrw dir listing maintain
the cursor position?

For example if I do a dir listing on a big dir, scroll down, and
press enter to edit a file, when I go back to the dir listing the
cursor is no longer at the file where I left it.  The cursor
starts over at the top of the dir listing.

This is a pain if I want to edit a handful of files chosen from
the netrw listing.

Is there a way to maintain the cursor position in the dir listing?

 

I'm afraid that I don't see this behavior using v143d of netrw.  Please
try upgrading netrw and see if you still have this problem.

You may get v143d from:
http://mysite.verizon.net/astronaut/vim/index.html#NETRW
   
I should mention that I tried both the wide listing and the default thin 
listing when attempting to elicit this behavior.  If the behavior 
persists, please let me know what netrw settings you may have and any 
more details that may be helpful.


Regards,
Charles Campbell

--
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: Changing elements of a color scheme

2011-07-09 Thread Charles E Campbell Jr

Benjamin R. Haskell wrote:


Yes, roughly.  I ran into that problem before with Dr. Chip's site, 
but I figured it was just whatever browser I was using at the time.


Regardless, if you right-click,save-as the link instead of just 
clicking it, things should work out fine.


Tech details... The HTTP headers indicate:

Content-Type: text/html
Content-Encoding: x-gzip

The first part is plain wrong (a .vba file isn't HTML; it's a 
vimball). The latter is unhelpful (will likely cause the browser to 
decompress the gzip'ed file before saving).


Dr. Chip, if you have access to put an .htaccess file in that 
directory, you can correct the first problem with this line:


AddType text/x-vimball .vba

I've loaded that a file with that line onto 
http://mysite.verizon.net/astronaut/vim .. does it work?  A simple 
left-click doesn't fix things for me (seamonkey); I need to 
shift-left-click.


Regards,
Chip Campbell


--
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: Apply spell check only for en_us

2011-06-09 Thread Charles E Campbell Jr

Bill Sun wrote:

Hi,

I often deal with text which contains both Chinese and English
characters, and:
(1)I want to apply spell check only for English characters.

I searched web, and found a workable solution: syntax match English
/[!-~]/ contains=@Spell

Unfortunately, this command breaks all syntax hilights. After apply this
command, all command (eg: \maketitle in LaTeX) are marked as bad
words.

So, How to achieve (1) without damaging normal syntax hilights?
   


Can you have a region which matches the English?  Such as

  syn region start=%BEGIN ENGLISH end=%END ENGLISH 
containedin=texDocZone  contains=@Spell


(and repeat as needed for texPartZone, texChapterZone, etc (see 
syntax/tex.vim, about lines 277-286).


caveat: I haven't tested this.

Regards,
Chip Campbell

--
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: netrw emtpies my tagfiles()

2011-05-14 Thread Charles E Campbell Jr

koffee wrote:
So I have a tag file under current dir. Now gvim, echo tagfiles() will 
show that tag file. Now if I :e . to invoke netrw, if I do :echo 
tagfiles() again, I'll see the tag files list is emptied.


This only happens on my Ubuntu Natty box, not repro on my Win7 machine.

Any idea what could go wrong?


Hello,

I'm afraid that I can't successfully reproduce this problem; I'm using a 
Fedora Core 9 box.


Letting netrw.vimrc be:
set nocp
so $HOME/.vim/plugin/netrwPlugin.vim
set tags=$HOME/.HDR/tags

Then

vim -u netrw.vimrc junk
:echo tagfiles()
   shows   ['.HDR/tags']

:e .   (this invokes a netrw listing)
:echo tagfiles()
   shows   ['.HDR/tags']

I've also tried this with

 vim -u netrw.vimrc junk
 :set tags^=tags
 :echo tagfiles()
   shows ['tags', '/home/cec/.HDR/tags']
 :e .
 :echo tagfiles()
   shows ['tags', '/home/cec/.HDR/tags']

In neither case is netrw changing the tags setting.

Regards,
Chip Campbell


--
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: Inserting output of Ex command into buffer

2011-04-12 Thread Charles E Campbell Jr

Spiros Bousbouras wrote:

[snip]
I would prefer a vsystem() function (vim system) or whatever
you want to call it so that for example you could do
^R=vsystem(swapname)
   

[snip]

Why not try your hand at writing a function  to do that?  Admittedly, it 
would have to begin with a capital letter.


Regards,
Chip Campbell

--
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: how to open file from netrw in current window

2011-03-26 Thread Charles E Campbell Jr

wei gao wrote:

Hi,
I find that if I open (vs) two windows and one of them is netrw file 
explore, when I try to open a file in netrw window (enter key), the 
file will be opened in another window. How could I make the file is 
opened in current netrw file exploer window?


Since the behavior you're asking for is the default netrw behavior, the 
problem is: what in your setup is causing this behavior?


To verify this, try making a file called simple.vimrc with the following 
contents:


set nocp
filetype plugin indent on


then use

  vim -u simple.vimrc  somefile
c-wv
  :e .
  (pick a file via netrw and press cr with the cursor atop some file)

I'm getting the file opened in the current netrw file explorer window as 
you requested -- do you?


Regards,
Chip Campbell

--
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: Edit same in two windows same Vim session

2011-03-22 Thread Charles E Campbell Jr

Colin Beighley wrote:

Actually I didn't test this before I sent the message (sorry) and it
appears that Vim automatically does this when you edit the same file
in two windows in the same session.

On Mar 1, 8:48 pm, Benjamin R. Haskellv...@benizi.com  wrote:
   

On Tue, 1 Mar 2011, Colin Beighley wrote:
 

Hello,
   
 

I'm wondering if anyone knows of a way to edit the same file in two
windows in the same Vim session, where the file within the two windows
stays in sync with eachother.
   
FYI: The MPage plugin (see 
http://mysite.verizon.net/astronaut/vim/index.html#MPAGE) allows one to 
have multiple windows open on the same file with sequential windows 
showing sequential lines of text.


Regards,
Chip Campbell

--
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: Open several files in file explorer

2011-03-17 Thread Charles E Campbell Jr

Marco wrote:

Is it possible to open several files in the file explorer? Say I open the
file explorer with :e. and then I want to open 3 files in this directory and 4
in another. Is there a possibility to select these files and to open them all
at once?


Marco
 who admits that he has not read the manual in total and maybe missed the
 relevant part, if so - shame on me

   


You may use the marked-files support for this:  (:help netrw-mf)

  * mark file(s)  with mf.
  * edit marked files :  me   .  This command will bring up the first 
marked file; however, all the marked files have been added to vim's arglist.
  * :sba  (to get a vertical stack of windows)-or-   :vert sba   
(to get a horizontal list of windows)


Regards,
Chip Campbell

--
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: Hey, trying to write the vimrc example to my vimrc, get message saying cant

2011-03-17 Thread Charles E Campbell Jr

Ben Farquhar wrote:

Hi,

Im doing vimtutor. In particular, this:

1. Start editing the vimrc file.  This depends on your system:
 :e ~/.vimrc for Unix
 :e $VIM/_vimrc  for MS-Windows

   2. Now read the example vimrc file contents:
 :r $VIMRUNTIME/vimrc_example.vim

   3. Write the file with:
 :w

   The next time you start Vim it will use syntax highlighting.
   You can add all your preferred settings to this vimrc file.
   For more information type  :help vimrc-intro


And the first time i did :e~/.vimrc it was allowing me to edit. then i
got off the page as i didntk know what to type. Now i cant even open
the file to edit as when i type the command :e ~/.vimrc it says: E37:
No write since last change (add ! to override). And so i just open the
example  :r $VIMRUNTIME/vimrc_example.vim and use v to select it and
use :w vimrc to write it to my vimrc file and it says the same thing.
   


I'm going to make a few guesses, but this is what I think has happened:

* you edited ~/.vimrc
* you changed ~/.vimrc, but did not exit vim
* you told vim to edit ~/.vimrc again -- thus the changes you made to 
~/.vimrc would be lost.


Vim is telling you that you have a Vim window open with the ~/.vimrc 
file; by using :e again, you're telling vim to (re-)read ~/.vimrc, 
wiping out what's currently in that window.  Are you sure that that's 
what you want?  Vim has told you that to proceed to wipe out your 
changes, use  :e! ~/.vimrc  (that add ! to override message).  Now for 
a guess: you've opened a second instance of Vim and you're trying to 
edit the same file again.  I suggest looking for the first instance of 
Vim that you've got running and to save (or not save) that window.  
Plus, I suggest using vimtutor.


Regards,
Chip Campbell

--
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: Multiple Substitutes for 'includeexpr'

2011-02-25 Thread Charles E Campbell Jr

ZyX wrote:

Reply to message «Multiple  Substitutes for 'includeexpr'»,
sent 02:11:23 20 February 2011, Sunday
by Roy Fulbright:

   

I tried adding a
second substitute to the assignment, separated by the vertical bar (|),
but this generates an error message while processing .vimrc.
 

What do you mean by adding second substitute?
 set includeexpr=substitute(...)\|substitute(...)
? This won't work ...[snip]
   
I think what AK meant was using a substitute as an argument to a 
substitute.  Ie.


set includeexpr=substitute(substitute(...),...)

Regards,
Chip Campbell

--
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: C syntax, and spurious semicolons

2011-02-22 Thread Charles E Campbell Jr

Ben Schmidt wrote:

[snip]...
syn clearcConditional
syn keywordcConditionalelse switch
syn regioncIfmatchgroup=cConditional start=+if\_s*(+ 
end=+)\_s*\ze[^;)]+ 
contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell skipwhite 
skipnl skipempty nextgroup=cSemiError

syn matchcSemiErrorcontained ;
hi linkcSemiErrorcParenError

...[snip]

Just eyeballing it; may I suggest changing

syn regioncIfmatchgroup=cConditional start=+if ...

to

syn regioncIfmatchgroup=cConditional start=+\if ...

Regards,
Chip Campbell

--
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: Eroor : E484 can't open colours.vim file

2011-02-16 Thread Charles E Campbell Jr

Ahmed Magdy wrote:

hello guys, this is my first day in vim and i think it's great

so iam using gvim and linux(ubuntu)

and i get this error every type i tried to write some thing like next

:so!colours.vim
:so!filetype.vim

every time i want to open a file it gives me this : Eroor : E484 can't 
open colours.vim file  or  Eroor : E484 can't open .vim file


so any way to fix this up please ?


Hello:

:so! [filename]

executes the [filename] in normal mode, as if you had typed the 
entries.  I suspect that you want to use

  :so colours.vim
  :so filetype.vim

instead, which executes the contents (initially) in Ex mode.

Regards,
Chip Campbell

--
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: (Endless!) Make Problems on SunOS

2011-02-16 Thread Charles E Campbell Jr

howard Schwartz wrote:

Hi all,

Well I am trying to compile vim from source on a large Sun OS machine
hosted by a university. I am a meager user without root privleges. 
Whenever
I try this kind of thing on a large machine maintained by somebody 
other than me, I'm treated to an endless sequence of error

messages that takes days to sort out: I dont have the right permissions,
some libraries are missing or in the wrong directories, the PATH variable
doesnt have the right paths, the compiler is the wrong one or the wrong
version, etc. etc.

I am not a makefile guru, but I aint stupid either! Suggestions for 
getting

past the first few errors on this one?

uname -a gives this info. about the machine and OS:

  SunOS ubunix1.acsu.buffalo.edu 5.9 Generic_122300-56 sun4u sparc
   UNW,Sun-Fire-V245

The initial error message seems to say the bourne shell cant execute
the configure script (for some reason?):

make[1]: Entering directory `/ubfs/myfiles/t/a/talmy/ubunix/vim73/src'
rm -f auto/config.status auto/config.cache config.log auto/config.log
rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
touch auto/config.h
cp config.mk.dist auto/config.mk
GUI_INC_LOC= GUI_LIB_LOC= \
CC= CPPFLAGS= CFLAGS= \
LDFLAGS=  srcdir=. \
./configure --disable-gui --without-x  \
\
   \
   \
   \
   \
\
   \
  \

/bin/sh: ./configure: cannot execute
make[1]: *** [config] Error 1
make[1]: Leaving directory `/ubfs/myfiles/t/a/talmy/ubunix/vim73/src'
make: *** [first] Error 2

I don't have a Sun machine to play with this, but the following should 
work assuming that you have the vim73 source code and all necessary 
libraries on your system:


cd  [wherever]/vim73
chmod 755 configure [you shouldn't have to do this, but given your 
error message...]
mkdir $HOME/vim73   [this may not be necessary, but I'm being lazy 
and haven't checked it out]

./configure --prefix=$HOME/vim73
make
make install

The binaries should end up in $HOME/vim73/bin  and the manual and 
whatnot in $HOME/vim73/share .  You'll probably want to put $HOME/vim73 
on your PATH.


Regards,
Chip Campbell


--
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: vimball: vulunerable to empty file

2011-02-11 Thread Charles E Campbell Jr

motz wrote:

Vimball Archiver by Charles E. Campbell, Jr., Ph.D.
UseVimball
finish
doc/something.txt [[[1
0
   
Interesting -- I suppose nobody's tried making a vimball with an empty 
file before.  Anyway, I've uploaded v33a onto my website that appears to 
avoid any unpleasantness from empty files.  It doesn't save them, 
though.  You should be able to get a copy using  
http://mysite.verizon.net/astronaut/vim/index.html#VIMBALL .


Regards,
Chip Campbell

--
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: vimscript syntax problem

2011-02-01 Thread Charles E Campbell Jr

H Xu wrote:

On 2011/2/1 15:50, Christian Brabandt wrote:

On Mon, January 31, 2011 6:20 pm, H Xu wrote:

Hello everybody,

In a vimscript file, parentheses across multi lines is highlighted as
errors, which is shown in the attachment. Is there any way to fix this?

Thanks.


This was recently discussed here. See the thread starting at
http://groups.google.com/group/vim_use/browse_frm/thread/b7a3187fee6932e8/c1d090858eaaea64?#c1d090858eaaea64 



As a further note: a while back I suggested an addition to the syntax 
support in vim, that it provide something like


  syntax [HLGroup] eolcontinue '\\'
  syntax [HLGroup] bolcontinue '^\s*\\'

(eolcontinue == end-of-line continue, bolcontinue == beginning-of-line 
continue)


and then the syntax engine would presumably just glide over such 
continuation patterns, thereby avoiding a lot of effort to handle such 
things everywhere in a syntax file.


Regards,
Chip Campbell

--
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: Writing to filename in variable

2011-01-25 Thread Charles E Campbell Jr

Colin Beighley wrote:

Hello,

I'd like to be able to write to a file in a variable name, or 
alternatively change the current filename (the % register) or the 
alternate filename. Is there any way to do any of these?

:help exe
:help expand()

Regards,
Chip

--
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: latex file and backlash

2011-01-25 Thread Charles E Campbell Jr

Cesar Romani wrote:

After a further analysis, I found out that the problem is with
AutoAlign. If I remove ~/vimfiles/ftplugin/tex/AutoAlign.vim I don't get
that bad behavior.


Needless to say, I use AutoAlign, with latex files, and have no such 
difficulties.  Do you have any settings that you use?  Oftentimes these 
things are due to options I set and you don't or vice versa.


Chip

--
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: vim syntax bug

2011-01-17 Thread Charles E Campbell Jr

sergio wrote:

Hello.

autocmd BufNewFile *.zsh call append( 0, [
  \ '#!/bin/zsh',
  \ '' ] )

vim highlights last ')' with red background as an error, but there is 
no error.


This occurs due to the continuation.  There's a tradeoff involved; 
fixing this sort of thing would require a lot of nextgroups and 
additional syntax, going away from fast keyword recognition to regular 
expression based matches and regions, and a significant increase in size 
of syntax/vim.vim, perhaps doubling it.  Its not the largest syntax file 
(muttrc.vim has that honor), but doubling its size would make it the 
largest by far.


Try putting

  let g:vimsyn_noerror= 1

in your .vimrc if this bothers you overmuch.

Regards,
Chip Campbell

--
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: Substitute within a highlight group.

2010-12-29 Thread Charles E Campbell Jr

sergio wrote:

Hello.

Is there a way to substitute within a highlight group?

I have file, with detected filetype and applied syntax. Syntax gives 
the group. And I want to make a substitution, for that text, that 
matches this group. (Really this is a bindzone file, and I want to 
adjust serial value)



See if David Fishburn's SrchRplcHiGrp plugin does what you want:

http://www.vim.org/script.php?script_id=848

Regards,
Chip Campbell

--
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: substitute a floating point number with it's double (or multiple)

2010-12-22 Thread Charles E Campbell Jr

Uday K2 wrote:

Hi,

I have a file which has lines like this.

area : 37.24;
power : 1.28, 2.73, 3.84;

I need to substitute each number with it's double (number*2).
Is there anyway I can do this in VIM?
I don't have perldo command in my version of VIM.
   

%s/[0-9.]\+/\=2.0*str2float(submatch(0))/g

-from-

[0-9.]\+one or more digits or periods

-to-

\=  ...  evaluate following expression
2.0 ... obvious
*... also obvious
str2float(submatch(0))  take entire match and convert that string to a float

/g ...  as many matches as possible per line

HTH,
Chip Campbell

--
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: substitute a floating point number with it's double (or multiple)

2010-12-22 Thread Charles E Campbell Jr

Uday K2 wrote:

I have a file which has lines like this.

area : 37.24;
power : 1.28, 2.73, 3.84;

I need to substitute each number with it's double (number*2).
Is there anyway I can do this in VIM?
I don't have perldo command in my version of VIM.
   


%s/[0-9.]\+/\=2.0*str2float(submatch(0))/g

-from-

[0-9.]\+one or more digits or periods

-to-

\=  ...  evaluate following expression
2.0 ... obvious
*... also obvious
str2float(submatch(0))  take entire match and convert that string to a float

/g ...  as many matches as possible per line

HTH,
Chip Campbell


--
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: Opening files in new buffers

2010-12-01 Thread Charles E Campbell Jr

Ven Tadipatri wrote:

I like the way vim allows you to view the files in a directory, then
directly go to them. But then to go back after editing the file I
chose, I repeatedly hit ctrl-O until I get back to the file listing.
It would be nice if I can maybe open the file in a new buffer, and
when I'm done, just close the new buffer I opened. Is there an easy
way to do this? Ctrl+w, followed by enter didn't seem to work, and
neither did gF.
  Also, on a somewhat related note, is there a way to quickly save a
buffer and then close it. :wq allows you to save and quit, but I'm a
bit annoyed by having to do :wenter, :bdenter.
   I think vim has started to make me lazy to type, where I'm always
looking for 1 or 2 letter commands to do everything.
  

Try

:Rex

If you use a mouse, then also look at :he netrw-mouse ; you can ge a 
double-leftmouse click to return you to the netrw window.


Regards,
Chip Campbell

--
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: Strange looking of underscores

2010-11-13 Thread Charles E Campbell Jr

Matthias Guenther wrote:

Hello guys,

after a couple of months I really enjoy working with I got a very ugly
highlighting of underscores. The backgroundcolor of an underscore gets
a red color (see here what I mean http://picfront.de/d/7Vnm). How can
I turn turn of this highlighting?
  
The difficulty is due to your using the url package in conjunction with 
the usual LaTeX rules for handling underscores; ie. they cause errors, 
but the url package (understandably) makes them available w/o error.

Try using the solution in  :help tex-error .

Regards,
Chip Campbell

--
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: netrw and 'autochdir'

2010-11-11 Thread Charles E Campbell Jr

Ben Fritz wrote:

:help netrw-incompatible:

NETRW BROWSING AND OPTION INCOMPATIBILITIES *netrw-incompatible* {{{2

Netrw has been designed to handle user options by saving them, setting
the
options to something that's compatible with netrw's needs, and then
restoring
them.  However, the autochdir option: 
:set acd
is problematical.  Autochdir sets the current directory to that
containing the
file you edit; this apparently also applies to directories.  In other
words,
autochdir sets the current directory to that containing the
file (even if
that file is itself a directory).

(end help entry)

I have had :set autochdir in my .vimrc for a few years now and have
not noticed any problems with netrw. Granted, I don't use netrw for
any remote editing, just for local directory browsing (and not even
that very often). Is this :help section still accurate? I thought
issues with 'acd' have been resolved? If not, what sort of issues
still exist? A basic acd will cause problems statement doesn't give
much information for a user making the decision whether to use the
option or not.

  

There is, perhaps, an unexpected behavior.

Try  running vim, typing (assuming /some/directory exists and directory 
is itself a directory)


 :e /some/directory
 :pwd

You'll find that pwd shows /some , which is apparently unexpected to 
some people.  I have made considerable efforts to get netrw to work with 
acd otherwise.


Regards,
Chip Campbell

--
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: vim - save password while editing remote files using scp

2010-10-30 Thread Charles E Campbell Jr

Aman Jain wrote:

I'm trying to edit remote files using gvim in this manner:

$ gvim scp://usern...@server.edu//home/username/new.txt
But everytime I do a save, I have to enter password.
I looked up on the internet to see if there's a way by which vim
remembers remote
passwords.

So I found that creating a file called ~/.netrc does this for ftp
transfer (http://vim.wikia.com/wiki/
Editing_remote_files_via_scp_in_vim)

I've also changed the permission of the file to 600, but still I'm
being prompted for passwd.

Am I missing something?

  

.netrc is for ftp; ssh/scp pays no attention to it.

In reading  :help netrw-password  , you'll find a reference to reading  
:help netrw-ssh-hack  .  You may find it helpful.


Regards,
Chip Campbell

--
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: Problem with netrw

2010-10-11 Thread Charles E Campbell Jr

Tintin72 wrote:

Hi,

I want to edit a file on a remote server so I tried to use netrw but
I misunderstand how does it work.
First I type:

Nread ftp://lo...@server.com/index.html

Vim ask me for the password then open the file in a cache as no file
name.
But when I want to save modifications I get an E32 error.
I thought whenever I save the file, all modifications are echoed on
the index.html remote server file,
but they don't.

Is someone could help me ?
  
Are you getting a message such as could not get file status for...?  
Does index,.html previously exist, or are you trying to create the 
file?  If you're getting a no file name buffer, then the ftp operation 
apparently failed; the E32 results because you're subsequently trying to 
save a file with no name.


If you're trying the create the file, then here's two solutions:

1. vi local file
 :w ftp://lo...@server.com/index.html

2. vi ftp://lo...@server.com/
   %   (then enter  index.html  at the prompt)
  (edit file)
  :wq

Regards,
Chip Campbell

--
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: Help installing vimballs

2010-10-07 Thread Charles E Campbell Jr

Eran Borovik wrote:

Hi all,
I am trying to install the vim plugin camelcasemotion (which is a 
vimball) and I received the following errors:

Vimball Archive
extracted autoload/camelcasemotion.vim: 173 lines
Error detected while processing function vimball#Vimball:
line  131:
E474: Invalid argument: silent w! ++enc=3 
/home1/eran.borovik/.vim/autoload/camelcasemotion.vim


Please try vimball v32 -- you can get it from  
http://mysite.verizon.net/vim/index.html#VIMBALL .  From vimball history:


  * fenc extraction was erroneously picking up the
end of the line number when no file encoding
was present.  Fixed.

Seeing ++enc=3 (and other digits) was a hallmark of this problem.

Regards,
Chip Campbell

--
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: Help installing vimballs

2010-10-07 Thread Charles E Campbell Jr

Charles E Campbell Jr wrote:

Eran Borovik wrote:

Hi all,
I am trying to install the vim plugin camelcasemotion (which is a 
vimball) and I received the following errors:

Vimball Archive
extracted autoload/camelcasemotion.vim: 173 lines
Error detected while processing function vimball#Vimball:
line  131:
E474: Invalid argument: silent w! ++enc=3 
/home1/eran.borovik/.vim/autoload/camelcasemotion.vim


Please try vimball v32 -- you can get it from  
http://mysite.verizon.net/vim/index.html#VIMBALL .  From vimball history:


  * fenc extraction was erroneously picking up the
end of the line number when no file encoding
was present.  Fixed.

Seeing ++enc=3 (and other digits) was a hallmark of this problem.


Forgot an element:  try  
http://mysite.verizon.net/astronaut/vim/index.html#VIMBALL


Regards,
Chip Campbell

--
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: VIM and TCL

2010-10-06 Thread Charles E Campbell Jr

ppp wrote:

   Hi,

I just started using TCL on a Windows platform. Currently, I use VIM
to
modify tcl files, then I have to go inside a tcl console (ActiveState)
to source the file and then execute a function.

Is there a way to launch TCL script within VIM? Ideally, I want to
split
VIM into two planes, so that I can modify code on the left side and
make
the output show up on the right side.
  


Perhaps RunView will help with this:  
http://mysite.verizon.net/astronaut/vim/index.html#RUNVIEW


You'll need to have the following line in your .vimrc:

   let g:runview_filtcmd=tcl

although it'd be better to have

 au FileType tcl let g:runview_filtcmd=tcl

I admit that I'm guessing that, while in the shell,
 tcl somefile
will launch tcl script.

Then,

 vim somefile  (assuming its a tcl/tk file)
 :RV

will run the file with tcl and put the output in a separate window.

Regards,
Chip Campbell


--
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: netrw and symbolic links

2010-10-06 Thread Charles E Campbell Jr

ThomasD wrote:

Hi

I'm just discovering Vim's ability to edit files that reside on a
remote machine. I wish to run gVim on my Wndows machine, and the files
that are locted on a linux machine are accesible by ftp.

Everything was working fine, and I was browsing away on the remote
machine, when I tried to open a symbolic link. and the browser
returned me to my remote home directory. Maybe I should have noticed
that the file in question was marked as a directory in the browser.

When searching the documentation it seems that the issue has been
dealt with, so I'm at a loss.

Can anyone point out a solution to editing files pointed to by a
symbolic link?

BTW, I'm using gVim 7.3.
  
The symbolic links mentioned in the documentation (history) refer to 
local symbolic links.


Remote symbolic links are more problematic -- when is the remote link 
pointing to a directory versus pointing to a file?  The ftp listing 
itself isn't clear.


Remote directories are probed with directory listing commands; remote 
files are downloaded and made available for local editing, so clearly 
these two operations are quite different.  Netrw chooses to treat things 
as files unless there's a trailing /, which, for symbolically linked 
directories, isn't there, so netrw ends up treating symbolically linked 
directories as files.


One idea would be to always try to change directory and to intercept the 
occasional error to require treating it as a file.  Unfortunately this 
means that several transfer requests are being made, which in turn means 
multiple requests for passwords -- which I'm trying to minimize.


Regards,
Chip Campbell

--
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: Why Vimball archives are evil?

2010-09-25 Thread Charles E Campbell Jr

panshi...@routon.com wrote:

vim_use@googlegroups.com 写于 2010-09-26 09:51:37:
  

The more steps required, the more likely he is to move
on to something else without trying the plugin.



Agree, so why not simply provide .vim files, which does not need to be
decompressed at all?

I usually distribute my scripts in plain .vim format. Trying to integrate
everything into one single .vim isn't quite difficult.

For Windows Vim user, it would be much better too see something end with
.vim than .vba,  (change it to .vima would be great.)
  

Here are some reasons:

 * syntax files should go into syntax directories
 * plugin/ vs autoload/ -- putting everything into one file means 
slower startup
 * ftplugin/ and plugin/ -- sometimes plugins work with multiple 
filetypes (ex. my AutoAlign, which has a common portion and separate, 
typically small, sections for various filetypes).  Its cleaner than 
using a lot of autocmds.


I'm sure I could come up with more reasons if pressed.

Now, about .vba as an extension.  I don't have a problem with supporting 
a new extension; is .vmb taken?  I'd like to keep the extension to less 
than or equal to three characters in length.  However, vimball would 
still need to handle *.vba for backwards compatibility.


Regards,
Chip Campbell

--
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: simple 16-bit random number generator

2010-09-18 Thread Charles E Campbell Jr

Bee wrote:

simple 16-bit random number generator

Do you have a favorite?

I need small numbers randomized each iteration within a function. The
following seems to work well for application.

  


Rndm.vim, available at 
http://mysite.verizon.net/astronaut/vim/index.html#RNDM, passes Knuth's 
test pretty well.  From Rndm's help:



The pseudo-random number generator used herein was developed at MIT.

I used D. Knuth's ent program (http://www.fourmilab.ch/random/) and 
generated

one million (1,000,000) values using a C program variant: 
   rv= Rndm()/3906.25   (which divides one million into 256 equal regions)
and converted each value into bytes.  The report from Knuth's ent program:

   Entropy = 7.999825 bits per byte.

   Optimum compression would reduce the size
   of this 100 byte file by 0 percent.

   Chi square distribution for 100 samples is 242.41, and randomly
   would exceed this value 70.44 percent of the times.

   Arithmetic mean value of data bytes is 127.5553 (127.5 = random).
   Monte Carlo value for Pi is 3.135732543 (error 0.19 percent).
   Serial correlation coefficient is 0.001313 (totally uncorrelated = 0.0).

These values are quite good (a true random source, for example, had a
chi square distribution value of 249.51, for example -- from Knuth's page).

Regards,
Chip Campbell

--
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: netrw copy from local to network is failing

2010-08-30 Thread Charles E Campbell Jr

epanda wrote:

   DechoRemOn

That will put the debugging trace into a separate vim instance.



Outch, I am always searching for the new instance of gvim.

It has terminated all.

  

Please try the following:

1. vim
 :DechoRemOn
 :Decho Test

 This should bring up a remote vim that will have the word Test in it.

2. Assuming it does, then
  cd %HOME%\vimfiles\autoload
 vim netrw.vim
 :DechoOn
 /DechoTabOn
 0DADechoRemOn
 :wq

 This will swap DechoRemOn for DechoTabOn, and enable the debugging 
trace.  The trace should go to the remote vim.


3. Try to do the transfer.  Please type
  :Dsep

 before each command/action  -- that'll make it easier to figure out 
what netrw's response was to each command/action  you perform.  What it 
does is put a line of the form

 --sep##
in the debugging trace.

HTH,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr

epanda wrote:

Anyway, if g:netrw_ftp_cmd has -s:
  

in it (or -S:), it will assume that its got login information like a
.netrc.  I was able to avoid manual entry of the userid+password that
way.



Hum, I have tested v141a with this line in my _vimrc
let g:netrw_ftp_cmd= ftp -s: . $home . /.netrc ftpperso.free.fr

Then e ftp://mypathtomyftpwebsite/

It seems like your script is reading .netrc containing all
informations but doesn't mind about password information = I am not
logged in.
  
The log shows that netrw identified your use of -s: (NetrwMethod shows 
it picked method#2).  This pick is correct.


The netrw_ftp_cmd should hold only the ftp command and options; ie. I'd 
expect you to need to use:


 let g:netrw_ftp_cmd= ftp -s:.$home..netrc

When you use it, try

 :e ftp://ftpperso.free.fr/whatever/path

Regards,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr

epanda wrote:

  let g:netrw_ftp_cmd= ftp -s:.$home..netrc

When you use it, try

  :eftp://ftpperso.free.fr/whatever/path

Regards,
Chip Campbell



Ok it works but there is a confusion due to the help that is not
updated yet.

if the user is under windows, the netrc's content should be like that:

.netrc:
loginftp
passftp

That is not the same case under unix:
machine machinename login loginname password thepassword

Thank you for all Charles, I will now be able to edit some php scripts
with your powerful script.
  


Hello, Epanda:

I generally make changes to netrw.vim before I get around to changing 
the document.  In this case I've just made v141b, and I've changed it a 
bit more.  If, instead of .netrc one uses MACHINE in the 
g:netrw_ftp_cmd, then netrw will use the current hostname/machinename 
and swap it in the stead of MACHINE, tacking on .ftp, so it'll be as 
if one had   ftp -s:c:\users\userid\hostname.ftp  .  This method means 
that one can have multiple .ftp files with logins and passwords and 
netrw will use them as needed.


Regards,
Chip Campbell


--
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: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr

epanda wrote:

now I am using a .netrc encrypted and I have done a func to decrypt it
before using your script.

Just last bugs, I see 2 blank lines with v141a (little bug).
  


In my experience this was due to hiding ./ and ../ from the listing; I 
put a command to remove any and all blank lines.  Its working for me, so 
I'm not sure what's happening for you.

Major bug, when I click on a binary jpeg or whatever file, the double
left mouse mapping seems to fails.
I cannot return to the upper dir
  
Netrw's double-leftmouse mapping does not carry through to files being 
edited, and this includes the double-leftmouse mapping.  You can return with


 :Rex

The gx map is kept available (see :help netrw-gx) by default, although 
it too can be suppressed.


If g:netrw_retmap is true, then 2-leftmouse will be set by netrw upon 
editing a file.  I see where netrw, in an effort not to stomp on user 
maps, manages to avoid stomping on its own map -- so v141c returns the 
2-leftmouse behavior.  Its another way of doing :Rex, by the way.


Regards,
Chip Campbell




--
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: Netrw and new file through ftp connection

2010-08-27 Thread Charles E Campbell Jr

epanda wrote:

Please read  :help netrw-debug and make a debugging trace.  That way we
can find out exactly what's happening.




Without any own setting, DEcho trace that :
snip
  
and it works but I have to type my password.


--

With this line in my vimrc it fails.

let g:netrw_ftp_cmd= c:/Windows/System32/ftp -s: . $home . /
ftpconnect.ftp ftpperso.free.fr

  
I was rather hoping to see what happened with your g:netrw_ftp_cmd -- so 
I could figure out why it fails.  The trace you sent is expected 
behavior; netrw assumes that since it has an ftp request but no 
$HOME/.netrc, then it needs to ask for userid+password.


The case you want handled, that is, with -s:... , isn't currently 
detected as ftp+.netrc.  If you called the file .netrc instead of 
ftpconnect.ftp, it might work, as then netrw would detect $HOME/.netrc 
and assume that ftp will know how to logon via the .netrc file.  If you 
would bear with me, perhaps if you changed the file's name to .netrc and 
trace  netrw with that.  If it works, of course, then perhaps I could 
write some code to let netrw assume method#2 when -s is in 
g:netrw_ftp_cmd (ie. ftp+.netrc).


Regards,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-27 Thread Charles E Campbell Jr

Hello, epanda:

I got a Windows version of vim73, installed it (as my attempts at 
compiling vim now fail due to the lack of -mno-cygwin with gcc and my 
not having installed mingw), opened a cmd window, and was finally able 
to duplicate the problem you've been having.  I also got a pair of 
unwanted blank lines in the display.  Anyway, if g:netrw_ftp_cmd has -s: 
in it (or -S:), it will assume that its got login information like a 
.netrc.  I was able to avoid manual entry of the userid+password that 
way.  I also got rid of the unwanted blank lines (I'm not sure why they 
aren't properly deleted as they are under cygwin and linux, but an extra 
cleanup command did the trick).


I've now put vim v141a on my website at 
http://mysite.verizon.net/astronaut/vim/index.html#NETRW .


Regards,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-26 Thread Charles E Campbell Jr

epanda wrote:

show -- I'm used to using $HOME rather than $home, but perhaps that
doesn't make any difference under Windows.  Does $home have a trailing
slash, or is it a backslash?  You may have to change the backslash(es)
to slashes.




c:/Windows/System32/ftp -s:C:\Users\Admin/ftpconnect.ftp myhostname.fr

This command works well under Xp console so it's not depending on
slash or backslash.

But if I do :
let g:netrw_ftp_cmd c:/Windows/System32/ftp -s:C:\Users\Admin/
ftpconnect.ftp myhostname.fr


Then e ftp://mylo...@myhostname.fr/ ask me again my password

  

Try some experiments:

let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp 
-s:C:\Users\Admin\ftpconnect.ftp'

call system(g:netrw_ftp_cmd. myhostname.fr)

Netrw doesn't do it quite like the above; instead, it constructs a 
command using a filter.


If this still doesn't work, then please do a debugging trace.  
Directions for this are at


 :help netrw-debug

Please send me a copy (but elide any passwords if you happen to have any 
show up).


Regards,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-25 Thread Charles E Campbell Jr

epanda wrote:

Through ftp command from windows.

But I have post a recent thread to make autologin possible from netrw
too.

Charles told me to see how is it working under Windows and it works
like that :

ftp -s:c:/ftpconnect.ftp hostname


ftpconnect.ftp contains :
mylogin
mypassword

Can we set some variable into netrw to enable transparent login to
ftp ?
  


I think you're looking for the g:netrw_ftp_cmd; something like

let g:netrw_ftp_cmd= ftp -s:c:/ftpconnect.ftp

in your .vimrc.  You may need full paths to ftp and ftpconnectt.ftp in 
the string, too.


Now, to create a new, empty file using netrw and ftp:  see  :help netrw-%

Regards,
Chip Campbell

--
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: Netrw and new file through ftp connection

2010-08-25 Thread Charles E Campbell Jr

epanda wrote:

let g:netrw_ftp_cmd= ftp -s:c:/ftpconnect.ftp

in your .vimrc.  You may need full paths to ftp and ftpconnectt.ftp in
the string, too.

Now, to create a new, empty file using netrw and ftp:  see  :help netrw-%

Regards,
Chip Campbell



I have added this line :
let g:netrw_ftp_cmd= c:/Windows/System32/ftp -s: . $home .
ftpconnect.ftp

so I can access my ftp directories like that :
e ftp://myftplo...@ftphost.fr/

because it still not working
?

  

What does

:echo g:netrw_ftp_cmd

show -- I'm used to using $HOME rather than $home, but perhaps that 
doesn't make any difference under Windows.  Does $home have a trailing 
slash, or is it a backslash?  You may have to change the backslash(es) 
to slashes.


Regards,
Chip Campbell

--
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: how to read long shell output

2010-08-22 Thread Charles E Campbell Jr

yosi izaq wrote:

Aaron Lewis:

should work with standard unix command `less` and pipe , did you try
with it ?

! cd %:h  nm `find .. -name *.so ` | less cr


Doesn't work. See:
Error detected while processing /users/yizaq/.vimrc:
line  534:
E492: Not an editor command:  less cr

Christian Brabandt:

How about :r! nm `find %:h -name *.so ...` to redirect the output into a
scratch buffer?


I did
:r! cd %:h  nm `find .. -name *.so ` cr

but output goes to current buffer, not scratch. I'm probably doing
something wrong, could you please point out what?
  
Check out RunView 
(http://mysite.verizon.net/astronaut/vim/index.html#RUNVIEW)


Regards,
Chip Campbell

--
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: Conceal Greek letters in TeX

2010-07-11 Thread Charles E Campbell Jr

björn wrote:

On Jul 10, 6:05 pm, Benjamin R. Haskell wrote:
  

On Sat, 10 Jul 2010, björn wrote:



...but what's with the syntax highligting?  Greek letters are
highlighted with a medium dark grey background and light grey
foreground making the letters almost impossible to see.  I tried
digging through the syntax file for TeX but could not figure out which
highlight group controls this unfortunate choice of colors.  Can
somebody (Chip?) tell me how to change the colors to something more
readable?
  

'Conceal' is the group name, so:

 clear the grey
:hi clear Conceal

 set something manually:
:hi Conceal (settings)

 or link to something:
:hi link Conceal Constant



Thanks Ben, now it is much better.  I couldn't find any mention of
this in the help.

Now that everything highlights properly I've found a problem, not sure
if it is a bug or not so I'll ask here first to see if anybody knows
whats going on.  The following line

$a^2$

is concealed properly (the ^2 is drawn as superscript 2).  However

$\alpha^2$

isn't -- it is drawn as greek letter alpha (the ^2 disappears!).

Does anybody know if this is a problem with the +conceal feature or
with the TeX syntax file?
  
I'd guess this is a limitation of the conceal mode -- somewhat 
disconcerting when used for this purpose.  The ability to show utf-8 
extended characters is new to conceal, by the way -- my vim 7.2 patched 
with VN's conceal patch didn't have that capability.


Regards,
Chip Campbell

--
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: Search for several words in each line with vim?

2010-07-07 Thread Charles E Campbell Jr

rewar wrote:

Hi,

I have looked around for a way to do this but just cant seem to find
it. Basically, I have very large documents where I want to often
search for a few words in a line, but they wont be all together.

For example, I want to be able to find the line below in a large text
document by simply searching cat dog
cats are smaller than dogs

All editors I come across only allows you to search for an exact match
of that field cat dog in any line.
  


I see you have your answer already, but here's an answer for a related 
question: how to find lines that have cats and dogs, and other 
Boolean logic combinations:


http://mysite.verizon.net/astronaut/vim/index.html#LOGIPAT

With it:

your original Q:   :LP cats | dogs

modified Q:  :LP cats  dogs

and lines with cats but no dogs:  :LP cats  !dogs

Regards,
Chip Campbell

--
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: Broken URLs in Vim help files

2010-05-25 Thread Charles E Campbell Jr

Benjamin R. Haskell wrote:

On Wed, 26 May 2010, Dominique Pellé wrote:

  

Hi

I noticed that the following URLs in Vim help files are broken.
Does anyone know replacements for some of them?  It would
be nice to update help files if possible.



Here are three...

  

pi_netrw.txt:
http://www.tartarus.org/~simon/puttydoc/Chapter8.html#pubkey-gettingready
pi_netrw.txt:   http://www.tartarus.org/~simon/puttydoc/Chapter5.html



These correspond to the current PuTTY documentation:
http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter8.html#pubkey-gettingready
http://www.chiark.greenend.org.uk/~sgtatham/putty/0.60/htmldoc/Chapter5.html
  

Hello, Benjamin:

Thank you -- I'll be putting those two into pi_netrw.txt.

Chip Campbell

--
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: (g)vim changing directory on invocation

2010-05-19 Thread Charles E Campbell Jr

James Kanze wrote:

I'm encountering a somewhat strange behavior when using gvim on
Windows.  Basically, if I'm in the directory
C:\dev\svn\cal\ifg-record-2\Source, and invoke:

/c/Program\ Files/Vim/vim72/gvim 'C:\dev\svn\cal\ifg-
record-2\Source\Model\Vasicek.h'

(from the Cygwin bash shell, /c has been mounted to refer to
c:.), when I enter vim, the directory has changed to
C:\dev\svn\cal\ifg-record-2\Source\Model.  The directory is not
changed if I pass in a relative path, if I use / instead of \ in
the filename, or if there's more than one filename (even if both
are in the same directory).

I'm 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.)
  

Do you happen to have the acd (autochdir) option set?

:verbose set acd?

(the question mark is part of the command)

Regards,
Chip Campbell

--
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


  1   2   >