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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 101954 - 101983 of 137823   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#101954 From: "Charles E. Campbell, Jr." <drchip@...>
Date: Sun Mar 1, 2009 1:30 pm
Subject: Re: Align doesn 't work
drchip@...
Send Email Send Email
 
andalou wrote:
> I want to align the following text having the blank as a separator:
>
> m n p
> a $1 $2
> bc 3 4
> def 5 6
> gh 7 8
>
> but it aligns from the third row downwards.
>
You'll want to read

:help g:align-option for how to align with multibyte characters, and
you'll want to read
:help alignctrl-separators for alignment restrictions concerning spaces
in separators, and
:help alignmap-tsp for a map that works around that constraint.

In short:

:let g:Align_xstrlen= 1
V...\tsp

Regards,
Chip Campbell



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101955 From: eliweiqiang <eliweiqiang@...>
Date: Sun Mar 1, 2009 3:02 pm
Subject: Re: in gVim, can the cursor be fixed and no moving?
eliweiqiang@...
Send Email Send Email
 
It doesn't matter.Thank you all the same.
And thanks for Ben's reminding, I am new here.   :-)

On Mar 1, 5:05am, Tony Mechelynck <antoine.mechely...@...>
wrote:
> On 28/02/09 21:47, Ben Fritz wrote:
>
>
>
> > On Feb 28, 7:22 am, Tony Mechelynck<antoine.mechely...@...>
> > wrote:
> >> On 28/02/09 13:54, eliweiqiang wrote:
>
> >>> Are there anybody know how to do it in Win32?
> >> On Win32 just like on other platforms, in Vim it is not possible to have
> >> the current cursor move out of view. In this respect the behaviour is
> >> platform-independent; please reread the rest of this thread.
>
> > Tony, I think eliweiqiang was asking for a script similar to what
> > Albie wrote for X11.
>
> Ah, sorry. I had archived earlier posts, and I remembered the general
> trend, but not Albie's script, so, as eliweiqiang snipped everything,
> all I had to go with was the subject and what he posted here. Duh.
>
>
>
> > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
> > people have been reminding posters again and again in the past month
> > or so, you question could be understood much easier.
>
> Best regards,
> Tony.
> --
> You'd better beat it. You can leave in a taxi. If you can't get a
> taxi, you can leave in a huff. If that's too soon, you can leave in a
> minute and a huff.
>         -- Groucho Marx
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101956 From: bill lam <cbill.lam@...>
Date: Sun Mar 1, 2009 3:14 pm
Subject: Re: in gVim, can the cursor be fixed and no moving?
cbill.lam@...
Send Email Send Email
 
On Sun, 01 Mar 2009, eliweiqiang wrote:
>
> And thanks for Ben's reminding, I am new here.   :-)
>
> > On 28/02/09 21:47, Ben Fritz wrote:
> > > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
> > > people have been reminding posters again and again in the past month
> > > or so, you question could be understood much easier.

Are you sure you understood what Ben had said?

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩196 劉長卿  長沙過賈誼宅
     三年謫宦此棲遲  萬古惟留楚客悲  秋草獨尋人去後 
寒林空見日斜時
     漢文有道恩猶薄  湘水無情弔豈知  寂寂江山搖落處 
憐君何事到天涯

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101957 From: danstender <daniel@...>
Date: Sun Mar 1, 2009 3:21 pm
Subject: Re: delete every line beginning with "\dn"
daniel@...
Send Email Send Email
 
On Mar 1, 12:36 am, Tim Chase <v...@...> wrote:
> > I need a - delete every line beginning with "\dn" - for vim.
>
>   :g/^\\dn/d
>
> -tim

Thanks! .... I love Vim!

Greetings,
DS

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101958 From: Raúl Núñez de Arenas Coronado <raul@...>
Date: Sun Mar 1, 2009 4:03 pm
Subject: Re: in gVim, can the cursor be fixed and no moving?
raul@...
Send Email Send Email
 
Saluton eliweiqiang :)

On Sun 1 Mar 2009 16:02 +0100, eliweiqiang <e...@...> dixit:
> It doesn't matter.Thank you all the same.
> And thanks for Ben's reminding, I am new here.   :-)
[...]
>> > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
>> > people have been reminding posters again and again in the past month
>> > or so, you question could be understood much easier.

Please, *bottom post*. That means that your reply has to be *BELOW* the
replied text (the quoted part). Just like this message.

When bottom-posting, the replies are ordered top to bottom and
cronologically, making easier to follow the conversations :)

--
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101959 From: vimlover <dawangsheng@...>
Date: Sun Mar 1, 2009 4:46 pm
Subject: How to do this?
dawangsheng@...
Send Email Send Email
 
Hello,

I have hundreds of rows in a files like:

ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
"PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS") USING INDEX  PCTFREE
10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1  FREELIST
GROUPS 1) TABLESPACE "PESDBO_INDEXES" LOGGING ENABLE ;

how can I change to: (just delet 'USING' clause till ';' in each line)

ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
"PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS");

Thank you
vimlover

--
View this message in context:
http://www.nabble.com/How-to-do-this--tp22274905p22274905.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101960 From: andalou <cesar.romani@...>
Date: Sun Mar 1, 2009 4:59 pm
Subject: Re: Align doesn 't work
cesar.romani@...
Send Email Send Email
 
On Mar 1, 8:30 am, "Charles E. Campbell, Jr."
<drc...@...> wrote:
> andalou wrote:
> > I want to align the following text having the blank as a separator:
>
> > m n p
> > a $1 $2
> > bc 3 4
> > def 5 6
> > gh 7 8
>
> > but it aligns from the third row downwards.
>
> You'll want to read
>
> :help g:align-option for how to align with multibyte characters, and
> you'll want to read
> :help alignctrl-separators for alignment restrictions concerning spaces
> in separators, and
> :help alignmap-tsp for a map that works around that constraint.
>
> In short:
>
> :let g:Align_xstrlen= 1
> V...\tsp
>
> Regards,
> Chip Campbell

Many thanks Dr Chip, it works.
I was using an old version of Align. I updated it to the new version
but whenever I want to edit a file I'm getting the following messages:

---------------------
Error detected while processing C:\Programmi\Vim\vimfiles\plugin
\AlignMapsPlugin.
vim:
line   68:
E227: mapping already exists for \a?
line   69:
E227: mapping already exists for \a,
line   70:
E227: mapping already exists for \a<
line   71:
E227: mapping already exists for \a=
line   72:
E227: mapping already exists for \abox
...........
line  158:
E227: mapping already exists for \tt
---------------------

Many thanks in advance.
Cesar
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101961 From: andalou <cesar.romani@...>
Date: Sun Mar 1, 2009 5:40 pm
Subject: Re: How to do this?
cesar.romani@...
Send Email Send Email
 
On Mar 1, 11:46 am, vimlover <dawangsh...@...> wrote:
> Hello,
>
> I have hundreds of rows in a files like:
>
> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS") USING INDEX  PCTFREE
> 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1  FREELIST
> GROUPS 1) TABLESPACE "PESDBO_INDEXES" LOGGING ENABLE ;
>
> how can I change to: (just delet 'USING' clause till ';' in each line)
>
> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS");
>
> Thank you
> vimlover
>
> --
> View this message in
context:http://www.nabble.com/How-to-do-this--tp22274905p22274905.html
> Sent from the Vim - General mailing list archive at Nabble.com.

:%s/ USING.*/

Regards,
Cesar
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101962 From: StarWing <weasley_wx@...>
Date: Sun Mar 1, 2009 5:41 pm
Subject: Re: How to do this?
weasley_wx@...
Send Email Send Email
 
> I have hundreds of rows in a files like:
>
> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS") USING INDEX PCTFREE
> 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST
> GROUPS 1) TABLESPACE "PESDBO_INDEXES" LOGGING ENABLE ;
>
> how can I change to: (just delet 'USING' clause till ';' in each line)
>
> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS");

maybe
:%s/USING \zs[^;]\ze;//g

or
:%s/USING \zs.\{-}\ze\s*;\s*$//g

you can choose one for try...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101963 From: Archibald Chase <archibald.chase@...>
Date: Sun Mar 1, 2009 5:34 pm
Subject: iabbrev for templates
archibald.chase@...
Send Email Send Email
 
Hi
In a french magazine an article presents a lot of vim features. For a
simple use of templates it says that  html template could be use this
abbrev :
iabbrev <img> <img src='!cursor!' alt='<+Message de remplacement+>' /><CR><ESC>
     :call search('!cursor!', 'b')<CR>cf!

It's suppose to put the cursor instead of !cursor! after inserting the
tag. But it doesn't work ! Also if i put the two lines in one.

I don't understand
Excuse me for my english, i'm french ....
Can you help Me
Thanks
Archibald
--
Archibald Chase
- A quoi tu penses ?
- Je pense que le jour où on mettra les cons sur orbite, t'as pas fini
de tourner.
	 -+- Michel Audiard -+-

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101964 From: andalou <cesar.romani@...>
Date: Sun Mar 1, 2009 5:56 pm
Subject: Re: How to do this?
cesar.romani@...
Send Email Send Email
 
On Mar 1, 12:40 pm, andalou <cesar.rom...@...> wrote:
> On Mar 1, 11:46 am, vimlover <dawangsh...@...> wrote:
>
>
>
> > Hello,
>
> > I have hundreds of rows in a files like:
>
> > ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> > "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS") USING INDEX  PCTFREE
> > 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1  FREELIST
> > GROUPS 1) TABLESPACE "PESDBO_INDEXES" LOGGING ENABLE ;
>
> > how can I change to: (just delet 'USING' clause till ';' in each line)
>
> > ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
> > "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS");
>
> > Thank you
> > vimlover
>
> > --
> > View this message in
context:http://www.nabble.com/How-to-do-this--tp22274905p22274905.html
> > Sent from the Vim - General mailing list archive at Nabble.com.
>
> :%s/ USING.*/
>
> Regards,
> Cesar

I've forgotten something:
:%s/ USING.*/;

Regards,
Cesar
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101965 From: vimlover <dawangsheng@...>
Date: Sun Mar 1, 2009 6:46 pm
Subject: Re: How to do this?
dawangsheng@...
Send Email Send Email
 
Thank you all very much for help.
Regards
vimlover




StarWing wrote:
>
>
>
>> I have hundreds of rows in a files like:
>>
>> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
>> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS") USING INDEX
>>  PCTFREE
>> 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1  FREELIST
>> GROUPS 1) TABLESPACE "PESDBO_INDEXES" LOGGING ENABLE ;
>>
>> how can I change to: (just delet 'USING' clause till ';' in each line)
>>
>> ALTER TABLE "PCDTST"."ACCOUNTINGSTATUS" ADD CONSTRAINT
>> "PK_ACCOUNTINGSTATUS" PRIMARY KEY ("ACCOUNTINGSTATUS");
>
> maybe
> :%s/USING \zs[^;]\ze;//g
>
> or
> :%s/USING \zs.\{-}\ze\s*;\s*$//g
>
> you can choose one for try...
> >
>
>

--
View this message in context:
http://www.nabble.com/How-to-do-this--tp22274905p22276291.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101966 From: Luc Hermitte <hermitte@...>
Date: Sun Mar 1, 2009 6:52 pm
Subject: Re: iabbrev for templates
hermitte@...
Send Email Send Email
 
Hello,

"Archibald Chase" <archibald.chase@...> a écrit :
> In a french magazine an article presents a lot of vim features. For a
> simple use of templates it says that  html template could be use this
> abbrev :
> iabbrev <img> <img src='!cursor!' alt='<+Message de remplacement+>'
> /><CR><ESC>
>     :call search('!cursor!', 'b')<CR>cf!

When written on two lines, mappings/abbreviations/...
must use a '\' in front on each new line.
   :h line-continuation

BTW: there already exist frameworks that help define such
mappings, like mine for instance:
    http://code.google.com/p/lh-vim/wiki/lhBrackets#The_VimL_library

With InsertSeq(), your mapping will be written as follow:
    inoremap <buffer> <img>
       \ <c-r>=InsertSeq('<img>', "<img src=!cursorhere! alt='!mark!'/>")<cr>

(I suppose it will be defined into {rtp}/ftplugin/html_snippets.vim
as you probably won't like to see the mapping exists when editing
C++ files, see :h map-<buffer>, :h ftplugin)

--
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101967 From: Bram Moolenaar <Bram@...>
Date: Sun Mar 1, 2009 10:59 pm
Subject: Re: Mindtuning: Cursor vs. lCursor vs. CursorIM?
Bram@...
Send Email Send Email
 
Dominique Pelle wrote:

> >> > John Little wrote:
> >> >
> >> >> On Feb 28, 6:53am, Kenneth Reid Beesley wrote:
> >> >>
> >> >>> But :help lCursor =A0returned no information.
> >> >>
> >> >> BTW, You could have tried
> >> >>
> >> >> :helpgrep lCursor
> >> >>
> >> >> Regards, John
> >> >
> >> > Yes, ":helpgrep lCursor" gives a few hints. But still,
> >> > lCursor deserves a tag I think to make ":help lCursor"
> >> > work. I did not know about lCursor until today, it's useful.
> >> >
> >> > I wonder whether this is a bug though:
> >> >
> >> > $ gvim -u NONE -U NONE
> >> >
> >> > :hi Cursor guibg=3D#ff0000 =A0 =A0 =A0" red cursor
> >> > :hi lCursor guibg=3D#00ff00 =A0 =A0 " green cursor when keymap activat=
> ed
> >> >
> >> > :set imcursor?
> >> > iminsert=3D2 =A0 =A0 =A0" OK, expected
> >> >
> >> > :set keymap=3Desperanto =A0" or any other keymap
> >> > :set iminsert?
> >> > iminsert=3D1 =A0 =A0 =A0" OK, expected
> >> >
> >> > :set keymap=3D
> >> > :set iminsert?
> >> > iminsert=3D1 =A0 =A0 =A0" Hmmm, shouldn't this be back to 2???
> >> >
> >> > lCursor is nice so that cursor color changes aspect when a
> >> > keymap is being activated. But if I cancel the keymap with
> >> > ":set keymap=3D" then cursor remains in the same color
> >> > (green, lCursor) as if there was still a keymap activated.
> >> > It seems to me that the cursor should then become red
> >> > (Cursor). I can work around with ":set imcursor=3D2" which
> >> > puts back the cursor in red (Cursor).
> >> >
> >> > In ":help iminsert" I see:
> >> >
> >> > =A0 =A0Specifies whether :lmap or an Input Method (IM) is to be used i=
> n
> >> > =A0 =A0Insert mode. Valid values:
> >> > =A0 =A0 =A0 =A00 =A0 =A0:lmap is off and IM is off
> >> > =A0 =A0 =A0 =A01 =A0 =A0:lmap is ON and IM is off
> >> > =A0 =A0 =A0 =A02 =A0 =A0:lmap is off and IM is ON
> >> >
> >> > I'm using vim-7.2.127 (huge), GUI GTK2 on Linux x86.
> >> >
> >> > -- Dominique
> >>
> >>
> >> Attached patch fixes the problem I described in my previous
> >> email: it makes the cursor go back to normal color (Cursor
> >> instead of lCursor) when cancelling keymaps with ":set keymap=3D".
> >>
> >> Please review it since I must admit I don't fully understand
> >> how 'iminsert' and 'imsearch' are supposed to work...
> >
> > Does this have any real effect? =A0If 'iminsert' is set to use lmap's
> > (value is 1), but there are none, it works the same way as setting
> > 'iminsert' off (value 0), right?
>
>
> I'm not 100% sure I understand the question.  If 'iminsert' is value 1,
> then cursor has color "lCursor" regardless of whether there are keymaps
> or not.
>
> Problem happens in gVim only since lCursor only matters in GUI.

OK, so this is just about the cursor color.  I thought the intention was
to fix something else.

> The following test case illustrates the problem:
>
> $ gvim -u NONE -U NONE
>
> :hi Cursor guibg=#ff0000           " red cursor
> :hi lCursor guibg=#00ff00          " green cursor when keymap activated
>
> :set keymap=esperanto   " or any other keymap
>
> :" type something in INSERT mode (Cursor should be green)
> icxgx<Esc>
>
> :" disable keymaps
> :set keymap=
>
> :" type something in INSERT mode again.
> :" Observe that cursor is still green (I would expect it to be red)
> icxgx<Esc>
>
> With proposed patch, the cursor is read (as I'd expect)
> in INSERT mode after disabling keymaps with ":set keymap="
>
> Without patch, the workaround to have proper cursor color
> when disabling keymaps is to do...
>
>   :set iminsert=0 imsearch=0 keymap=

The alternative would be to have the cursor color also take into account
if any keymappings are defined.  But that's getting complicated.

I think the code should check that 'iminsert' and 'imsearch' are
actually at the B_IMODE_LMAP value.  Otherwise this doesn't work:

	 :set iminsert=2 keymap=

New patch:


*** ../vim-7.2.128/src/option.c Sat Feb 21 20:27:00 2009
--- src/option.c Sun Mar  1 23:15:21 2009
***************
*** 5797,5810 ****
  	 /* load or unload key mapping tables */
  	 errmsg = keymap_init();

!  /* When successfully installed a new keymap switch on using it. */
!  if (*curbuf->b_p_keymap != NUL && errmsg == NULL)
  	 {
! 	    curbuf->b_p_iminsert = B_IMODE_LMAP;
! 	    if (curbuf->b_p_imsearch != B_IMODE_USE_INSERT)
! 	 curbuf->b_p_imsearch = B_IMODE_LMAP;
! 	    set_iminsert_global();
! 	    set_imsearch_global();
   # ifdef FEAT_WINDOWS
  	     status_redraw_curbuf();
   # endif
--- 5797,5824 ----
  	 /* load or unload key mapping tables */
  	 errmsg = keymap_init();

!  if (errmsg == NULL)
  	 {
! 	    if (*curbuf->b_p_keymap != NUL)
! 	    {
! 	 /* Installed a new keymap, switch on using it. */
! 	 curbuf->b_p_iminsert = B_IMODE_LMAP;
! 	 if (curbuf->b_p_imsearch != B_IMODE_USE_INSERT)
! 		    curbuf->b_p_imsearch = B_IMODE_LMAP;
! 	    }
! 	    else
! 	    {
! 	 /* Cleared the keyamp, may reset 'iminsert' and 'imsearch'. */
! 	 if (curbuf->b_p_iminsert == B_IMODE_LMAP)
! 		    curbuf->b_p_iminsert = B_IMODE_NONE;
! 	 if (curbuf->b_p_imsearch == B_IMODE_LMAP)
! 		    curbuf->b_p_imsearch = B_IMODE_USE_INSERT;
! 	    }
! 	    if ((opt_flags & OPT_LOCAL) == 0)
! 	    {
! 	 set_iminsert_global();
! 	 set_imsearch_global();
! 	    }
   # ifdef FEAT_WINDOWS
  	     status_redraw_curbuf();
   # endif


--
hundred-and-one symptoms of being an internet addict:
143. You dream in pallettes of 216 websafe colors.

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101968 From: Sean <maxiangjiang@...>
Date: Mon Mar 2, 2009 12:14 am
Subject: Out of memeory error!
maxiangjiang@...
Send Email Send Email
 
Hi,

It happens, more like lottery, but I did caught one case, when I
doubled click Gvim on my Windows XP laptop. The real error can be
found on http://maxiangjiang.googlepages.com/error_vim_out_of_memory.gif

When I checked the file:
vim C:/usr/share/vim/vim72/runtime/filetype.vim

line 1245 is this line:
au BufNewFile,BufRead /etc/passwd,/etc/passwd-,/etc/passwd.edit,/etc/
shadow,/etc/shadow-,/var/backups/passwd.bak,/var/backups/shadow.bak
setf passwd

line 1288 is the last line this block:
" Perl, XPM or XPM2
au BufNewFile,BufRead *.pm
	 \ if getline(1) =~ "XPM2" |
	 \   setf xpm2 |
	 \ elseif getline(1) =~ "XPM" |
	 \   setf xpm |
	 \ else |
	 \   setf perl |
	 \ endif

Any idea?  It is not reproducible though.


PS:  My Gvim version:

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 10 2008
10:08:21)
MS-Windows 32-bit GUI version
Compiled by masea@AMERICAS
Big version with GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms
+byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments
+cryptv +cscope +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 +gettext/dyn -hangul_input +iconv/dyn
+insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent
+listcmds +localmap
+menu +mksession +modify_fname +mouse +mouseshape
+multi_byte_ime/dyn
+multi_lang -mzscheme +netbeans_intg -ole -osfiletype
+path_extra -perl
-postscript +printer -profile -python +quickfix +reltime
+rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline
-sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl -tgetent
-termresponse
+textobjects +title +toolbar +user_commands +vertsplit
+virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows
+writebackup
-xfontset -xim -xterm_save -xpm_w32
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101969 From: edgimar <edgimar@...>
Date: Mon Mar 2, 2009 12:44 am
Subject: Re: converting manual (or syntax) folds to marker folds
edgimar@...
Send Email Send Email
 
I assume the lack of responses to this inquiry means that there is
probably not a known way of doing this.

So, maybe this is better discussed on a devel. list?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101970 From: Bram Moolenaar <Bram@...>
Date: Mon Mar 2, 2009 1:29 am
Subject: Re: Out of memeory error!
Bram@...
Send Email Send Email
 
Sean Ma wrote:

> It happens, more like lottery, but I did caught one case, when I
> doubled click Gvim on my Windows XP laptop. The real error can be
> found on http://maxiangjiang.googlepages.com/error_vim_out_of_memory.gif
>
> When I checked the file:
> vim C:/usr/share/vim/vim72/runtime/filetype.vim
>
> line 1245 is this line:
> au BufNewFile,BufRead /etc/passwd,/etc/passwd-,/etc/passwd.edit,/etc/
> shadow,/etc/shadow-,/var/backups/passwd.bak,/var/backups/shadow.bak
> setf passwd
>
> line 1288 is the last line this block:
> " Perl, XPM or XPM2
> au BufNewFile,BufRead *.pm
>  \ if getline(1) =~ "XPM2" |
>  \   setf xpm2 |
>  \ elseif getline(1) =~ "XPM" |
>  \   setf xpm |
>  \ else |
>  \   setf perl |
>  \ endif
>
> Any idea?  It is not reproducible though.

What makes you think isn't actually running out of memory?
Did you check your Virtual memory settings?

--
hundred-and-one symptoms of being an internet addict:
147. You finally give up smoking...because it made the monitor dirty.

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101971 From: Bee <200309@...>
Date: Mon Mar 2, 2009 2:26 am
Subject: convert rtf to text
200309@...
Send Email Send Email
 
I have found  textutil.vim  for the Mac that will convert .rtf to
plain text.

Is there a vim script to convert .rtf to plain text for linux?

Also is there a vim script to convert .doc to plain text for linux?

--
Bill Muench
Santa Cruz, California


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101972 From: "John Beckett" <johnb.beckett@...>
Date: Mon Mar 2, 2009 2:45 am
Subject: Vim Tips wiki - Main Page
johnb.beckett@...
Send Email Send Email
 
The March edition of the Vim Tips Main Page is now available:
http://vim.wikia.com/wiki/Main_Page

Remember that if you log on you won't see the ads (except for the main
page). If you make an account, be sure to give a bogus birth date
indicating you are older than 13 (Google COPPA for explanation).

It's a wiki, so please fix any glitches you notice. If you're not sure
about something, reply here or try my talk page on the wiki.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101973 From: vimim <maxiangjiang@...>
Date: Mon Mar 2, 2009 2:50 am
Subject: Re: Out of memeory error!
maxiangjiang@...
Send Email Send Email
 
> > Any idea? It is not reproducible though.
>
> What makes you think isn't actually running out of memory?
> Did you check your Virtual memory settings?


(1) I clicked GVim icon hundreds of times per day, and never had such
an error except the one I posted
(2) At the time I hit the error, I only had FireFox running, and I
have not closed FireFox since the error
(3) Nothing wrong after I closed the error window, and kept clicking
GVim  (and opened lots of apps)
(4) The last time I found that kind of error was several months ago.
(5) I never touched Virtual memory settings on Windows XP
(6) Windows Task Manager showed 1.3GB available Physical memory out of
2GB

On the other hand, the error report might mean something real. Do we
need to modify line 1245 and line 1288 of the Vim "system" file (/usr/
share/vim/vim72/runtime/filetype.vim)?

Sean

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101974 From: Bram Moolenaar <Bram@...>
Date: Mon Mar 2, 2009 4:34 am
Subject: Re: Out of memeory error!
Bram@...
Send Email Send Email
 
Sean Ma wrote:

> > > Any idea? It is not reproducible though.
> >
> > What makes you think isn't actually running out of memory?
> > Did you check your Virtual memory settings?
>
>
> (1) I clicked GVim icon hundreds of times per day, and never had such
> an error except the one I posted
> (2) At the time I hit the error, I only had FireFox running, and I
> have not closed FireFox since the error
> (3) Nothing wrong after I closed the error window, and kept clicking
> GVim  (and opened lots of apps)
> (4) The last time I found that kind of error was several months ago.
> (5) I never touched Virtual memory settings on Windows XP
> (6) Windows Task Manager showed 1.3GB available Physical memory out of
> 2GB
>
> On the other hand, the error report might mean something real. Do we
> need to modify line 1245 and line 1288 of the Vim "system" file (/usr/
> share/vim/vim72/runtime/filetype.vim)?

What is there exactly?  I can only see the usual autocommand
definitions around that line number.

The message says it's allocating 250 bytes.  No idea why that would
fail.  Usually problems like this happen when trying to allocate a weird
number of bytes (e.g., -1).

--
hundred-and-one symptoms of being an internet addict:
1 49. You find your computer sexier than your girlfriend

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101975 From: "Charles E. Campbell, Jr." <drchip@...>
Date: Mon Mar 2, 2009 12:16 am
Subject: Re: Align doesn 't work
drchip@...
Send Email Send Email
 
andalou wrote:
> On Mar 1, 8:30 am, "Charles E. Campbell, Jr."
> <drc...@...>  wrote:
>
>> andalou wrote:
>>
>>> I want to align the following text having the blank as a separator:
>>>
>>> m n p
>>> a $1 $2
>>> bc 3 4
>>> def 5 6
>>> gh 7 8
>>>
>>> but it aligns from the third row downwards.
>>>
>> You'll want to read
>>
>> :help g:align-option for how to align with multibyte characters, and
>> you'll want to read
>> :help alignctrl-separators for alignment restrictions concerning spaces
>> in separators, and
>> :help alignmap-tsp for a map that works around that constraint.
>>
>> In short:
>>
>> :let g:Align_xstrlen= 1
>> V...\tsp
>>
>> Regards,
>> Chip Campbell
>>
>
> Many thanks Dr Chip, it works.
> I was using an old version of Align. I updated it to the new version
> but whenever I want to edit a file I'm getting the following messages:
>
> ---------------------
> Error detected while processing C:\Programmi\Vim\vimfiles\plugin
> \AlignMapsPlugin.
> vim:
> line   68:
> E227: mapping already exists for \a?
> line   69:
> E227: mapping already exists for \a,
> line   70:
> E227: mapping already exists for \a<
> line   71:
> E227: mapping already exists for \a=
> line   72:
> E227: mapping already exists for \abox
> ...........
> line  158:
> E227: mapping already exists for \tt
> ---------------------
>
Sounds like you've got the AlignMaps plugin in two different places; on
the other hand, its got code in it to prevent double loading.
I suggest that you remove all the Align/AlignMaps plugin components and
then re-install it.

Regards,
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101976 From: vimim <maxiangjiang@...>
Date: Mon Mar 2, 2009 6:10 am
Subject: Re: Out of memeory error!
maxiangjiang@...
Send Email Send Email
 
On Mar 1, 8:34pm, Bram Moolenaar <B...@...> wrote:
> Sean Ma wrote:
> > > > Any idea? It is not reproducible though.
>
> > > What makes you think isn't actually running out of memory?
> > > Did you check your Virtual memory settings?
>
> > (1) I clicked GVim icon hundreds of times per day, and never had such
> > an error except the one I posted
> > (2) At the time I hit the error, I only had FireFox running, and I
> > have not closed FireFox since the error
> > (3) Nothing wrong after I closed the error window, and kept clicking
> > GVim (and opened lots of apps)
> > (4) The last time I found that kind of error was several months ago.
> > (5) I never touched Virtual memory settings on Windows XP
> > (6) Windows Task Manager showed 1.3GB available Physical memory out of
> > 2GB
>
> > On the other hand, the error report might mean something real. Do we
> > need to modify line 1245 and line 1288 of the Vim "system" file (/usr/
> > share/vim/vim72/runtime/filetype.vim)?
>
> What is there exactly? I can only see the usual autocommand
> definitions around that line number.
>
> The message says it's allocating 250 bytes. No idea why that would
> fail. Usually problems like this happen when trying to allocate a weird
> number of bytes (e.g., -1).

Therefore, the error message seems misleading. Also, it seems not
issues of "not enough memory".
I will try if I can reproduce the error.  It is funny, though, it
never shows up when I ask for error. :))

Sean
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101977 From: eliweiqiang <eliweiqiang@...>
Date: Mon Mar 2, 2009 6:24 am
Subject: Re: in gVim, can the cursor be fixed and no moving?
eliweiqiang@...
Send Email Send Email
 
On Mar 2, 12:03am, Ral Nez de Arenas Coronado  wrote:
> Saluton eliweiqiang :)
>
> On Sun 1 Mar 2009 16:02 +0100, eliweiqiang <e...@...> dixit:
>
> > It doesn't matter.Thank you all the same.
> > And thanks for Ben's reminding, I am new here.  :-)
> [...]
> >> > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
> >> > people have been reminding posters again and again in the past month
> >> > or so, you question could be understood much easier.
>
> Please, *bottom post*. That means that your reply has to be *BELOW* the
> replied text (the quoted part). Just like this message.
>
> When bottom-posting, the replies are ordered top to bottom and
> cronologically, making easier to follow the conversations :)
>




Oh!Now I see!
:)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101978 From: Tim Chase <vim@...>
Date: Mon Mar 2, 2009 10:54 am
Subject: Re: Out of memeory error!
vim@...
Send Email Send Email
 
> Therefore, the error message seems misleading. Also, it seems not
> issues of "not enough memory".

Though only tangential, I also get this on a sporadic basis on
Win32 at work, but I've never gotten it with Vim -- it's usually
one of the Office apps (Outlook & Excel are the ones I use most
often at work, so by sheer use, they trigger it most often).
Every single time, simply trying to reopen the app a 2nd time has
worked.

This leads me to believe it's a Windows issue rather than a Vim
issue, that Windows can't allocate a sufficiently large chunk of
memory to even load the app.

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101979 From: Tom <micathom@...>
Date: Mon Mar 2, 2009 12:27 pm
Subject: Re: convert rtf to text
micathom@...
Send Email Send Email
 
> I have found textutil.vim for the Mac that will convert .rtf to 
> plain text.

I don't know that plugin but I would assume that the conversion isn't
done in vimscript but by an external programm. So the question rather
is, which program could you use to convert the file. You could then
use eg ":read !converter filename" in a scratch buffer to read the
file -- untested. When you run the filter on the buffer containing the
file make sure not to save it under the original name. :-)

> Is there a vim script to convert .rtf to plain text for linux?

I think unrtf handles rtf. I don't know if it converts directly to
plain text though. According to http://www.gnu.org/software/unrtf/unrtf.html
it doesn't but you could run the html output through lynx I guess.

> Also is there a vim script to convert .doc to plain text for linux?

antiword does that. wv would be another option -- I have never used
myself though.

Other options could be found here:
http://freshmeat.net/search/?q=word+text

I don't know if there are plugins that use those converters or if you
have to write your own command/function that does that. Hm, you might
want to check out this vimtip "View and diff MS Word files"[1] that
provides some help with that.

Tom.


[1] http://vim.wikia.com/wiki/View_and_diff_MS_Word_files
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101980 From: Zhu OUYANG <ouyzhu@...>
Date: Mon Mar 2, 2009 12:50 pm
Subject: how to make vim support GB18030
ouyzhu@...
Send Email Send Email
 
Hi,

I need vim to correctly show the GB18030 characters, but seems my vim not supporting it. I used command "help encoding-values", but there is no GB18030 in the list.

So my question is:

1. Is there any easy way to make vim support GB18030?
2. If answer is "no", then, is there any simple tools (not libs) could easily transform it into utf-8?


The version I am using is vim 7.2, on vista, support utf-8....
Any comment is welcome, thx in advance~~

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


#101981 From: "Steve Hall" <digitect@...>
Date: Mon Mar 2, 2009 2:59 pm
Subject: Win build problems with mzscheme 1.4.1
digitect@...
Send Email Send Email
 
Anybody else having problems building with mzscheme 1.4.1 on Windows?
I'm using cygwin's gcc. I can build with any other feature, but
mzscheme produces numerous errors, beginning with:

---------------------------------------------------------------------
In file included from if_mzsch.c:26:
if_mzsch.h:44:1: warning: "SCHEME_BYTE_STRLEN_VAL" redefined
In file included from if_mzsch.h:14,
                  from if_mzsch.c:26:
/cygdrive/c/PROGRA~2/PLT/include/scheme.h:521:1: warning: this is the
location of the previous definition
In file included from if_mzsch.c:26:
if_mzsch.h:45:1: warning: "SCHEME_BYTE_STR_VAL" redefined
In file included from if_mzsch.h:14,
                  from if_mzsch.c:26:
/cygdrive/c/PROGRA~2/PLT/include/scheme.h:519:1: warning: this is the
location of the previous definition
if_mzsch.c: In function `startup_mzscheme':
if_mzsch.c:801: error: `scheme_config' undeclared (first use in this
function)
if_mzsch.c:801: error: (Each undeclared identifier is reported only once
if_mzsch.c:801: error: for each function it appears in.)
if_mzsch.c: In function `mzscheme_init':
if_mzsch.c:853: error: `scheme_config' undeclared (first use in this
function)
if_mzsch.c: In function `eval_in_namespace':
if_mzsch.c:919: error: `scheme_config' undeclared (first use in this
function)
if_mzsch.c: In function `vim_command':
if_mzsch.c:1253: warning: initialization makes pointer from integer
without a cast
if_mzsch.c: In function `vim_eval':
if_mzsch.c:1273: warning: assignment makes pointer from integer without
a cast
if_mzsch.c: In function `mzscheme_open_buffer':
if_mzsch.c:1681: warning: assignment makes pointer from integer without
a cast
if_mzsch.c: In function `get_buffer_by_name':
if_mzsch.c:1717: warning: assignment makes pointer from integer without
a cast
make: *** [gobj/if_mzsch.o] Error 1
---------------------------------------------------------------------

--
Steve Hall  [ digitect dancingpaper com ]
:: Cream... usability for Vim
::   http://cream.sourceforge.net



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101982 From: Yongwei Wu <wuyongwei@...>
Date: Mon Mar 2, 2009 3:01 pm
Subject: Re: how to make vim support GB18030
wuyongwei@...
Send Email Send Email
 
2009/3/2 Zhu OUYANG <ouyzhu@...>:
> Hi,
>
> I need vim to correctly show the GB18030 characters, but seems my vim not
> supporting it. I used command "help encoding-values", but there is no
> GB18030 in the list.
>
> So my question is:
>
> 1. Is there any easy way to make vim support GB18030?
> 2. If answer is "no", then, is there any simple tools (not libs) could
> easily transform it into utf-8?
>
>
> The version I am using is vim 7.2, on vista, support utf-8....
> Any comment is welcome, thx in advance~~

You need to have iconv for Win32.  Get it here:

http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458

Put intl.dll as libintl..dll where gvim.exe is.  Also put iconv.dll
there or somewhere in the path.

Then you can use the UTF encoding in Vim (have set encoding=utf-8 in
_vimrc), and use such a command to open a GB18030 file:

:e ++enc=gb18030 SomeFile

If need be, you can also use the iconv command line to convert the encoding.

Last but not least, even if Vim understands the characters correctly,
they may not necessarily display correctly inside the GUI.  I have not
tested about it, though.

Best regards,

Yongwei

--
Wu Yongwei
URL: http://wyw.dcweb.cn/

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

#101983 From: bill lam <cbill.lam@...>
Date: Mon Mar 2, 2009 3:06 pm
Subject: Re: how to make vim support GB18030
cbill.lam@...
Send Email Send Email
 
On Mon, 02 Mar 2009, Zhu OUYANG wrote:
> Hi,
>
> I need vim to correctly show the GB18030 characters, but seems my vim not
> supporting it. I used command "*help encoding-values*", but there is no
> GB18030 in the list.
>
> So my question is:
>
> 1. Is there any easy way to make vim support GB18030?

No experience in using GB18030, Is it the same as cp936?  I you don't
use any 4 byte codes, I guess it should be same as cp936.

> 2. If answer is "no", then, is there any simple tools (not libs) could
> easily transform it into utf-8?

You can use a command line program 'iconv' to convert between
different encodings.

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩103 李白  聽蜀僧濬彈琴
     蜀僧抱綠綺  西下峨眉峰  為我一揮手  如聽萬壑松
     客心洗流水  餘響入霜鐘  不覺碧山暮  秋雲暗幾重

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Messages 101954 - 101983 of 137823   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