Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim · Vim (Vi IMproved) text editor users list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 136331 - 136360 of 137770   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#136331 From: Paul <paul.domaskis@...>
Date: Thu Feb 21, 2013 6:56 pm
Subject: Re: _vimrc not run when invoking gvim on text file from context menu
paul.domaskis@...
Send Email Send Email
 
>On Feb 21, 12:54 pm, Paul <paul.domas...@...> wrote:
> In Windows 7, I got a program "pinned" to the taskbar.  It is
> basically a shortcut with the "Target" field set to:
>
>    "C:\Program Files (x86)\Vim\vim73\gvim.exe" -u _vimrc
>
> and the "Start in" field set to $USERPROFILE.  The _vimrc is also in
> $USERPROFILE, so it runs when gvim is started.
>
> However, when I right click on a text file in Windows Explorer and
> choose "Edit with vim", _vimrc is not run.  Is something I can do to
> have it run?
>
> There are restrictions that a solution would have to observe.  First
> is that I don't have admin privileges, so I can only stick _vimrc in
> places where $USERNAME can write.  Also, $HOME is not a good place
> for it because it is set to a network drive.  Finally, since I'm
> invoking gvim from the context menu, I'm not aware of a way to set
> environment variables for such an invocation of vim (unlike the case
> invoking vim from a script or command line).


On Feb 21, 1:05 pm, Paul <paul.domas...@...> wrote:
> I found the solution after a simple read of ":help vimrc".  Set the
> environment variable VIMINIT to
>
>    source $USERPROFILE\_vimrc
>
> For any other system or computing environment, I strongly suspect
> that one can use whatever path is to your _vimrc if it isn't
> $USERPROFILE \_vimrc.

I should clarify that it is the user-specific environment variable
VIMINIT in Windows that I set above.

However, it isn't the greatest solution.  This environment variable
propagates where one does not expect.  For example, it propagates to
cygwin's bash, which causes problems when one invokes gvim from the
bash command line.  The installation of gvim being invoked from bash
is different from the Windows installation of gvim, and the path
$USERPROFILE/_vimrc doesn't work because $USERPROFILE uses Windows
path notation.  The solution (being validated) is to set VIMINIT
explicitly in the bashrc file.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136332 From: Charles E Campbell <drchip@...>
Date: Thu Feb 21, 2013 7:05 pm
Subject: Re: ios vim and plugins
drchip@...
Send Email Send Email
 
Eric Weir wrote:
> On Feb 20, 2013, at 4:15 PM, Charles E Campbell wrote:
>
>>   got vim up and running on my iPad, and used a huge vimball to move
everything over onto it.  I also have a bluetooth keyboard.
>> ....
>> I can create folders with netrw, btw.
> Thanks for the update, Charles. To get the vim app working for me I'm going to
have to study up on netrw and vimball. It will take me a while. When I get to
the place where I think I can do it, I'm gonna go with a pared down
configuration, with just a couple of my favorite plugins instead of trying to
replicate the setup on my macbook.
>
> Today I deleted the vim app and reinstalled it, to give me a clean slate to
work with. Subsequently, I encountered something that struck me as weird: When I
do an 'R' in netrw, instead of asking me to confirm that I want to rename, it
tells me it's "moving" the file. The current path and the target path are
identical. Changing the name of the file in the target path gets the file
renamed.
>
> I checked and that's the way it's working in regular vim, as well. I don't
recall it working that way in the past. Am I mistaken? [Probably so.]
>
Well, you know its very hard to predict things, especially when the
future is involved!

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

---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136333 From: ping <songpingemail@...>
Date: Thu Feb 21, 2013 7:42 pm
Subject: Re: vim script: repeat(\<left>)
songpingemail@...
Send Email Send Email
 
On 02/21/2013 11:04 AM, Ben Fritz wrote:
> For that, I'd use an <expr> cabbrev similar to your <expr> map.
>
> Then you would type :MyGit<Space> and it would expand to something completely
different which you could then edit, or you could type :MyGit<Enter> to execute
the default.
>
> A similar cabbrev technique is used here for vimgrep:
>
>    http://vim.wikia.com/wiki/Find_in_files_within_Vim
thanks! that's also helpful info.
I'll try that.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136334 From: Ben Fritz <fritzophrenic@...>
Date: Thu Feb 21, 2013 8:10 pm
Subject: Re: CTRL-W_= with quickfix window?
fritzophrenic@...
Send Email Send Email
 
On Thursday, February 21, 2013 11:35:42 AM UTC-6, Tim Chase wrote:
> Futzing around with the quickfix (QF) window, I found that using
>
> CTRL-W= ("make the windows the same size", ":help CTRL-W_=") ignores
>
> the quickfix window in its size calculations. Is there some option I
>
> can set to just treat it like other windows?  I wasn't able to turn up
>
> anything in my search.
>
>
>
> The aforementioned help says "Make all windows (almost) equally high
>
> and wide", and I'm not sure whether the parenthetical "almost" is
>
> supposed to apply to the "all" or the "equally".  I can understand
>
> that, if it goes with "equally", that some may be one line
>
> larger/smaller than average to spread out the remainder when dividing
>
> the screen up.  However that would suggest that the ^W= applies to
>
> *all* windows, not *almost all*.
>
>
>
> I just keep getting snagged when I maximize my edit window and it
>
> scrunches the QF window to one line, but I then have to manually
>
> re-increase the size of the QF window if I want to re-see context.
>
>
>
> -tim

Isn't this just because of 'winfixheight'? It gets set automatically for
quickfix or preview window. You could probably make an autocmd to clear that
option.

Or just close your quickfix when you're not looking at it, and then re-open it.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136335 From: Eric Weir <eeweir@...>
Date: Thu Feb 21, 2013 8:40 pm
Subject: Re: ios vim and plugins
eeweir@...
Send Email Send Email
 
On Feb 21, 2013, at 2:05 PM, Charles E Campbell <drchip@...>
wrote:

> Eric Weir wrote:
>>
>> Today I deleted the vim app and reinstalled it, to give me a clean slate to
work with. Subsequently, I encountered something that struck me as weird: When I
do an 'R' in netrw, instead of asking me to confirm that I want to rename, it
tells me it's "moving" the file. The current path and the target path are
identical. Changing the name of the file in the target path gets the file
renamed.
>>
>> I checked and that's the way it's working in regular vim, as well. I don't
recall it working that way in the past. Am I mistaken? [Probably so.]
>
> Well, you know its very hard to predict things, especially when the future is
involved!

Vim is alive? It's changing on its own?

Or did I misremember?

Regards,
--------------------------------------------------------------------------------
Eric Weir
Decatur, GA. USA

"The invincible shield of caring
is a weapon from the sky
against being dead."

– Tao Te Ching, 67

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136336 From: Charles E Campbell <drchip@...>
Date: Thu Feb 21, 2013 9:21 pm
Subject: Re: ios vim and plugins
drchip@...
Send Email Send Email
 
Eric Weir wrote:
> On Feb 21, 2013, at 2:05 PM, Charles E Campbell <drchip@...>
wrote:
>
>> Eric Weir wrote:
>>> Today I deleted the vim app and reinstalled it, to give me a clean slate to
work with. Subsequently, I encountered something that struck me as weird: When I
do an 'R' in netrw, instead of asking me to confirm that I want to rename, it
tells me it's "moving" the file. The current path and the target path are
identical. Changing the name of the file in the target path gets the file
renamed.
>>>
>>> I checked and that's the way it's working in regular vim, as well. I don't
recall it working that way in the past. Am I mistaken? [Probably so.]
>> Well, you know its very hard to predict things, especially when the future is
involved!
> Vim is alive? It's changing on its own?
>
> Or did I misremember?
Netrw is not asking for confirmation, its asking you to provide  the new
name.  Thus the "Moving (curfilename) to (curfilename)" message, which
you can edit (or not, which is the "future" to which I jocularly
referred to above).  Netrw doesn't change the message afterwards, it
leaves it on the display.

The "renaming" operation has always worked that way; and it actually is
a move.

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

---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136337 From: Bram Moolenaar <Bram@...>
Date: Thu Feb 21, 2013 10:10 pm
Subject: Re: Download counter of Vim scripts no longer incremented?
Bram@...
Send Email Send Email
 
I wrote:

> Dominique Pelle wrote:
>
> > The Vim scripts at  http://www.vim.org/scripts/index.php
> > show something like...
> >
> >   script karma  Rating 166/43, Downloaded by 513
> >
> > I've noticed in the last few days that the download
> > counters are no longer incremented. It seems to
> > affect all scripts.
>
> It appears the client IP address is no longer available.
> This is used to avoid counting a download twice.
>
> Sourceforge ticket:
> https://sourceforge.net/p/forge/site-support/2461/?page=1
>
> I don't know a workaround.

Sourceforge has fixed the problem, counters increment again.

--
BEDEVERE: And that, my lord, is how we know the Earth to be banana-shaped.
                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136338 From: AK <andrei.avk@...>
Date: Fri Feb 22, 2013 12:03 am
Subject: conceal HTML tag attributes
andrei.avk@...
Send Email Send Email
 
Hi, I would like to accomplish the following:

<tag attr1='val' attr2='val'> </tag>

concealed:

<tag> </tag>


I've mucked around with html.vim syntax file but I can't get anything to
work, not even some very simplified example:

syn match cTag +[a-z]\++ contained conceal containedin=concTag
syn region concTag start=+zz+ end=+zz+ contains=cTag


when I have this text: zz  abc  zz I thought abc would be concealed,
but it's not. Instead, insides of html tags are concealed, which
makes no sense at all. Please help!

   - rainy

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136339 From: rainy <andrei.avk@...>
Date: Fri Feb 22, 2013 2:15 am
Subject: Re: conceal HTML tag attributes
andrei.avk@...
Send Email Send Email
 
On Feb 21, 7:03 pm, AK <andrei....@...> wrote:
> Hi, I would like to accomplish the following:
>
> <tag attr1='val' attr2='val'> </tag>
>
> concealed:
>
> <tag> </tag>
>
> I've mucked around with html.vim syntax file but I can't get anything to
> work, not even some very simplified example:
>
> syn match cTag +[a-z]\++ contained conceal containedin=concTag
> syn region concTag start=+zz+ end=+zz+ contains=cTag
>
> when I have this text: zz  abc  zz I thought abc would be concealed,
> but it's not. Instead, insides of html tags are concealed, which
> makes no sense at all. Please help!
>
>   - rainy


I found out what the issue was: I had my pattern on the first line of
the html file, which prevented it from working. When I moved to
the second line, it's now good.

The syn match I'm using is:
syn region  htmlTag                start=+<[^/]+   end=+>+
contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDef\
inition,@htmlPreproc,@htmlArgCluster,doConceal

syn match doConceal + [^>]*+ conceal contained

  - rainy

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136340 From: Suresh Govindachar <sgovindachar@...>
Date: Fri Feb 22, 2013 3:26 am
Subject: Example building 64 bit gvim/vim with perl support on Windows 7
sgovindachar@...
Send Email Send Email
 
I used to build 32 bit Vim with perl support using mingw regularly, but stopped
when I got 64 bit Windows 7 since my attempts at building a 64 bit version
failed.

Some hours ago, I got the latest vim sources using mercurial, and succeeded at
building gvim and vim with support for 64 bit perl.  The MinGW64 I used was:

       x86_64-w64-mingw32-gcc-4.6.3-2-release-win64_rubenvb.7z
       x86_64-w64-mingw32-mingw-w64-update-trunk-20130115_rubenvb.7z

The following commands were issued from a .bat file that had the lines "@set
USERNAME=<name>" and "@set USERDOMAIN=<doman>":

    c:\opt\mingw64\bin\mingw32-make.exe
         -f Make_ming.mak
         CPU=IA64
         ARCH=x86-64
         FEATURES=HUGE
         DEBUG=no
         GUI=no
         OLE=no
         STATIC_STDCPLUS=yes
         PERL=C:/opt/perl64
         PERL_VER=516
         CC="c:/opt/mingw64/bin/x86_64-w64-mingw32-gcc.exe"

and a similar one with both GUI and OLE set to yes.

--Suresh

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136341 From: Arvid Warnecke <arvid@...>
Date: Fri Feb 22, 2013 7:51 am
Subject: Re: Always restore buffer list from .viminfo file
arvid@...
Send Email Send Email
 
Hello again,

seems there is no obvious solution for my problem.

On Wed, Feb 20, 2013 at 10:26:17AM +0100, Arvid Warnecke wrote:
> is there any chance to recover all opened buffers in vim from the
> ~/.viminfo file somehow?
> I understood that vim trashes the buffers list when vim is started with
> a specific file to edit. But as I use vim in mutt as my default editor
> as well, I always loose my buffers because mutt opens it like this:
>
> `vim /tmp/mutt-archbookPro-1000-895-3021467551525290154`
>
> So it does not help when I try to use only one vim instance running on
> my workstation to keep all buffers around.
>
I just noticed that I also loose my buffers list after merging with
vimdiff, too. :(

Cheers,
Arvid

--
[ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
[ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
---[  ThreePiO was right: Let the Wookiee win.  ]---

#136342 From: Grahame Blackwood <grahameblackwood@...>
Date: Fri Feb 22, 2013 7:52 am
Subject: Re: mapping a substitute for the Esc key?
grahameblackwood@...
Send Email Send Email
 
On Thu, Feb 21, 2013 at 09:37 PM, Steve Litt <slitt@...> wrote:

> from: Steve Litt <slitt@...>
> date: Thu, Feb 21 04:37 PM -05:00 2013
> to: Grahame Blackwood <grahameblackwood@...>
> subject: Re: mapping a substitute for the Esc key?
>
> On Thu, 21 Feb 2013 16:41:14 +0000
> Grahame Blackwood <grahameblackwood@...> wrote:
>
>> On Mon, Feb 18, 2013 at 10:54 PM, Steve Litt
>> <slitt@...> wrote:
>>
>> > from: Steve Litt <slitt@...>
>> > date: Mon, Feb 18 05:54 PM -05:00 2013
>> > to: vim_use@googlegroups.com
>> > reply-to: vim_use@googlegroups.com
>> > subject: mapping a substitute for the Esc key?
>> >
>> > Hi all,
>> >
>> > I injured my left middle finger and can no longer extend it.
>> > Therefore, hitting the Esc key to get out of insert mode stops my
>> > work in its tracks.
>> >
>> > Question for all of you: What's your favorite substitute for Esc,
>> > whether a keystroke, key combination, or key sequence?
>> >
>> > Thanks
>> >
>> > SteveT
>> >
>> Hi Steve
>>
>> Sorry to hear about your injury and hope your finger improves soon.
>>
>> I tried replying to the vim_use list but my email hasn't shown up.
>>
>> My preferred substitute for esc is ;; as on my keyboard it falls under
>> my right little finger. I either hit it twice or sometimes just hold
>> it down until vim exits insert mode.
>>
>> Cheers
>>
>> G
>
> Thanks Graham. I finally settled on jf, but ;; would have been pretty
> good too.
>
> I think I know your name from a list other than the Vim list: LyX, Lua,
> something like that?
>
> Thanks
>
> Steve

Hi Steve

Probably Vimoutliner or Lyx. We have also corresponded about your Umenu system
which I use every day, so thank you for developing it and also
Vimoutliner - both very useful tools.

Cheers

G



--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136343 From: Jürgen Krämer <jottkaerr@...>
Date: Fri Feb 22, 2013 7:52 am
Subject: Re: _vimrc not run when invoking gvim on text file from context menu
jottkaerr@...
Send Email Send Email
 
Hi,

Paul wrote:
>
> In Windows 7, I got a program "pinned" to the taskbar.  It is
> basically a shortcut with the "Target" field set to:
>
>    "C:\Program Files (x86)\Vim\vim73\gvim.exe" -u _vimrc
>
> and the "Start in" field set to $USERPROFILE.  The _vimrc is also in
> $USERPROFILE, so it runs when gvim is started.
>
> However, when I right click on a text file in Windows Explorer and
> choose "Edit with vim", _vimrc is not run.  Is something I can do to
> have it run?
>
> There are restrictions that a solution would have to observe.  First
> is that I don't have admin privileges, so I can only stick _vimrc in
> places where $USERNAME can write.  Also, $HOME is not a good place for
> it because it is set to a network drive.  Finally, since I'm invoking
> gvim from the context menu, I'm not aware of a way to set environment
> variables for such an invocation of vim (unlike the case invoking vim
> from a script or command line).

the $HOME variable is the culprit. If you don't give the -u parameter on
the command line Vim looks for its _vimrc in the directory defined by
$HOME. On Windows, if $HOME does not exist it is constructed internally
from $HOMEDRIVE$HOMEPATH (see ":help $HOME").

So either you have to put your _vimrc on the network drive given by
$HOME, or you have to modify the command that is executed when you click
on "Edit with vim".

I have never used this context menu entry much and for the only computer
that has it I'm not so sure if I haven't tinkered around with it, so the
following might be of no help:

   - Open the registry editor by executing regedit.exe.
   - Search for the Text "Edit with Vim". If one of the letters in the
     context menu is underlined put an ampersand in front of it, e.g. I
     had to actually search for "Edit with &Vim".
   - You should find an entry with an sub-entry called "Command". This
     sub-entry should have a key called "(Standard)" or "(Default)" or
     something like this which holds the command to start Vim.
   - Modify it so that it includes "-u $USERPROFILE\.vimrc" after the
     program name, i.e. it should like

       <Path to Vim>\Vim.exe -u $USERPROFILE\.vimrc "%1"

     Instead of "%1" you can also write "%L" which might be better for
     long file names.

Hope this helps.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136344 From: Eric Weir <eeweir@...>
Date: Fri Feb 22, 2013 2:45 pm
Subject: Re: ios vim and plugins
eeweir@...
Send Email Send Email
 
On Feb 21, 2013, at 4:21 PM, Charles E Campbell <drchip@...>
wrote:

> Netrw is not asking for confirmation, its asking you to provide  the new name.
Thus the "Moving (curfilename) to (curfilename)" message, which you can edit (or
not, which is the "future" to which I jocularly referred to above).  Netrw
doesn't change the message afterwards, it leaves it on the display.
>
> The "renaming" operation has always worked that way; and it actually is a
move.

Thanks,  Charles. It appears I did misremember.

--------------------------------------------------------------------------------
Eric Weir
Decatur, GA. USA

"The invincible shield of caring
is a weapon from the sky
against being dead."

– Tao Te Ching, 67

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136345 From: Paul <paul.domaskis@...>
Date: Fri Feb 22, 2013 3:22 pm
Subject: Re: _vimrc not run when invoking gvim on text file from context menu
paul.domaskis@...
Send Email Send Email
 
On Feb 22, 2:52 am, Jürgen Krämer <jottka...@...> wrote:
>Paul wrote:
>> In Windows 7, I got a program "pinned" to the taskbar.  It is
>> basically a shortcut with the "Target" field set to:
>>
>>    "C:\Program Files (x86)\Vim\vim73\gvim.exe" -u _vimrc
>>
>> and the "Start in" field set to $USERPROFILE.  The _vimrc is also
>> in $USERPROFILE, so it runs when gvim is started.
>>
>> However, when I right click on a text file in Windows Explorer and
>> choose "Edit with vim", _vimrc is not run.  Is something I can do
>> to have it run?
>>
>> There are restrictions that a solution would have to observe.
>> First is that I don't have admin privileges, so I can only stick
>> _vimrc in places where $USERNAME can write.  Also, $HOME is not a
>> good place for it because it is set to a network drive.  Finally,
>> since I'm invoking gvim from the context menu, I'm not aware of a
>> way to set environment variables for such an invocation of vim
>> (unlike the case invoking vim from a script or command line).
>
> the $HOME variable is the culprit. If you don't give the -u
> parameter on the command line Vim looks for its _vimrc in the
> directory defined by $HOME. On Windows, if $HOME does not exist it
> is constructed internally from $HOMEDRIVE$HOMEPATH (see ":help
> $HOME").
>
> So either you have to put your _vimrc on the network drive given by
> $HOME, or you have to modify the command that is executed when you
> click on "Edit with vim".
>
> I have never used this context menu entry much and for the only
> computer that has it I'm not so sure if I haven't tinkered around
> with it, so the following might be of no help:
>
>
>  - Open the registry editor by executing regedit.exe.
>  - Search for the Text "Edit with Vim". If one of the letters in the
>    context menu is underlined put an ampersand in front of it, e.g.
>    I had to actually search for "Edit with &Vim".
>  - You should find an entry with an sub-entry called "Command".
>    This sub-entry should have a key called "(Standard)" or
>    "(Default)" or something like this which holds the command to
>    start Vim.
>  - Modify it so that it includes "-u $USERPROFILE\.vimrc" after the
>    program name, i.e. it should like
>
>      <Path to Vim>\Vim.exe -u $USERPROFILE\.vimrc "%1"
>
>    Instead of "%1" you can also write "%L" which might be better for
>    long file names.

Thanks for that, Jurgen.

I don't have the ability to change the registry.

However, I found that setting the user-specific Windows environment
variable VIMINIT works.  However, one has to be careful about the fact
that all subprocesses inherit this.  For example, if you run cygwin's
bash shell, it will also inherit this.  However, cygwin's bash uses
posix style paths, so if VIMINIT contains DOS style paths, it will
cause problems.  As I said, my solution was to unset VIMINIT in my
bash startup file ".bashrc".  It's messy, having to undo something in
one environment that was setup in another environment, but it's the
nature of using global variables.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136346 From: Paul <paul.domaskis@...>
Date: Fri Feb 22, 2013 3:24 pm
Subject: How to "fold more" only over specified range of lines
paul.domaskis@...
Send Email Send Email
 
For vim folds, "zm" and "zr" decreases and increases the depth of
visible folds.  Is there a way to modify the folds in this manner but
only over a range of lines (perhaps delineated by 'a and 'b)?

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136347 From: So8res <so8res@...>
Date: Fri Feb 22, 2013 11:21 am
Subject: Trouble building vim on a mac
so8res@...
Send Email Send Email
 
I'm trying to build vim on a mac. I'm pretty new to macs, so I'm almost
undoubtably doing something wrong. I have the Xcode developer tools etc.
installed, but when I clone vim from the mercurial head, configure, and make, I
get the following:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC -fno-common -fpascal-strings
-Wall -Wn
o-unknown-pragmas -mdynamic-no-pic -pipe -I. -Iproto -DMACOS_X_UNIX
-no-cpp-precomp -I/A
pplications/Xcode.app/Contents/Developer/Headers/FlatCarbon  -g -O2
-U_FORTIFY_SOURCE -D
_FORTIFY_SOURCE=1   -I/usr/X11/include     -o objects/buffer.o buffer.c
In file included from vim.h:338,
                  from buffer.c:28:
os_mac.h:26:64: error: Quickdraw.h: No such file or directory
os_mac.h:27:24: error: ToolUtils.h: No such file or directory
os_mac.h:28:21: error: LowMem.h: No such file or directory
os_mac.h:29:20: error: Scrap.h: No such file or directory
os_mac.h:30:20: error: Sound.h: No such file or directory
os_mac.h:31:24: error: TextUtils.h: No such file or directory
os_mac.h:33:22: error: OSUtils.h: No such file or directory
os_mac.h:34:20: error: Files.h: No such file or directory
os_mac.h:36:22: error: Script.h: No such file or directory
In file included from structs.h:81,
                  from vim.h:1731,
                  from buffer.c:28:
gui.h:37:20: error: Types.h: No such file or directory
gui.h:40:20: error: Fonts.h: No such file or directory
gui.h:41:21: error: Events.h: No such file or directory
gui.h:42:20: error: Menus.h: No such file or directory
gui.h:44:24: error: Windows.h: No such file or directory
gui.h:46:23: error: Controls.h: No such file or directory
gui.h:48:22: error: Dialogs.h: No such file or directory
[extensive output redacted]

Anyone run into this before and/or know what I'm doing wrong off the top of
their head?

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136348 From: Phil Dobbin <phildobbin@...>
Date: Fri Feb 22, 2013 3:58 pm
Subject: Re: Trouble building vim on a mac
phildobbin@...
Send Email Send Email
 
On 22/02/2013 11:21, So8res wrote:

> I'm trying to build vim on a mac. I'm pretty new to macs, so I'm almost
undoubtably doing something wrong. I have the Xcode developer tools etc.
installed, but when I clone vim from the mercurial head, configure, and make, I
get the following:
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC -fno-common -fpascal-strings
-Wall -Wn
> o-unknown-pragmas -mdynamic-no-pic -pipe -I. -Iproto -DMACOS_X_UNIX
-no-cpp-precomp -I/A
> pplications/Xcode.app/Contents/Developer/Headers/FlatCarbon  -g -O2
-U_FORTIFY_SOURCE -D
> _FORTIFY_SOURCE=1   -I/usr/X11/include     -o objects/buffer.o buffer.c
> In file included from vim.h:338,
>                  from buffer.c:28:
> os_mac.h:26:64: error: Quickdraw.h: No such file or directory
> os_mac.h:27:24: error: ToolUtils.h: No such file or directory
> os_mac.h:28:21: error: LowMem.h: No such file or directory
> os_mac.h:29:20: error: Scrap.h: No such file or directory
> os_mac.h:30:20: error: Sound.h: No such file or directory
> os_mac.h:31:24: error: TextUtils.h: No such file or directory
> os_mac.h:33:22: error: OSUtils.h: No such file or directory
> os_mac.h:34:20: error: Files.h: No such file or directory
> os_mac.h:36:22: error: Script.h: No such file or directory
> In file included from structs.h:81,
>                  from vim.h:1731,
>                  from buffer.c:28:
> gui.h:37:20: error: Types.h: No such file or directory
> gui.h:40:20: error: Fonts.h: No such file or directory
> gui.h:41:21: error: Events.h: No such file or directory
> gui.h:42:20: error: Menus.h: No such file or directory
> gui.h:44:24: error: Windows.h: No such file or directory
> gui.h:46:23: error: Controls.h: No such file or directory
> gui.h:48:22: error: Dialogs.h: No such file or directory
> [extensive output redacted]
>
> Anyone run into this before and/or know what I'm doing wrong off the top of
their head?
>

If you're trying to build MacVim, you need to pull the macvim sources:

<https://code.google.com/p/macvim/>

If you're trying to build console vim on a Mac, you'll need to pass
disable gui to configure.

Cheers,

   Phil...


--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136349 From: Ben Fritz <fritzophrenic@...>
Date: Fri Feb 22, 2013 5:07 pm
Subject: Re: Always restore buffer list from .viminfo file
fritzophrenic@...
Send Email Send Email
 
On Wednesday, February 20, 2013 3:26:17 AM UTC-6, Arvid Warnecke wrote:
> Hello,
>
>
>
> is there any chance to recover all opened buffers in vim from the
>
> ~/.viminfo file somehow?
>
> I understood that vim trashes the buffers list when vim is started with
>
> a specific file to edit. But as I use vim in mutt as my default editor
>
> as well, I always loose my buffers because mutt opens it like this:
>
>
>
> `vim /tmp/mutt-archbookPro-1000-895-3021467551525290154`
>
>
>
> So it does not help when I try to use only one vim instance running on
>
> my workstation to keep all buffers around.
>
>
>
> I read something about v:oldfiles, but I have no clue how this file
>
> might be of any help, because I just have a list of all old files in a
>
> new buffer. I am not able to restore the buffers from it.
>
>
>

I don't know anything about keeping the buffer list around like you want, but I
do use the MRU plugin for a reasonably nice way to go back to the last few files
I was editing.

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

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136350 From: Ben Fritz <fritzophrenic@...>
Date: Fri Feb 22, 2013 5:12 pm
Subject: Re: How to "fold more" only over specified range of lines
fritzophrenic@...
Send Email Send Email
 
On Friday, February 22, 2013 9:24:57 AM UTC-6, Paul wrote:
> For vim folds, "zm" and "zr" decreases and increases the depth of
>
> visible folds.  Is there a way to modify the folds in this manner but
>
> only over a range of lines (perhaps delineated by 'a and 'b)?

I don't know of a command to do this. If there is not one listed at :help
fold-commands, it probably doesn't exist.

It might be possible to script such a command, making use of the :foldopen and
:foldclose commands. But this isn't a trivial task; I don't know of an easy way
to get a list of all folds on a line and the depth, for nested folds. You can
look at $VIMRUNTIME/syntax/2html.vim for how the fold information in a file is
found and stored in usable form. If there's an easier way to do it I'd love to
know about it.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136351 From: Ben Fritz <fritzophrenic@...>
Date: Fri Feb 22, 2013 5:14 pm
Subject: Re: _vimrc not run when invoking gvim on text file from context menu
fritzophrenic@...
Send Email Send Email
 
On Thursday, February 21, 2013 11:54:07 AM UTC-6, Paul wrote:
> There are restrictions that a solution would have to observe.  First
>
> is that I don't have admin privileges, so I can only stick _vimrc in
>
> places where $USERNAME can write.  Also, $HOME is not a good place for
>
> it because it is set to a network drive.

How about putting a very bare-bones .vimrc in $HOME, which just sets the
runtimepath to somewhere else (local) and then sources your local .vimrc. You
could even detect Windows vs. Unix/Cygwin and do something different for each.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136352 From: Paul <paul.domaskis@...>
Date: Fri Feb 22, 2013 6:58 pm
Subject: Re: How to "fold more" only over specified range of lines
paul.domaskis@...
Send Email Send Email
 
On Feb 22, 12:12 pm, Ben Fritz <fritzophre...@...> wrote:
>On Friday, February 22, 2013 9:24:57 AM UTC-6, Paul wrote:
>> For vim folds, "zm" and "zr" decreases and increases the depth of
>>
>> visible folds.  Is there a way to modify the folds in this manner
>> but
>>
>> only over a range of lines (perhaps delineated by 'a and 'b)?
>
> I don't know of a command to do this. If there is not one listed at
> :help fold-commands, it probably doesn't exist.
>
> It might be possible to script such a command, making use of the
> :foldopen and :foldclose commands. But this isn't a trivial task; I
> don't know of an easy way to get a list of all folds on a line and
> the depth, for nested folds. You can look at
> $VIMRUNTIME/syntax/2html.vim for how the fold information in a file
> is found and stored in usable form. If there's an easier way to do
> it I'd love to know about it.

For now, I think I'll just apply :foldopen and :foldclose to line
ranges instead.  Thanks.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136353 From: hackware <hackware@...>
Date: Fri Feb 22, 2013 6:18 pm
Subject: moving matched search pattern to after current line
hackware@...
Send Email Send Email
 
I wish to issue a colon command to move a "seeded" search match to after current
line.

like the following:

:'a,'bg/ZZZ/m.+1

'a and 'b are set and around search area containing the "ZZZ" seeded line to be
moved...

m is for move, and i had thought the period would mean current line, but it does
not...

and the "+1" would be line after where cursor was before the colon command...

Seems simple, what am I doing wrong...?

william...

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136354 From: Ben Fritz <fritzophrenic@...>
Date: Fri Feb 22, 2013 9:00 pm
Subject: Re: moving matched search pattern to after current line
fritzophrenic@...
Send Email Send Email
 
On Friday, February 22, 2013 12:18:50 PM UTC-6, hackware wrote:
> I wish to issue a colon command to move a "seeded" search match to after
current line.
>
> like the following:
>
> :'a,'bg/ZZZ/m.+1
>
> 'a and 'b are set and around search area containing the "ZZZ" seeded line to
be moved...
>
> m is for move, and i had thought the period would mean current line, but it
does not...
>
> and the "+1" would be line after where cursor was before the colon command...
>
> Seems simple, what am I doing wrong...?
>
> william...

The :g command works by finding a list of lines matching the pattern, setting
the "current" line and executing the command on each of the matched lines in
turn.

So . in a :g command refers to each line acted on.

For simplicity, I will assume you're moving lines to a position outside of your
'a,'b range. You could either give an absolute number directly, or use :exec
'g...'.line('.'), or set a mark on the current line and use that.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136355 From: hackware <hackware@...>
Date: Fri Feb 22, 2013 9:59 pm
Subject: Re: moving matched search pattern to after current line
hackware@...
Send Email Send Email
 
On Friday, February 22, 2013 3:00:49 PM UTC-6, Ben Fritz wrote:
> On Friday, February 22, 2013 12:18:50 PM UTC-6, hackware wrote:
> > I wish to issue a colon command to move a "seeded" search match to after
current line.
> >
> > like the following:
> >
> > :'a,'bg/ZZZ/m.+1
> >
> > 'a and 'b are set and around search area containing the "ZZZ" seeded line to
be moved...
> >
> > m is for move, and i had thought the period would mean current line, but it
does not...
> >
> > and the "+1" would be line after where cursor was before the colon
command...
> >
> > Seems simple, what am I doing wrong...?
> >
> > william...
>
> The :g command works by finding a list of lines matching the pattern, setting
the "current" line and executing the command on each of the matched lines in
turn.
>
> So . in a :g command refers to each line acted on.
>
> For simplicity, I will assume you're moving lines to a position outside of
your 'a,'b range. You could either give an absolute number directly, or use
:exec 'g...'.line('.'), or set a mark on the current line and use that.

ahhh...

backasswards b my "normal" problem...

did not realize that :g set current line...

guess i'll have to figger out yank/put from registers...
(working up to writing a script...)

thanx...

william...

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136356 From: Tim Chase<vim@...>
Date: Fri Feb 22, 2013 10:05 pm
Subject: Re: moving matched search pattern to after current line
vim@...
Send Email Send Email
 
On 2013-02-22 13:59, hackware wrote:
> On Friday, February 22, 2013 3:00:49 PM UTC-6, Ben Fritz wrote:
> > On Friday, February 22, 2013 12:18:50 PM UTC-6, hackware wrote:
> > > I wish to issue a colon command to move a "seeded" search match
> > > to after current line.
> > >
> > > like the following:
> > >
> > > :'a,'bg/ZZZ/m.+1
> > >
> > > 'a and 'b are set and around search area containing the "ZZZ"
> > > seeded line to be moved...
> >
> > So . in a :g command refers to each line acted on.
>
> did not realize that :g set current line...
>
> guess i'll have to figger out yank/put from registers...
> (working up to writing a script...)

As Ben suggests, you can do something like

   :kq|'a,'bg/ZZZ/m'q+1

where "kq" drops the "q" mark on the current/initial line, allowing
it to then be referenced as the target for the move.

-tim


--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136357 From: Rick Dooling <rpdooling@...>
Date: Fri Feb 22, 2013 11:14 pm
Subject: fold on lines beginning with either = or #
rpdooling@...
Send Email Send Email
 
Using Fountain (new markdown for screenwriters).

I have Vim successfully folding on lines beginning with =

using this

setlocal foldexpr=getline(v:lnum)!~\"^=\"

but I would like Vim to fold on BOTH = and # (hierarchy not necessary)

How do I get the OR into the foldexpr?

Thank you

Rick

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136358 From: Tony Mechelynck <antoine.mechelynck@...>
Date: Sat Feb 23, 2013 1:07 am
Subject: Re: Help regarding netrw, sorry if this is not the right way to ask for help.
antoine.mechelynck@...
Send Email Send Email
 
On 21/02/13 06:22, Charles E Campbell wrote:
> Manas K wrote:
>> Hello Dr.Chip!
>>
>> I tried out that version to the same effect. I did post earlier on the
>> vim mailing list and a gentleman (Tony) confirmed my suspicion that
>> once a directory was opened by using the direct path, any other
>> directory I further try to navigate will need to have a "/" after it,
>> which somehow sub-directories don't show.
>>
> You can also try two commands provided by netrw:
>
>    gf : treat string under cursor as a file's name
>    gd: treat string under cursor as a directory's name
>
> Netrw has a variable that may help you:
>
>    g:netrw_ftp_list_cmd
>
> See  :help g:netrw_ftp_list_cmd  .  The point is: netrw expects the
> listing delivered by ftp to include the name followed by "/" in the case
> of directories.  Try using ftp directly; does
>
>     ls -lF
>
> show directories with trailing slashes?  It could either be the site
> that's causing trouble, your ftp doesn't pass along options, etc. If you
> find some magic option that gets those slashes, modify the variable.
>
> Regards,
> C Campbell
>

ah, interesting: thanks Dr. Chip.

With my version of ftp (which may or may not act like the OP's one),
"ls" gives a long listing without directory slashes, but "ls -lF"
outputs the same listing with the slashes. Thanks!

Best regards,
Tony.
--
"Let me assure you that to us here at First National, you're not just a
number.  You're two numbers, a dash, three more numbers, another dash
and another number."
		 -- James Estes

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136359 From: Tim Chase<vim@...>
Date: Sat Feb 23, 2013 1:19 am
Subject: Re: fold on lines beginning with either = or #
vim@...
Send Email Send Email
 
On 2013-02-22 15:14, Rick Dooling wrote:
> Using Fountain (new markdown for screenwriters).
>
> I have Vim successfully folding on lines beginning with =
>
> using this
>
> setlocal foldexpr=getline(v:lnum)!~\"^=\"
>
> but I would like Vim to fold on BOTH = and # (hierarchy not
> necessary)

I'm not familiar with Fountain, but the "!~" is a "doesn't match
this regexp" operator, so I'm surprised it's folding them
away rather than folding away all lines that *don't* begin with an
"=".

You should be able to do

   setlocal foldexpr=getline(v:lnum)!~'^[=#]'

to use a character-class.  If they can begin after arbitrary
whitespace, you could also do

   setlocal foldexpr=getline(v:lnum)!~'^\\s*[=#]'

-tim


--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

#136360 From: cjsmall <jefferysmall@...>
Date: Sat Feb 23, 2013 4:06 am
Subject: Having trouble activating the matchit plugin
jefferysmall@...
Send Email Send Email
 
[I am subscribed to this group and get daily posts.  I tried to email
this post to vim@... (as the community page states) and it bounced
back without any specifically helpful info.  What's wrong?  Has the
email address changed to vim_use@... or could it be something
else?  Thanks.]

I'm using CSW build of vim 7.3 on a Solaris 10 SPARC system.

I would like to use the matchit plugin that ships with vim.  I read
the instructions, copied the matchit.txt and matchit.vim files from
the system macros directory to my ~/.vim/doc and ~/.vim/plugin
directories.  I can read the matchit documentation with :help matchit,
but vim will not jump to matching HTML tags or C keywords using "%".
I have tried everything in the docs and have searched the internet for
advice.  It appears that many other people have the same problem, but
none of the suggestions I found work for them or for me.

Can anyone suggest what might be wrong?  Thanks for any help you can
offer.
--
Jeff

Here is the build info:

:ver
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 25 2010 14:37:23)
Included patches: 1-55
Compiled by dam@current9s
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind
+cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags
+eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak
+lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme
+netbeans_intg -osfiletype +path_extra -perl +persistent_undo
+postscript +printer +profile -python -python3 +quickfix +reltime
+rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -
tag_any_white -tcl +terminfo +termresponse +textobjects +title
+toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -
xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
    system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
       user exrc file: "$HOME/.exrc"
   system gvimrc file: "$VIM/gvimrc"
     user gvimrc file: "$HOME/.gvimrc"
     system menu file: "$VIMRUNTIME/menu.vim"
   fall-back for $VIM: "/opt/csw/share/vim"
  f-b for $VIMRUNTIME: "/opt/csw/share/vim/vim73"
Compilation: /opt/SUNWspro/bin/cc -c -I. -Iproto -DHAVE_CONFIG_H -
DFEAT_GUI_GTK  -D_REENTRANT -D_PTHREADS -D_POSIX_PTHREAD_SEMANTICS -
DXTHREADS -DXUSE_MTSAFE_API -I/opt/csw/include/gtk-2.0 -I/opt/csw/lib/
gtk-2.0/include -I/o pt/csw/include/atk-1.0 -I/opt/csw/include/cairo -
I/opt/csw/include/pango-1.0 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/
glib-2.0/include -I/opt/csw/include/pixman-1 -I/opt/csw/include/
freetype2 -I/opt/csw/include -I/opt/csw/ include/libpng12   -DORBIT2=1
-D_REENTRANT -D_PTHREADS -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -
DXUSE_MTSAFE_API -I/opt/csw/include/libgnomeui-2.0 -I/opt/csw/include/
libart-2.0 -I/opt/csw/include/gconf/2 -I/opt/csw/include/gno me-
keyring-1 -I/opt/csw/include/libgnome-2.0 -I/opt/csw/include/
libbonoboui-2.0 -I/opt/csw/include/libgnomecanvas-2.0 -I/opt/csw/
include/gtk-2.0 -I/opt/csw/include/gnome-vfs-2.0 -I/opt/csw/lib/gnome-
vfs-2.0/include -I/opt/cs w/include/orbit-2.0 -I/opt/csw/include/
dbus-1.0 -I/opt/csw/lib/dbus-1.0/include -I/opt/csw/include/glib-2.0 -
I/opt/csw/lib/glib-2.0/include -I/opt/csw/include -I/opt/csw/include/
libbonobo-2.0 -I/opt/csw/include/bonobo-activa tion-2.0 -I/opt/csw/
include/libxml2 -I/opt/csw/include/pango-1.0 -I/opt/csw/include/
gail-1.0 -I/opt/csw/include/freetype2 -I/opt/csw/include/atk-1.0 -I/
opt/csw/lib/gtk-2.0/include -I/opt/csw/include/cairo -I/opt/csw/
include/ pixman-1 -I/opt/csw/include/libpng12   -I/opt/csw/include  -
xO3 -m32 -xarch=v8 -xnorunpath  -I/usr/openwin/include Linking: /opt/
SUNWspro/bin/cc -L/opt/csw/lib   -L/usr/openwin/lib   -m32 -xarch=v8 -
norunpath -L/opt/csw/lib -o vim-x11   -L/opt/csw/lib -lgtk-x11-2.0 -
lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -
lpango cairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -
lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lintl   -L/
opt/csw/lib -L/usr/openwin/lib   -lgnomeui-2 -lbonoboui-2 -lgnomevfs-2
-lgnomecanvas-2 -lgnome-2 -lp opt -lbonobo-2 -lbonobo-activation -
lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -
lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -
lfreetype -lfontconfig -lgconf-2 -lgmodule-2.0 - lgobject-2.0 -
lgthread-2.0 -lrt -lglib-2.0 -lintl   -lXt -lX11 -lSM -lICE -lm -lnsl -
lsocket  -lncurses -liconv -lintl -ldl

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Messages 136331 - 136360 of 137770   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help