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 135073 - 135102 of 138245   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#135073 From: eelab <balazs.ugron@...>
Date: Tue Dec 18, 2012 10:48 am
Subject: Re: vim slow on HP-UX 11.31
balazs.ugron@...
Send Email Send Email
 
Thank you all for the tips - see the (ugly) solution below.

Unfortunately installing package from http://hpux.connect.org.uk is not an
option - and as it turned out (see below) it wouldn't help anyway.

I tried the other tip to compile vim for profiling but I got strange errors
which nor I nor Google had any idea what to do with:

         gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -D_FORTIFY_SOURCE=1 -pg -g
-DWE_ARE_PROFILING      -o objects/eval.o eval.c
/var/tmp//ccVmJ1Zu.s: Assembler messages:
/var/tmp//ccVmJ1Zu.s:107302: Error: `mov' does not fit into MMB template
*** Error exit code 1

Finally I decided to try to track down the slowness by commenting out parts in
the source code and try when it gets fast.

Shortly, it turned out that the regular check for user interrupt (ctrl-C) during
text search is extremely slow on this HPUX box for some reason.

I didn't go further and just hacked that line_breakcheck() checks for user
interruption after 10000 calls instead of the default 32. Not really nice, but
works.

misc1.c:

// by balee >> not that often please
#undef BREAKCHECK_SKIP
#define BREAKCHECK_SKIP 5000
// <<

static int      breakcheck_count = 0;

     void
line_breakcheck()
{
     if (++breakcheck_count >= BREAKCHECK_SKIP)
     {
         breakcheck_count = 0;
         ui_breakcheck();
     }
}

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

#135074 From: Dominique Pellé <dominique.pelle@...>
Date: Tue Dec 18, 2012 8:40 pm
Subject: Re: vim slow on HP-UX 11.31
dominique.pelle@...
Send Email Send Email
 
eelab <balazs.ugron@...> wrote:

> Thank you all for the tips - see the (ugly) solution below.
>
> Unfortunately installing package from http://hpux.connect.org.uk is not an
option - and as it turned out (see below) it wouldn't help anyway.
>
> I tried the other tip to compile vim for profiling but I got strange errors
which nor I nor Google had any idea what to do with:
>
>         gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -D_FORTIFY_SOURCE=1 -pg
-g -DWE_ARE_PROFILING      -o objects/eval.o eval.c
> /var/tmp//ccVmJ1Zu.s: Assembler messages:
> /var/tmp//ccVmJ1Zu.s:107302: Error: `mov' does not fit into MMB template
> *** Error exit code 1

It looks like something wrong with your gcc compiler.

In vim/src/Makefile, I see this:

### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
### The first probably works on all systems
### The second should work a bit better on newer systems
### The third should work a bit better on HPUX 11.11
### Information provided by: Richard Allen <ra@...>
#CC = c89 -D_HPUX_SOURCE
#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE

So you could perhaps try to use the c89 compiler on HPUX
instead of gcc?

$ cd vim/src
$ rm auto/config.cache
$ CC=c89 ./configure --with-features=huge --enable=gui=no
$ make


> Finally I decided to try to track down the slowness by commenting out parts in
the source code and try when it gets fast.
>
> Shortly, it turned out that the regular check for user interrupt (ctrl-C)
during text search is extremely slow on this HPUX box for some reason.
>
> I didn't go further and just hacked that line_breakcheck() checks for user
interruption after 10000 calls instead of the default 32. Not really nice, but
works.
>
> misc1.c:
>
> // by balee >> not that often please
> #undef BREAKCHECK_SKIP
> #define BREAKCHECK_SKIP 5000
> // <<
>
> static int      breakcheck_count = 0;
>
>     void
> line_breakcheck()
> {
>     if (++breakcheck_count >= BREAKCHECK_SKIP)
>     {
>         breakcheck_count = 0;
>         ui_breakcheck();
>     }
> }

The function ui_breakcheck() looks like this in ui.c:

  359     void
  360 ui_breakcheck()
  361 {
  362 #ifdef FEAT_GUI
  363     if (gui.in_use)
  364         gui_mch_update();
  365     else
  366 #endif
  367         mch_breakcheck();
  368 }
  369

This begs the question: did you enable FEAT_GUI?
(probably not, judging from your above compilation options)

Can you compare speed with and without FEAT_GUI?

It would be interesting to find why ui_breakcheck() is slow.

Regards
-- Dominique

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

#135075 From: Pablo Giménez <pablogipi@...>
Date: Tue Dec 18, 2012 10:50 pm
Subject: Re: Fuzzy Finder opens buffers in previous buffer rather than current one
pablogipi@...
Send Email Send Email
 



2012/12/17 Asis Hallab <asis.hallab@...>
Dear Pablo,

Fuzzyfinder is somewhat outdated. I would strongly recommend to use the CtrlP plugin
Thanks  Asis.
I tried Ctrl-p like a year ago and preferred Fuzzy Finder. 
But I'll give it another try when I find a moment.

It works wonders for me and has much more to offer than FuzzyFinder.

Kind regards!


2012/12/17 Pablo Giménez <pablogipi@...>
Hello all.
I am using Fuzzy Finder, it is great but there is something really annoying about it.
Most of the time I use FufBuffer problem is that when press CR it open the buffer in a different window rather than the current one.
Anybody knows how to force Fuf to open the selected buffer in the current one?
Thanks 

--
Un saludo
Best Regards
Pablo Giménez

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



--
Un saludo
Best Regards
Pablo Giménez

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

#135076 From: Pablo Giménez <pablogipi@...>
Date: Tue Dec 18, 2012 10:53 pm
Subject: Re: Fuzzy Finder opens buffers in previous buffer rather than current one
pablogipi@...
Send Email Send Email
 



2012/12/17 Jonas Geiregat <jonas@...>


Dear Pablo,

Fuzzyfinder is somewhat outdated. I would strongly recommend to use the CtrlP plugin

It might not have been updated for a while (2 years or something) but I consider it far from being deprecated.

Anybody knows how to force Fuf to open the selected buffer in the current one?

Aren't you confusing buffers by windows ? 

If you have 2 buffers open A and B and one window, showing buffer A.

And you select, using Fuf, buffer B then the window will display buffer B. 

I consider this as normal behavior ?
Yep sorry you are correct, I was confusing buffer and windows.
What is happing let's say I have three buffers, A,b and C.
And two windows, 1 and 2.
1 has buffer A and 2 buffer B, cursor is in window 2, then I call FufBuffer, using a keymao or just from the command line, select buffer C from the Fuf dropdown menu, and rather
than opening buffer C in window 2 ( last window before calling fufBuffer) it opens buffer C in window 1.
I hope now the problem is clear.
Cheers.



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



--
Un saludo
Best Regards
Pablo Giménez

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

#135077 From: Phil Dobbin <phildobbin@...>
Date: Wed Dec 19, 2012 12:56 am
Subject: Re: Fuzzy Finder opens buffers in previous buffer rather than current one
phildobbin@...
Send Email Send Email
 
On 12/18/2012 10:50 PM, Pablo Giménez wrote:

> 2012/12/17 Asis Hallab <asis.hallab@...
> <mailto:asis.hallab@...>>
>
>     Dear Pablo,
>
>     Fuzzyfinder is somewhat outdated. I would strongly recommend to use
>     the CtrlP plugin
>     http://www.vim.org/scripts/script.php?script_id=3736
>
> Thanks  Asis.
> I tried Ctrl-p like a year ago and preferred Fuzzy Finder.
> But I'll give it another try when I find a moment.

I used to prefer FuzzyFinder but after either a Vim upgrade or a yum or
apt update it stopped working virtually altogether. I did contact the
author on BitBucket about it but he kind of given up development by
about then (this was about April this year I seem to recall).

Cheers,

   Phil...


>
>     It works wonders for me and has much more to offer than FuzzyFinder.
>
>     Kind regards!
>
>
>     2012/12/17 Pablo Giménez <pablogipi@...
>     <mailto:pablogipi@...>>
>
>         Hello all.
>         I am using Fuzzy Finder, it is great but there is something
>         really annoying about it.
>         Most of the time I use FufBuffer problem is that when press CR
>         it open the buffer in a different window rather than the current
>         one.
>         Anybody knows how to force Fuf to open the selected buffer in
>         the current one?
>         Thanks

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal

#135078 From: Cesar Romani <cesar.romani@...>
Date: Wed Dec 19, 2012 2:36 am
Subject: regexp
cesar.romani@...
Send Email Send Email
 
If I have the following line:
<a href="http://www.whatever.com">SomeTitle</a>

How to create the file SomeTitle.txt with the content (without the
dashes):
--------------------
[InternetShortcut]
URL=http://www.whatever.com
--------------------

Many thanks in advance,

--
Cesar

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

#135079 From: "John Beckett" <johnb.beckett@...>
Date: Wed Dec 19, 2012 3:23 am
Subject: RE: regexp
johnb.beckett@...
Send Email Send Email
 
Cesar Romani wrote:
> If I have the following line:
> <a href="http://www.whatever.com">SomeTitle</a>
>
> How to create the file SomeTitle.txt with the content (without the
> dashes):
> --------------------
> [InternetShortcut]
> URL=http://www.whatever.com
> --------------------

With the cursor on the line, enter:
:s#<a href="\(.\{-}\)".\{-}</a>#[InternetShortcut]\rURL=\1#

John

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

#135080 From: stosss <stosss@...>
Date: Wed Dec 19, 2012 3:29 am
Subject: Re: regexp
stosss@...
Send Email Send Email
 


On Tue, Dec 18, 2012 at 10:23 PM, John Beckett <johnb.beckett@...> wrote:
:s#<a href="\(.\{-}\)".\{-}</a>#[InternetShortcut]\rURL=\1#

Unless I am missing something you probably meant this. notice the > in the middle of the string next to the "

:s#<a href="\(.\{-}\)">.\{-}</a>#[InternetShortcut]\rURL=\1#


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

#135081 From: Tim Chase <vim@...>
Date: Wed Dec 19, 2012 3:58 am
Subject: Re: regexp
vim@...
Send Email Send Email
 
On 12/18/12 20:36, Cesar Romani wrote:
> If I have the following line:
> <a href="http://www.whatever.com">SomeTitle</a>
>
> How to create the file SomeTitle.txt with the content (without the
> dashes):
> --------------------
> [InternetShortcut]
> URL=http://www.whatever.com
> --------------------

The other pair of answers I saw come back on this extract the
information that you request, but don't write out the content to
files of the name contained in the <a>...</a> tag.  You might try
the following:

function! WriteShortcut(whole, name, url)
   call writefile(['[InternetShortcut]', 'URL='.(a:url), ''],
(a:name).'.txt')
   return a:whole
endfunction

with which you can then use

%s/\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)</\=WriteShortc\
ut(submatch(0),
submatch(3), submatch(2))/g


as a rough approximation to extract the various bits, create a file
with the corresponding name, and then populate it with the
associated contents.  It should be fairly forgiving on whitespace
and single-vs-double-quotes around the URL.  Places that I know it
falls over:

- <a> tags with other attributes such as class='...'

- <a>...</a> nodes with sub-elements in them such as <a
href="http://example.com>My <b>COOL</b> site!!!</a>

It also doesn't trim off whitespace, so it uses the entire text node
as the filename, meaning that if you have

   <a href="...">  text  </a>

it will name the file "<space><space>text<space><space>.txt" so you
may want to sanitize the filename before passing it to writefile()

-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

#135082 From: eelab <balazs.ugron@...>
Date: Wed Dec 19, 2012 9:39 am
Subject: Re: vim slow on HP-UX 11.31
balazs.ugron@...
Send Email Send Email
 
On Tuesday, December 18, 2012 9:40:31 PM UTC+1, Dominique Pelle wrote:

[...]

> So you could perhaps try to use the c89 compiler on HPUX
> instead of gcc?

Unfortunately I don't seem to have c89 installed (and can't get).

[...]

> The function ui_breakcheck() looks like this in ui.c:
>
>  359     void
>  360 ui_breakcheck()
>  361 {
>  362 #ifdef FEAT_GUI
>  363     if (gui.in_use)
>  364         gui_mch_update();
>  365     else
>  366 #endif
>  367         mch_breakcheck();
>  368 }
>  369
>
> This begs the question: did you enable FEAT_GUI?
> (probably not, judging from your above compilation options)

No, I disabled gui option.
Actually, it was the lowest level I checked, mch_breakcheck() was called.


Best,
Balazs

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

#135083 From: dza <dezzadk@...>
Date: Wed Dec 19, 2012 9:56 am
Subject: Re: slow samba+vim, I'm out of suggestions ...
dezzadk@...
Send Email Send Email
 
On Thursday, 13 December 2012 18:11:26 UTC+1, dza  wrote:
> I wonder why my Vim is so slow over our Windows samba share - not only
opening/closing is slow - also typing and edit/insert commands are slow as well
:-commands, plugins, everything.
>
> Can I tame Vim running on a fileshare? Or make it cache the files locally so
it doesn't slow down?
>
> I've seen alot of suggestions, but none of them seems to do the trick.
>
> For example:
>
> nofsync
> ttyfast
> ttimeout
> timeout
>
> Thank you very much in advance, I would really like to know how I can fix this
!

I managed to cut off some time, but still write (:w) and INSERT mode is a bit
slow - when I am building up a few or 10 buffers.

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

#135084 From: Erich Hoffmann <erichhoffmann@...>
Date: Wed Dec 19, 2012 10:28 am
Subject: Re: vimim chinese input
erichhoffmann@...
Send Email Send Email
 
Am Sun, 9 Dec 2012 17:30:20 +0100
schrieb Erich Hoffmann <erichhoffmann@...>:

> ÄãÃǺã¬
>
[...]
> ºÃ°É£¬Óв»ÓиövimimÈË¿ÉÒÔ°ïÖúÎÒÓÃvimim£¿
> лл£¡
[...]
> OK are there vimim guys out there willing to help me using vimmim?
> Thanks in advance£¬
>
> eric

Hello helpers.  Thank you for your replies.  It took me some time to
delve into the topics, and I saw there is even more, like scim...I got
the impression there is no way but just try every method for some time
and see which is best *for me* - perhaps I'll have to take the data
files and write some extra.  Anyway thanks a lot!

eric


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

#135085 From: wormer <brdanilov@...>
Date: Wed Dec 19, 2012 9:52 am
Subject: Vim and Windows User Account Control (UAC)
brdanilov@...
Send Email Send Email
 
Hello! Vim is great editor, but I have some trouble when working under normal
user account and editing files in places with restricted access (like
Program Files and etc.). Is there a way to make Vim elevate access rights
when saving a file? I want Vim to display me the UAC dialogue where I must
confirm the operation instead of giving me a message that write failed?  Is
there anything I can do without running Vim under administrator privilegies
or disabling UAC?



--
View this message in context:
http://vim.1045645.n5.nabble.com/Vim-and-Windows-User-Account-Control-UAC-tp5712\
690.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

#135086 From: ashwin sathya <ashwin.sathya@...>
Date: Wed Dec 19, 2012 1:50 pm
Subject: Re: Vim and Windows User Account Control (UAC)
ashwin.sathya@...
Send Email Send Email
 
+1


On Wed, Dec 19, 2012 at 3:22 PM, wormer <brdanilov@...> wrote:
Hello! Vim is great editor, but I have some trouble when working under normal
user account and editing files in places with restricted access (like
Program Files and etc.). Is there a way to make Vim elevate access rights
when saving a file? I want Vim to display me the UAC dialogue where I must
confirm the operation instead of giving me a message that write failed?  Is
there anything I can do without running Vim under administrator privilegies
or disabling UAC?



--
View this message in context: http://vim.1045645.n5.nabble.com/Vim-and-Windows-User-Account-Control-UAC-tp5712690.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php



--
Thanks & Regards,
R Ashwin Sathya

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

#135087 From: Ben Fritz <fritzophrenic@...>
Date: Wed Dec 19, 2012 2:28 pm
Subject: Re: slow samba+vim, I'm out of suggestions ...
fritzophrenic@...
Send Email Send Email
 
On Wednesday, December 19, 2012 3:56:07 AM UTC-6, dza wrote:
> On Thursday, 13 December 2012 18:11:26 UTC+1, dza  wrote:
> > I wonder why my Vim is so slow over our Windows samba share - not only
opening/closing is slow - also typing and edit/insert commands are slow as well
:-commands, plugins, everything.
> >
> > Can I tame Vim running on a fileshare? Or make it cache the files locally so
it doesn't slow down?
> >
> > I've seen alot of suggestions, but none of them seems to do the trick.
> >
> > For example:
> >
> > nofsync
> > ttyfast
> > ttimeout
> > timeout
> >
> > Thank you very much in advance, I would really like to know how I can fix
this !
>
> I managed to cut off some time, but still write (:w) and INSERT mode is a bit
slow - when I am building up a few or 10 buffers.

Again I ask, do other applications also have slow writes to this network
share?Have you tried running Vim without any plugins or .vimrc configuration to
see if the problem persists?

Also did you try my suggestion of the 'hidden' option, or using split windows,
etc. for buffer switching speed?

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

#135088 From: Ben Fritz <fritzophrenic@...>
Date: Wed Dec 19, 2012 2:33 pm
Subject: Re: Vim and Windows User Account Control (UAC)
fritzophrenic@...
Send Email Send Email
 
On Wednesday, December 19, 2012 3:52:01 AM UTC-6, Boris Danilov wrote:
> Hello! Vim is great editor, but I have some trouble when working under normal
>
> user account and editing files in places with restricted access (like
>
> Program Files and etc.). Is there a way to make Vim elevate access rights
>
> when saving a file? I want Vim to display me the UAC dialogue where I must
>
> confirm the operation instead of giving me a message that write failed?  Is
>
> there anything I can do without running Vim under administrator privilegies
>
> or disabling UAC?
>
>
>
>

I'm pretty sure you're stuck launching Vim with admin privileges.

You might be able to hack something together with one or more of these search
results:

https://www.google.com/search?q=windows+sudo+command

But doing that you'd need to bypass Vim's normal write mechanisms, probably with
a BufWriteCmd autocmd. I think you're better off just launching Vim with admin
rights, as people basically do on Linux when editing system files (using "sudo"
to give root access).

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

#135089 From: Cesar Romani <cesar.romani@...>
Date: Wed Dec 19, 2012 2:44 pm
Subject: Re: regexp
cesar.romani@...
Send Email Send Email
 
On 18/12/2012 10:58 p.m., Tim Chase wrote:
  > On 12/18/12 20:36, Cesar Romani wrote:
  >> If I have the following line:
  >> <a href="http://www.whatever.com">SomeTitle</a>
  >>
  >> How to create the file SomeTitle.txt with the content (without the
  >> dashes):
  >> --------------------
  >> [InternetShortcut]
  >> URL=http://www.whatever.com
  >> --------------------
  >
  > The other pair of answers I saw come back on this extract the
  > information that you request, but don't write out the content to
  > files of the name contained in the<a>...</a>  tag.  You might try
  > the following:
  >
  > function! WriteShortcut(whole, name, url)
  >    call writefile(['[InternetShortcut]', 'URL='.(a:url), ''],
  > (a:name).'.txt')
  >    return a:whole
  > endfunction
  >
  > with which you can then use
  >
  >
%s/\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)</\=WriteShortc\
ut(submatch(0),
  > submatch(3), submatch(2))/g
  >
  > as a rough approximation to extract the various bits, create a file
  > with the corresponding name, and then populate it with the
  > associated contents.  It should be fairly forgiving on whitespace
  > and single-vs-double-quotes around the URL.  Places that I know it
  > falls over:
  >
  > -<a>  tags with other attributes such as class='...'
  >
  > -<a>...</a>  nodes with sub-elements in them such as<a
  > href="http://example.com>My<b>COOL</b>  site!!!</a>
  >
  > It also doesn't trim off whitespace, so it uses the entire text node
  > as the filename, meaning that if you have
  >
  >    <a href="...">   text</a>
  >
  > it will name the file "<space><space>text<space><space>.txt" so you
  > may want to sanitize the filename before passing it to writefile()

Thanks, it works fine. If the name contained in the <a>...</a> contains
illegal characters, such as : * ? / | how can I convert them to - or
remove them?

Regards,

--
Cesar

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

#135090 From: ping <songpingemail@...>
Date: Wed Dec 19, 2012 3:51 pm
Subject: Re: vimim chinese input
songpingemail@...
Send Email Send Email
 
vimim *IS* the best available in vim. outside of vim, there are a lot of options.
besides scim (with googlepinyin) you can also try ibus
 

On 12/19/2012 05:28 AM, Erich Hoffmann wrote:
Am Sun, 9 Dec 2012 17:30:20 +0100
schrieb Erich Hoffmann <erichhoffmann@...>:
ÄãÃǺã¬
[...]
ºÃ°É£¬Óв»ÓиövimimÈË¿ÉÒÔ°ïÖúÎÒÓÃvimim£¿
лл£¡
[...]
OK are there vimim guys out there willing to help me using vimmim?
Thanks in advance£¬
eric
Hello helpers. Thank you for your replies. It took me some time to
delve into the topics, and I saw there is even more, like scim...I got
the impression there is no way but just try every method for some time
and see which is best *for me* - perhaps I'll have to take the data
files and write some extra. Anyway thanks a lot!
eric

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

#135091 From: "Christian Brabandt" <cblists@...>
Date: Wed Dec 19, 2012 4:29 pm
Subject: Re: Vim and Windows User Account Control (UAC)
cblists@...
Send Email Send Email
 
On Wed, December 19, 2012 15:33, Ben Fritz wrote:
> On Wednesday, December 19, 2012 3:52:01 AM UTC-6, Boris Danilov wrote:
>> Hello! Vim is great editor, but I have some trouble when working under
>> normal
>>
>> user account and editing files in places with restricted access (like
>>
>> Program Files and etc.). Is there a way to make Vim elevate access
>> rights
>>
>> when saving a file? I want Vim to display me the UAC dialogue where I
>> must
>>
>> confirm the operation instead of giving me a message that write failed?
>> Is
>>
>> there anything I can do without running Vim under administrator
>> privilegies
>>
>> or disabling UAC?
>>
>>
>>
>>
>
> I'm pretty sure you're stuck launching Vim with admin privileges.
>
> You might be able to hack something together with one or more of these
> search results:
>
> https://www.google.com/search?q=windows+sudo+command
>
> But doing that you'd need to bypass Vim's normal write mechanisms,
> probably with a BufWriteCmd autocmd. I think you're better off just
> launching Vim with admin rights, as people basically do on Linux when
> editing system files (using "sudo" to give root access).

Also, please see this comment in my plugin SudoEdit:
https://github.com/chrisbra/SudoEdit.vim/blob/master/doc/SudoEdit.txt#L143

I would be interested in Windows users experiences.

regards,
Christian

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

#135092 From: Andy Wokula <anwoku@...>
Date: Wed Dec 19, 2012 4:46 pm
Subject: Re: regexp, ANN: explainpat
anwoku@...
Send Email Send Email
 
Am 19.12.2012 04:58, schrieb Tim Chase:
>
%s/\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)</\=WriteShortc\
ut(submatch(0),
> submatch(3), submatch(2))/g

Now we have automatic explanation of such patterns:

:ExplainPattern \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<

Pattern: \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<
    \c         ignore case while matching the pattern
    <          literal string (1 atom(s))
    \s         whitespace character: <Space> and <Tab>
    *          (multi) zero or more of the preceding atom
    a          literal string (1 atom(s))
    \s         whitespace character: <Space> and <Tab>
    \+         (multi) one or more of the preceding atom
    href       literal string (4 atom(s))
    \s         whitespace character: <Space> and <Tab>
    *          (multi) zero or more of the preceding atom
    =          literal string (1 atom(s))
    \(         start of first capturing group
    |   ['"]       collection
    \)         end of group
    \(         start of second capturing group
    |   \%(        start of non-capturing group
    |   |   \1         match first captured string
    |   |   \@!        (assertion) forbid match for preceding atom
    |   |   [^/]       collection
    |   \)         end of group
    |   \+         (multi) one or more of the preceding atom
    \)         end of group
    \1         match first captured string
    \s         whitespace character: <Space> and <Tab>
    *          (multi) zero or more of the preceding atom
    >          literal string (1 atom(s))
    \(         start of third capturing group
    |   [^<]       collection
    |   *          (multi) zero or more of the preceding atom
    \)         end of group
    <          literal string (1 atom(s))

looks better with color, see
http://www.vim.org/scripts/script.php?script_id=4364

happy vimming :-)

(or just
      :ExplainPattern *
if the pattern is in the clipboard)

(needless to say: suggestions welcome)

--
Andy

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

#135093 From: Tim Chase <vim@...>
Date: Wed Dec 19, 2012 5:17 pm
Subject: Re: explainpat (was: regexp)
vim@...
Send Email Send Email
 
On 12/19/12 10:46, Andy Wokula wrote:
> Am 19.12.2012 04:58, schrieb Tim Chase:
>>
%s/\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)</\=WriteShortc\
ut(submatch(0),
>> submatch(3), submatch(2))/g
>
> Now we have automatic explanation of such patterns:
>
> :ExplainPattern
\c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<
>
> Pattern: \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<
[snip awesomeness]
> looks better with color, see
> http://www.vim.org/scripts/script.php?script_id=4364
>
> (needless to say: suggestions welcome)

Suggestions? How about accolades :-)  That's pretty sweet!  I do
enough of these explanations by hand that this may become my go-to
script instead of doing laboring over it (and this is coming from a
guy who doesn't install scripts lightly--I've only got one in my
5-line vimrc)

-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

#135094 From: Pablo Giménez <pablogipi@...>
Date: Wed Dec 19, 2012 5:57 pm
Subject: Re: Fuzzy Finder opens buffers in previous buffer rather than current one
pablogipi@...
Send Email Send Email
 



2012/12/19 Phil Dobbin <phildobbin@...>
On 12/18/2012 10:50 PM, Pablo Giménez wrote:

> 2012/12/17 Asis Hallab <asis.hallab@...
> <mailto:asis.hallab@...>>
>
>     Dear Pablo,
>
>     Fuzzyfinder is somewhat outdated. I would strongly recommend to use
>     the CtrlP plugin
>     http://www.vim.org/scripts/script.php?script_id=3736
>
> Thanks  Asis.
> I tried Ctrl-p like a year ago and preferred Fuzzy Finder.
> But I'll give it another try when I find a moment.

I used to prefer FuzzyFinder but after either a Vim upgrade or a yum or
apt update it stopped working virtually altogether. I did contact the
author on BitBucket about it but he kind of given up development by
about then (this was about April this year I seem to recall).
Yep I also began to get some strange issues recently when I switched to vim 7.3.
Wondering if it is time to look for a different option.

Cheers,

  Phil...


>
>     It works wonders for me and has much more to offer than FuzzyFinder.
>
>     Kind regards!
>
>
>     2012/12/17 Pablo Giménez <pablogipi@...
>     <mailto:pablogipi@...>>
>
>         Hello all.
>         I am using Fuzzy Finder, it is great but there is something
>         really annoying about it.
>         Most of the time I use FufBuffer problem is that when press CR
>         it open the buffer in a different window rather than the current
>         one.
>         Anybody knows how to force Fuf to open the selected buffer in
>         the current one?
>         Thanks

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal




--
Un saludo
Best Regards
Pablo Giménez

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

#135095 From: Tim Chase <vim@...>
Date: Wed Dec 19, 2012 6:16 pm
Subject: Re: regexp
vim@...
Send Email Send Email
 
On 12/19/12 08:44, Cesar Romani wrote:
> On 18/12/2012 10:58 p.m., Tim Chase wrote:
>> function! WriteShortcut(whole, name, url)
>>    call writefile(['[InternetShortcut]', 'URL='.(a:url), ''],
>> (a:name).'.txt')
>>    return a:whole
>> endfunction
>
> Thanks, it works fine. If the name contained in the <a>...</a> contains
> illegal characters, such as : * ? / | how can I convert them to - or
> remove them?

Just modify where the file is named in the writefile() function.  I
suspect you want something like

   call writefile([...], substitute(a:name, '[:*?/|]', '_', 'g') .
'.txt')

to change the characters to a "_" (or you can just make it an empty
string to nuke them instead of translate them).  This is also where
I'd tweak to strip off whitespace from either side of the filename,
or other such cleanup.

-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

#135096 From: David Fishburn <dfishburn.vim@...>
Date: Wed Dec 19, 2012 6:44 pm
Subject: Re: explainpat (was: regexp)
dfishburn.vim@...
Send Email Send Email
 
...
>
> Now we have automatic explanation of such patterns:
>
> :ExplainPattern \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<
>
> Pattern: \c<\s*a\s\+href\s*=\(['"]\)\(\%(\1\@![^/]\)\+\)\1\s*>\([^<]*\)<
...
 
> http://www.vim.org/scripts/script.php?script_id=4364
>
> (needless to say: suggestions welcome)


Great job Andy.

One suggestion:
  |   |   [^/]       collection

When the collection leads with ^ indicate maybe:
  |   |   [^/]       collection not containing

Some people confuse the ^ with either the literal character or beginning of line.

Dave

 

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

#135097 From: Christian Brabandt <cblists@...>
Date: Wed Dec 19, 2012 7:01 pm
Subject: Re: regexp, ANN: explainpat
cblists@...
Send Email Send Email
 
Hi Andy!

On Mi, 19 Dez 2012, Andy Wokula wrote:

> looks better with color, see
> http://www.vim.org/scripts/script.php?script_id=4364
>
> happy vimming :-)
>
> (or just
>     :ExplainPattern *
> if the pattern is in the clipboard)
>
> (needless to say: suggestions welcome)

Very nice.

Mit freundlichen Grüßen
Christian
--

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

#135098 From: Christian Brabandt <cblists@...>
Date: Wed Dec 19, 2012 7:48 pm
Subject: Re: regexp, ANN: explainpat
cblists@...
Send Email Send Email
 
On Mi, 19 Dez 2012, Christian Brabandt wrote:

> >     :ExplainPattern *
> > if the pattern is in the clipboard)
> >
> > (needless to say: suggestions welcome)
>
> Very nice.

Some observations:
You already parse \v \V \m and \M
but then you should also output the meaning of those atoms

:%>l doesn't seem to work correctly:
:ExplainPattern \%>1l\&\%<6l
   match below line 1
   \&         AND branch
   match above line 6
(obviously otherway around)

:ExplainPattern: \%>'a1
\%>'a1     literal string (5 atom(s))
(wrong, its 1 after mark a (2atoms)


Possible enhancements:
- maybe show captured string, if simple atom
     \1         match first captured string

- possibly highlight matching patterns, so you can see, what
   :ExplainPattern <pattern> matches in the current buffer)

- :ExplainPattern: \%x31
     \%x31      match character specified with hex number 0x31
     (display character)

Mit freundlichen Grüßen
Christian

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

#135099 From: analogsix <adiles@...>
Date: Wed Dec 19, 2012 7:48 pm
Subject: I loose Syntax Colors when switching between Buffers
adiles@...
Send Email Send Email
 
I have issues with my Vim 7.0 at work.

I edit Verilog RTL files. When I initially load a new buffer/file on gVim, the
Syntax highlighting works correctly. When I run a 'force re-edit' (through
:edit!) or open an existing buffer (i.e. :edit existing_alternate_file) the
syntax highlighting is lost.

In other words:
It appears that when loading a New Buffer, gVim runs the correct sequence of
syntax scripts needed to load the Verilog syntax coloring. But gVim chokes when
I switching between existing buffers.

Can anyone assist?

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

#135100 From: Ben Fritz <fritzophrenic@...>
Date: Wed Dec 19, 2012 8:31 pm
Subject: Re: I loose Syntax Colors when switching between Buffers
fritzophrenic@...
Send Email Send Email
 
On Wednesday, December 19, 2012 1:48:19 PM UTC-6, analogsix wrote:
> I have issues with my Vim 7.0 at work.
>
> I edit Verilog RTL files. When I initially load a new buffer/file on gVim, the
Syntax highlighting works correctly. When I run a 'force re-edit' (through
:edit!) or open an existing buffer (i.e. :edit existing_alternate_file) the
syntax highlighting is lost.
>
> In other words:
> It appears that when loading a New Buffer, gVim runs the correct sequence of
syntax scripts needed to load the Verilog syntax coloring. But gVim chokes when
I switching between existing buffers.
>
> Can anyone assist?

How are you setting the syntax? Do you have automatic filetype detection turned
on (correct), or do you just set the filetype/syntax in your .vimrc?

What exact command do you use to open a new buffer/file so that you see the
highlighting?

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

#135101 From: Andy Wokula <anwoku@...>
Date: Wed Dec 19, 2012 10:13 pm
Subject: Re: explainpat
anwoku@...
Send Email Send Email
 
Am 19.12.2012 19:44, schrieb David Fishburn:

:ExplainPattern [^/]

> One suggestion:
>    |   |   [^/]       collection
>
> When the collection leads with ^ indicate maybe:
>    |   |   [^/]       collection not containing
>
> Some people confuse the ^ with either the literal character or beginning of
> line.

v0.2 is out, now it says

Pattern: [^/]
    [^/]       collection not matching [/]

--
Andy

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

#135102 From: Andy Wokula <anwoku@...>
Date: Wed Dec 19, 2012 10:18 pm
Subject: Re: regexp, ANN: explainpat
anwoku@...
Send Email Send Email
 
v0.2 is out!

Am 19.12.2012 20:48, schrieb Christian Brabandt:
> On Mi, 19 Dez 2012, Christian Brabandt wrote:
>
>>>      :ExplainPattern *
>>> if the pattern is in the clipboard)
>>>
>>> (needless to say: suggestions welcome)
>>
>> Very nice.
>
> Some observations:
> You already parse \v \V \m and \M
> but then you should also output the meaning of those atoms

There is a technical limit ... ExplainPattern only understands
magic patterns.

> :%>l doesn't seem to work correctly:
> :ExplainPattern \%>1l\&\%<6l
>    match below line 1
>    \&         AND branch
>    match above line 6
> (obviously otherway around)

Thanks for spotting!
He, "above" and "below" are ambiguous!

Now it says:
Pattern: \%>1l\&\%<6l
    \%>1l      match below line 1 (towards end of buffer)
    \&         AND branch
    \%<6l      match above line 6 (towards start of buffer)

> :ExplainPattern: \%>'a1
> \%>'a1     literal string (5 atom(s))
> (wrong, its 1 after mark a (2atoms)

ok, fixed.

> Possible enhancements:
> - maybe show captured string, if simple atom
>      \1         match first captured string

I don't get exactly what you mean.

> - possibly highlight matching patterns, so you can see, what
>    :ExplainPattern <pattern> matches in the current buffer)

You can search for a pattern and then do
      :ExplainPattern /

> - :ExplainPattern: \%x31
>      \%x31      match character specified with hex number 0x31
>      (display character)

now it says

Pattern: \%x31
    \%x31      match character specified with hex number 0x31 (1)

--
Andy

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

Messages 135073 - 135102 of 138245   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