Re: How to map in maemo's vim

2012-04-16 Thread Yue Wu
On Mon, 16 Apr 2012 08:51:06 +0800, Chris Jones wrote: On Sun, Apr 15, 2012 at 07:50:38PM EDT, Yue Wu wrote: On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones wrote: >On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: >> I'm using vim on maemo, which is a OS fo

Re: How to map in maemo's vim

2012-04-15 Thread Yue Wu
On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones wrote: On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a function, but nmap :call Myfunc() does nothing. When I hit in i

How to map in maemo's vim

2012-04-15 Thread Yue Wu
hat should I do? -- Regards, Yue Wu State Key laboratory of Natural Products and Functions Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China -- You received this message from the &qu

Re: How to delete regions between lines

2012-03-09 Thread Yue Wu
On Sat, 10 Mar 2012 08:47:38 +0800, Tim Chase wrote: On 03/09/12 18:36, Yue Wu wrote: Hi, list, I want to delete all regions between line '#begin' and line '#end' in a buffer, for example, a buffer: -- #begin region1 #end Some text. #begin reg

How to delete regions between lines

2012-03-09 Thread Yue Wu
- Some text. Some text. Some text. Some text. -- after the operation, how to do it in vim? -- Regards, Yue Wu State Key laboratory of Natural Products and Functions Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceuti

Re: No 'authochdir' in maemo port of vim[Was: How to copy strings into system's clipboard on n900 (maemo)?]

2011-11-12 Thread Yue Wu
On Fri, Nov 11, 2011 at 11:12:23AM +0100, Tony Mechelynck wrote: > On 11/11/11 09:38, Yue Wu wrote: > > On Fri, 11 Nov 2011 16:20:42 +0800, Yue Wu wrote: > > > >> On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz > >> wrote: > >> > >>> > &g

Re: How to copy strings into system's clipboard on n900 (maemo)?

2011-11-11 Thread Yue Wu
On Fri, 11 Nov 2011 17:54:02 +0800, Tony Mechelynck wrote: On 11/11/11 09:31, Yue Wu wrote: On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz wrote: On Nov 10, 8:21 am, "Yue Wu" wrote: Hello list, Sorry I've posted a same mail on vim_dev then I realized that I'

Re: How to copy strings into system's clipboard on n900 (maemo)?

2011-11-11 Thread Yue Wu
arch shows that Nokia makes a smartphone called the N900; the wiki article mentions Maemo 5 (although I still have no idea what it is). Regards, Chip Campbell As Tony said, maemo is the OS for smart phone of nokia n900, it's based on debian. -- Regards, Yue Wu State Key labora

No 'authochdir' in maemo port of vim[Was: How to copy strings into system's clipboard on n900 (maemo)?]

2011-11-11 Thread Yue Wu
On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz wrote: On Nov 10, 8:21 am, "Yue Wu" wrote: Hello list, Sorry I've posted a same mail on vim_dev then I realized that I've posted in a wrong mailing list. My question is more specific for n900, but I don't know w

Re: No 'authochdir' in maemo port of vim[Was: How to copy strings into system's clipboard on n900 (maemo)?]

2011-11-11 Thread Yue Wu
On Fri, 11 Nov 2011 16:20:42 +0800, Yue Wu wrote: On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz wrote: On Nov 10, 8:21 am, "Yue Wu" wrote: Hello list, Sorry I've posted a same mail on vim_dev then I realized that I've posted in a wrong mailing list. My quest

Re: How to copy strings into system's clipboard on n900 (maemo)?

2011-11-11 Thread Yue Wu
On Thu, 10 Nov 2011 23:52:44 +0800, Ben Fritz wrote: On Nov 10, 8:21 am, "Yue Wu" wrote: Hello list, Sorry I've posted a same mail on vim_dev then I realized that I've posted in a wrong mailing list. My question is more specific for n900, but I don't know w

[n900] How to copy strings into system's clipboard on n900 (maemo)?

2011-11-10 Thread Yue Wu
menu then choise copy, but it's too slow. So my question is that if it possible to copy strings directly by vim? -- Regards, Yue Wu State Key laboratory of Natural Products and Functions Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceuti

Re: How to let :hardcopy support conceal?

2011-05-23 Thread Yue Wu
On Mon, May 23, 2011 at 07:54:08AM -0700, Ben Fritz wrote: > > > On May 23, 1:07 am, "Yue Wu" wrote: > > Hi, list, > > > > I'm using :hardcopy on windows, find that the conceal feature will > > disappear when printing, how to configure vim

How to let :hardcopy support conceal?

2011-05-22 Thread Yue Wu
Hi, list, I'm using :hardcopy on windows, find that the conceal feature will disappear when printing, how to configure vim to support it, or is it a missing feature? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine

Curious about how to write vim help format txt.

2011-03-27 Thread Yue Wu
I like vim help style, it has toc, tag support, nice alignment. I know the syntax used in vim help, but I'm curious how the author to generate toc, indent, align the whole help? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine

Re: How to disable netrw to generate history file?

2011-03-22 Thread Yue Wu
On Tue, Mar 22, 2011 at 09:37:17AM -0400, Charles Campbell wrote: > Yue Wu wrote: > > > > As the title, I notice netrw will create a .netrwhist at my vimfile > > when on windows(don't know if it do on unix too), how to prevent it > > from the file crea

How to disable netrw to generate history file?

2011-03-21 Thread Yue Wu
Hi, list, As the title, I notice netrw will create a .netrwhist at my vimfile when on windows(don't know if it do on unix too), how to prevent it from the file creation for security issue sometime. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Tradit

Re: X clipboard interaction broken?

2011-03-05 Thread Yue Wu
; and they all have 'xterm_clipboard' enabled. > Works fine here for English charactors, but chinese charactors in register '*' and '+' are broken in vim, don't know why, and it annoys me for a long time. -- Regards, Yue Wu Key Laboratory of Modern Chinese M

Re: How to add a margin at the left/right side of the text area?

2011-02-19 Thread Yue Wu
On Fri, Feb 18, 2011 at 10:31:17AM +0100, Christian Brabandt wrote: > On Fri, February 18, 2011 9:29 am, Yue Wu wrote: > > As the title. My eyes feel tired with too tight between the left side of > > the xterm window and vim text area, it would be better if there can be a > >

How to add a margin at the left/right side of the text area?

2011-02-18 Thread Yue Wu
Hello, list, As the title. My eyes feel tired with too tight between the left side of the xterm window and vim text area, it would be better if there can be a margin between them. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China

Re: How to mimic vim assignment in vimscript?

2011-01-10 Thread Yue Wu
ffer defined > > > vars in two patterns, say, user can put the following lines into a > > > > > > file: > > > a = [[1:"foo"],[2:"bar"]] > > > > The most simple way is: > > > > call map(filter(getlines(0,line(

How to mimic vim assignment in vimscript?

2011-01-10 Thread Yue Wu
] then after the file is loaded into vim, my script will try to get these relative lines and parse it then assign it into b:a. The problem is: I don't know how to get the var in the file and parse it. Sorry for my poor English, don't know if I've describe clearly? Any advice is appreci

Re: introducing vmail

2010-12-18 Thread Yue Wu
This is the first release of vmail so there is a lot of room for > improvement and feedback will be highly appreciated -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009,

Re: auto-completion for :!cmd doesn't work on win32 (was: Updated todo file)

2010-09-20 Thread Yue Wu
On Sun, Sep 19, 2010 at 11:12:51PM -0700, Gary Johnson wrote: > On 2010-09-20, Yue Wu wrote: > > On Sun, Sep 19, 2010 at 07:06:17PM +0200, Bram Moolenaar wrote: > > > > > > I have worked away the pile of email that grew while I was traveling. > > > I have not r

Re: Updated todo file

2010-09-19 Thread Yue Wu
oogle.com/p/vim/source/browse/runtime/doc/todo.txt > > I probably missed a few messages, let me know if didn't make note of > your bug report or patch. > > I'll start including patches the coming days. auto-completion for :!cmd doesn't work on win32. -- Regards, Yue W

Re: More information about the strange clipboard behaviour

2010-08-28 Thread Yue Wu
m +xsmp_interact +xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/local/share/vim" Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/l

Re: unofficial gVim 7.3e BETA Windows installer by Cream

2010-08-06 Thread Yue Wu
brary lua51.dll Lua library cannot be loaded. So if I want to prevent the error msg, I have to install a lua? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009,

Re: Vim 7.3d ready for beta testing

2010-08-06 Thread Yue Wu
On Fri, 06 Aug 2010 17:48:20 +0800, Bram Moolenaar wrote: Yue Wu wrote: On Thu, Aug 05, 2010 at 11:15:21PM +0200, Bram Moolenaar wrote: > > > On windows, !cmd completion doesn't work at all. > > Perhaps this is a problem with a space in $PATH? > No, I've t

Re: Bug? One endless :while case

2010-08-05 Thread Yue Wu
On Fri, Aug 06, 2010 at 07:50:37AM +0200, Christian Brabandt wrote: > On Fri, August 6, 2010 5:05 am, Yue Wu wrote: > > Create a func: > > > > func! Ywtest() > > redraw | let txt = matchstr(input("Foo: "), '^\s*\zs.*') > > while txt == &

Bug? One endless :while case

2010-08-05 Thread Yue Wu
en in the first prompt, hit enter to enter a blank string, then func will prompt again, now input some string, hit enter again, you will find the while loop will nerver end from now on. If I remove the matchstr() part, func runs well, what's wrong with it? -- Regards, Yue Wu Key Laborator

Re: Vim 7.3d ready for beta testing

2010-08-05 Thread Yue Wu
On Thu, Aug 05, 2010 at 11:15:21PM +0200, Bram Moolenaar wrote: > > > On windows, !cmd completion doesn't work at all. > > Perhaps this is a problem with a space in $PATH? > No, I've tried removing the paths with space in $PATH, still not work. -- Regards, Yue

Re: Vim 7.3d ready for beta testing

2010-08-05 Thread Yue Wu
On Thu, 05 Aug 2010 01:15:17 +0800, Bram Moolenaar wrote: Hello Vim users, Announcing: Vim (Vi IMproved) version 7.3d BETA On windows, !cmd completion doesn't work at all. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine

Re: Vim 7.3d ready for beta testing

2010-08-04 Thread Yue Wu
). Thank you for nice work, work fine now on windows 2000 here. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China -- You received this message from the "vi

Re: Vim 7.3c ready for beta testing

2010-08-02 Thread Yue Wu
On Mon, Aug 02, 2010 at 09:52:34AM +0200, Bram Moolenaar wrote: > > Yue Wu wrote: > > > Sorry, I forgot that it's a new topic in the list, I've reported that vim73 > > can't be run on windows 2000. > > > > After extractpc/gvim73c.zip + pc/vim73crt.zi

Re: Vim 7.3c ready for beta testing

2010-08-01 Thread Yue Wu
Sorry, I forgot that it's a new topic in the list, I've reported that vim73 can't be run on windows 2000. On Mon, 02 Aug 2010 11:16:06 +0800, George V. Reilly wrote: On Sun, Aug 1, 2010 at 9:18 PM, Yue Wu wrote: Still can't be run under windows 2000 here

Re: Vim 7.3c ready for beta testing

2010-08-01 Thread Yue Wu
PC (with CR-LF) Still can't be run under windows 2000 here (pc/gvim73c.zip + pc/vim73crt.zip). -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China -

Re: How to highlight odd and even lines with different colors for normal text region.

2010-06-06 Thread Yue Wu
Thank you, Tim, it works very well. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China -- You received this message from the "vim_use" maillist. Do

How to highlight odd and even lines with different colors for normal text region.

2010-06-06 Thread Yue Wu
Hello list, I want to set different colors for odd and even lines in normal text region, i.e., those lines that are not with any syntax defined. How to do it? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical

Re: Commenting Plugin Available by Default

2010-02-22 Thread Yue Wu
On Mon, Feb 22, 2010 at 07:34:55AM +, Francis Giannaros wrote: > On 22 February 2010 06:07, Marc Weber wrote: > > How does this look like? I don't use comments that often and I don't > > want Vim to load read lines which are used occasionally only. > > My apologies -- I should have clarified

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-14 Thread Yue Wu
On Tue, 14 Apr 2009 16:36:30 +0800, Yue Wu wrote: > On Tue, 14 Apr 2009 15:55:32 +0800, Tony Mechelynck wrote: > >> I think it's intentional, IOW, a feature -- which allows using one >> 'iskeyword' value when asking for help and another one when editing >

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-14 Thread Yue Wu
m, and it still has the local feature, I just wanna know why it isn't the default? -- Hi, Yue Wu --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-14 Thread Yue Wu
m a helpfile which > already had the magic. > > > Best regards, > Tony. Anyway to let it can be triggerd by any help file type? Or maybe it can be considered a bug? -- Hi, Yue Wu --~--~-~--~~~---~--~~ You received this message from the "

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread Yue Wu
ere may (and probably will) be silently overwritten > by some future upgrade of your runtime files. > Oh, got it, I haven't seen this post when I posted my question, thank you! :) -- Hi, Yue Wu --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread Yue Wu
> gui.txt which is the first result when matching for txt or .txt as the > helptag. > > (Note: I have an after-ftplugin which sets the 'isk' option for > helpfiles but I checked it with gvim -N -u NONE which doesn't load any > plugin. The only scripts it sources are menu.vim

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread Yue Wu
vim:tw=78:ts=8:ft=help:norl:iskeyword+=-:iskeyword+=.: to make it work. -- Hi, Yue Wu --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread Yue Wu
g? I don't think it's related to iskeyword. -- Hi, Yue Wu --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: How to customize the format of error window?

2009-04-11 Thread Yue Wu
On Sat, 11 Apr 2009 09:24:56 +0800, Tony Mechelynck wrote: > Well, I see two posssibilities: > > - with plain-vanilla Vim, create and use a custom colorscheme which > would display everything in the quickfix window (except the source text > of course) in colors linked to Ignore. This won't rem

Re: How to customize the format of error window?

2009-04-10 Thread Yue Wu
On Sat, 11 Apr 2009 07:56:49 +0800, Tony Mechelynck wrote: > > On 11/04/09 00:45, Yue Wu wrote: > [...] >> It's right that vim must use the filename, line, column to jump to the >> match, but I think it can hide these relevant infos from error window, >> jus

Re: How to customize the format of error window?

2009-04-10 Thread Yue Wu
On Sat, 11 Apr 2009 01:53:31 +0800, Tony Mechelynck wrote: > > On 10/04/09 11:59, Yue Wu wrote: >> >> I use to grep some string: >> >> :lvimgrep /foo/ % >> >> the error window's format is something like this: >> >> /portable

Re: How to customize the format of error window?

2009-04-10 Thread Yue Wu
On Fri, 10 Apr 2009 18:18:13 +0800, Vishnu wrote: > set errorformat=%m Seems not work :( -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information,

How to customize the format of error window?

2009-04-10 Thread Yue Wu
I use to grep some string: :lvimgrep /foo/ % the error window's format is something like this: /portable/apps/vim/vim72/doc/quickfix.txt|313 col 4| second quickfix window. I don't want to show the file and position, what I want is like this: second quickfix window. What would I ne

Re: HOw to reserve an echo within a func after calling the func?

2009-03-25 Thread Yue Wu
On Mon, 23 Mar 2009 21:41:13 +0800, Tony Mechelynck wrote: > > On 23/03/09 14:09, Charles Campbell wrote: >> >> Yue Wu wrote: >>> On Sat, 21 Mar 2009 11:51:25 +0800, Yue Wu wrote: >>> >>> >>>> I have a func: >>>> >>&

Re: syntax for echo msg?

2009-03-22 Thread Yue Wu
On Sun, 22 Mar 2009 20:29:30 +0800, Tony Mechelynck wrote: > > On 22/03/09 10:32, Yue Wu wrote: >> >> I want echo msg in different colors, but echohl can just make whole echo >> the same color, can I use some command strings like: >> >> echo "\re

syntax for echo msg?

2009-03-22 Thread Yue Wu
I want echo msg in different colors, but echohl can just make whole echo the same color, can I use some command strings like: echo "\red[Red text]\normal[Normal text]" to achieve it? -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from the

Re: HOw to reserve an echo within a func after calling the func?

2009-03-22 Thread Yue Wu
On Sat, 21 Mar 2009 11:51:25 +0800, Yue Wu wrote: > I have a func: > > func Hi() > echo "hi" > return "" > endfunc > > When I invoke it in insert mode by > > =Hi() > > the echo will go away immidiately after call the func as ther

Re: How to determine width of screen line?

2009-03-22 Thread Yue Wu
On Sat, 21 Mar 2009 14:38:30 +0800, Tom wrote: > >> I don't like the way that temporarily disble/re-enable. Is there a rock >>   >> way to determine how much width I can use for one line echo? > > The second function by EF trims the message to the right length: > :echo tlib#notify#TrimMessage(

Re: How to determine width of screen line?

2009-03-20 Thread Yue Wu
On Sat, 21 Mar 2009 13:12:08 +0800, Tom wrote: > >> But if longline is longer than screen line, then it will be broken down >> into several lines, I have to use q to quit the echo message > > If you want to avoid the "Hit ENTER" message, you'll also have to take > into account the options ruler

HOw to reserve an echo within a func after calling the func?

2009-03-20 Thread Yue Wu
I have a func: func Hi() echo "hi" return "" endfunc When I invoke it in insert mode by =Hi() the echo will go away immidiately after call the func as there isn't such an echo, how can I prevent its goaway and remain in the screen's bottom line after call the func? -- Regards, Van.

Re: How to determine width of screen line?

2009-03-20 Thread Yue Wu
On Sat, 21 Mar 2009 07:29:45 +0800, Gary Johnson wrote: > > On 2009-03-21, Yue Wu wrote: >> I have a func: >> >>echo printf("%.10s", longline) >> >> But if longline is longer than screen line, then it will be broken down >> into several lin

How to determine width of screen line?

2009-03-20 Thread Yue Wu
I have a func: echo printf("%.10s", longline) But if longline is longer than screen line, then it will be broken down into several lines, I have to use q to quit the echo message, that's not what I want. So question is, how to get the width of screen line, so I can use: sline = screenline

Re: How to sort according to the folded text, and not intervene the text that has folded in.

2009-03-17 Thread Yue Wu
On Mon, 16 Mar 2009 23:54:36 +0800, Ben Fritz wrote: > On Mar 15, 5:22 am, "Yue Wu" wrote: >> As title, I have a file that has the foldings like this: >> >> Folded text 3. >> Folded text 1. >> Folded text 2.--

How to sort according to the folded text, and not intervene the text that has folded in.

2009-03-15 Thread Yue Wu
As title, I have a file that has the foldings like this: Folded text 3. Folded text 1. Folded text 2. Now I want to sort them, so it becomes: Folded text 1. Folded text 2. Folded text 3.-

Re: code clean up

2009-01-31 Thread Yue Wu
Oooops, really sorry for noise, ignre it please. On Sat, 31 Jan 2009 20:05:40 +0800, Yue Wu wrote: > " > function! b:VimIM_Punctuation_Toggle() > " > if !exists("b:vimim_punctuation&qu

Re: first line issue.

2009-01-31 Thread Yue Wu
Hmm, I sent to a wrong place, sorry for noise, nevermind On Sat, 31 Jan 2009 20:03:25 +0800, Yue Wu wrote: > http://www.newsmth.net/bbscon.php?bid=731&id=47014 > > After I add a blank first line, that guy's issue would gone, but I find > that datafile2 won't wo

code clean up

2009-01-31 Thread Yue Wu
" function! b:VimIM_Punctuation_Toggle() " if !exists("b:vimim_punctuation") || b:vimim_punctuation == 0 call s:VimIM_Punctuation_On() else call s:VimIM_Punctuation_Off() endif endfunction

first line issue.

2009-01-31 Thread Yue Wu
http://www.newsmth.net/bbscon.php?bid=731&id=47014 After I add a blank first line, that guy's issue would gone, but I find that datafile2 won't work, warn that "pattern not found", so weird. -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from

Re: vimim is ready!

2009-01-18 Thread Yue Wu
Why vimim match whole pattern combined with numbers and alphabets? Say I have 'aaa' in my datafile, but when I input 8aaa vimim doesn't complete it, how inconvinient for use. On Mon, 19 Jan 2009 03:34:12 +0800, Sean wrote: > > A new version of vimim is out. > > After hundreds email exchang

Re: How to save/restore the hightlight for cursor?

2009-01-12 Thread Yue Wu
Thanks Matt! I will see the help that you provide it for me! These several days are busy days, and I'm not at a computer relavent major, so I can't touch my box too often, so sorry for this short reply :( On Tue, 13 Jan 2009 02:08:04 +0800, Matt Wozniski wrote: > > On 1/12/

Re: How to save/restore the hightlight for cursor?

2009-01-12 Thread Yue Wu
On Mon, 12 Jan 2009 23:40:30 +0800, Tony Mechelynck wrote: > > On 12/01/09 15:37, Yue Wu wrote: >> On Mon, 12 Jan 2009 22:30:43 +0800, Tony Mechelynck >> wrote: >> >>> On 12/01/09 15:14, Yue Wu wrote: >>>> It's too complicated, if I want t

Re: How to save/restore the hightlight for cursor?

2009-01-12 Thread Yue Wu
On Mon, 12 Jan 2009 22:30:43 +0800, Tony Mechelynck wrote: > > On 12/01/09 15:14, Yue Wu wrote: >> >> It's too complicated, if I want to save/restore highlight for others, >> it would need a big change. No other simple and generic way? >> > > Tell you

Re: How to save/restore the hightlight for cursor?

2009-01-12 Thread Yue Wu
On Mon, 12 Jan 2009 22:10:06 +0800, Tony Mechelynck wrote: > function SaveCursorColor() > redir => highlight > silent hi Cursor > redir END > if highlight =~ 'links to ' > let s:hl-link = matchstr(highlight, 'links to \zs\S*') > elseif highlight =~ '

How to save/restore the hightlight for cursor?

2009-01-12 Thread Yue Wu
As title, I want to change the setting of highlight for cursor, then restore it back. -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~---

Re: How to imap a that behaves defferent according conditions?

2009-01-11 Thread Yue Wu
; 如果出现列表,自动选中第一个 > if pumvisible() > return "\" > > " > 如果当前只有唯一匹配,返回如下字符串,防止再次按空格键时产生连续补全 > elseif col('.') != g:old_col > return " \" > > " 补全失败,补上一个空格 > else > return " &

Re: how to display devanagari in vim

2009-01-10 Thread Yue Wu
On Sun, 11 Jan 2009 13:34:15 +0800, bill lam wrote: > On Sun, 11 Jan 2009, Tony Mechelynck wrote: >> If you have KDE installed, try and see if konsole displays it correctly? >> Then if it does, you're in business. > > No, I didn't use KDE, I even un-installed the whole gnome desktop > including t

Re: How to imap a that behaves defferent according conditions?

2009-01-10 Thread Yue Wu
On Sun, 11 Jan 2009 09:10:12 +0800, StarWing wrote: > > just a problem, in your words, > app| > "|" places the location of cursor, now you press , and it spead > to , but can't find match.then you will find, you can't > input space in this place. > you can have a try. > Yes, that's the correct

Re: How to imap a that behaves defferent according conditions?

2009-01-10 Thread Yue Wu
On Sun, 11 Jan 2009 08:32:08 +0800, StarWing wrote: > > you can try supertab.vim > http://www.vim.org/scripts/script.php?script_id=1643 Thanks for advice, but a simple solution like a function with several lines is better, and supertab is just for tab, right? > > On 1月11日, 上

How to imap a that behaves defferent according conditions?

2009-01-10 Thread Yue Wu
Why I want is, say: If the col('.')-1 is a printable ascii charactor, then does the mapping in insert mode, if not, then will just insert a normal space, is it possible? -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from the "vim_use" m

Re: How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
On Sat, 10 Jan 2009 22:42:09 +0800, Andy Wokula wrote: > func! FuncExec(cmd) > exec a:cmd > return "" > endfunc Wow, I didn't know it can be used in this way, thank you! -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from the "vim_use"

Re: How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
On Sat, 10 Jan 2009 22:10:13 +0800, Tony Mechelynck wrote: > > On 10/01/09 14:20, Yue Wu wrote: >> On Sat, 10 Jan 2009 21:14:15 +0800, Tony Mechelynck wrote: >> >>> Wait, I've remembered something: >>> >>> see >>> :help autocmd-

Re: How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
On Sat, 10 Jan 2009 22:03:02 +0800, Andy Wokula wrote: > > Yue Wu schrieb: >> As title. >> > > :h i_ctrl-r_= > No, it isn't what I want, for example, how do you avoid triggering insertLeav/Enter to save current

Re: How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
On Sat, 10 Jan 2009 21:14:15 +0800, Tony Mechelynck wrote: > > Wait, I've remembered something: > > see > :help autocmd-disable > :help :noautocmd > :help 'eventignore' > Still not so useful, because set them when in insert mode still need to use which will trigger event anywa

Re: How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
On Sat, 10 Jan 2009 20:18:15 +0800, Tony Mechelynck wrote: > > On 10/01/09 10:08, Yue Wu wrote: >> As title. >> > > Hitting Ctrl-C in Insert mode goes back to Normal mode without > triggering InsertLeave. You can then call your function. I don't think > it

How to call a function in insertmode without trigger insertLeave/Enter?

2009-01-10 Thread Yue Wu
As title. -- Regards, Van. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: How to determine foldlevel of first closed fold on a line

2009-01-09 Thread Yue Wu
On Fri, 09 Jan 2009 23:15:31 +0800, Benjamin Fritz wrote: > Is there a way to determine the foldlevel of the first closed fold on a > line? For example, with the following situation: > > -- abc > || def > || ghi > || jkl > | mno >pqr >stu >vwx >yz > > If I close all folds, I w

Re: Easiest way to insert a blank line?

2009-01-09 Thread Yue Wu
On Fri, 09 Jan 2009 22:52:44 +0800, Ben Fritz wrote: > > > > On Fri, 09 Jan 2009 16:41:45 +0800, Tony Mechelynck wrote: > >> Have you tried the about:config page (or opera:config or whatever Opera >> calls it, I'm no Opera guru)? > > It would be opera:config. I use the Opera web browser at home,

Re: Easiest way to insert a blank line?

2009-01-09 Thread Yue Wu
On Fri, 09 Jan 2009 16:41:45 +0800, Tony Mechelynck wrote: > > Have you tried the about:config page (or opera:config or whatever Opera > calls it, I'm no Opera guru)? > > I don't think they are there. -- Regards, Van. --~--~-~--~~~---~--~~ You received this mes

Re: Easiest way to insert a blank line?

2009-01-09 Thread Yue Wu
On Fri, 09 Jan 2009 14:40:13 +0800, Chris Bannister wrote: > > On Wed, Jan 07, 2009 at 01:03:39PM +0800, Yue Wu wrote: >> On Wed, 07 Jan 2009 13:16:26 +0800, Chris Bannister wrote: >> > On Mon, Jan 05, 2009 at 03:55:49PM +1100, John Beckett wrote: >> >> * Remove

Re: Enhancement request for vim omni completion feature

2009-01-07 Thread Yue Wu
On Thu, 08 Jan 2009 07:33:56 +0800, Tony Mechelynck wrote: > > On 07/01/09 20:46, Sean wrote: >> Hello, >> >> The new vim omni completion is great. It can even be used to make an >> independent IM (input method), as I showed on >> http://maxiangjiang.googlepages.com/ChineseIM.gif >> >> It woul

Re: Easiest way to insert a blank line?

2009-01-06 Thread Yue Wu
On Wed, 07 Jan 2009 13:16:26 +0800, Chris Bannister wrote: > > On Mon, Jan 05, 2009 at 03:55:49PM +1100, John Beckett wrote: >> FOR NEW SUBSCRIBERS on this mailing list: >> >> * Thanks for joining, we like the company ... BUT: >> * No signature/disclaimer/waffle attachments please (an attachment

Re: top/bottom posting [Re: an independent Chinese IME is available]

2009-01-06 Thread Yue Wu
On Wed, 07 Jan 2009 09:48:05 +0800, Sean wrote: > > An updated version of ChineseIM.vim and data file are available. > Following are improvements: > > (1) Made new naming > (a) Plugin File => ChineseIM.vim > (b) Data File => http://maxiangjiang.googlepages.com/ChineseIM.dict > (c)

Re: How to subscribe to vim-dev mailing list?

2009-01-06 Thread Yue Wu
On Wed, 07 Jan 2009 00:00:57 +0800, Marvin Renich wrote: > > * John Beckett [090106 04:26]: >> >> anhnmncb wrote: >> >> Some ISPs have very overloaded email systems, and it can be >> >> a day or two before mail is actually sent. >> > >> > Yup, thank you, but my messages sent to vim_use seems hav