Re: why function! instead of just function

2015-01-19 Thread Xell Liu
On Tue, Jan 20, 2015 at 12:31 PM, Bao Niu niuba...@gmail.com wrote: What is that exclamation point for here? Try :help before asking! -- -- 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

Re: why function! instead of just function

2015-01-19 Thread Xell Liu
On Tue, Jan 20, 2015 at 12:39 PM, Bao Niu niuba...@gmail.com wrote: Hey I did try. I got E149: Sorry, no help for function! :help :function It's a command, not a tag/keyword. -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: autocmd useage

2013-06-26 Thread Xell Liu
On Wed, Jun 26, 2013 at 10:36 PM, wangjun850725 wangjun850...@gmail.com wrote: Hi : I want to execute \ca when I opened gvim. I set: autocmd VimEnter * exe normal \\ca or autocmd VimEnter * normal \ca that are all failed. How to write this command? Maybe feedkeys() would help here, e.g.

Re: [Rephrased] Problem with a regular expression in Vim

2012-10-04 Thread Xell Liu
On Wed, Oct 3, 2012 at 11:37 PM, Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, October 3, 2012 9:05:14 AM UTC-5, Xell Liu wrote: Hi all, Sorry for the previous mail where my ambiguous expression led to a somewhat time-wasting discussion. Thanks for the guys who tried to help

Re: Problem with a regular expression in Vim

2012-10-03 Thread Xell Liu
Hi Paul, By extraction I mean that what I need to match is only the contents without the surroundings == (i.e. extracting aaa from ==aaa==). I certainly know that I could use \(\) to get the contents afterwards. But I want to know how to match the contents solely. For example, while using

[Rephrased] Problem with a regular expression in Vim

2012-10-03 Thread Xell Liu
Hi all, Sorry for the previous mail where my ambiguous expression led to a somewhat time-wasting discussion. Thanks for the guys who tried to help. Here is the rephrased version. I what to use command :match to highlight some text, which is free-form and thus can not be enumerated. The text is

Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)? Apparently /==\zs[^=]\{-}\ze==/ fails. However /==[^=]\{-}==/ does match the aaa and ddd WITH the pair of ==. I got

Re: Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
, Oct 2, 2012 at 9:37 PM, Xell Liu xell@gmail.com wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy)? Apparently /==\zs[^=]\{-}\ze==/ fails. However

Re: Problem with a regular expression in Vim

2012-10-02 Thread Xell Liu
.) or . Will they help? On Wed, Oct 3, 2012 at 11:41 AM, Ben Fritz fritzophre...@gmail.com wrote: On Tuesday, October 2, 2012 9:38:20 PM UTC-5, Xell Liu wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching

Re: how to match all Chinese chars?

2012-05-27 Thread Xell Liu
In fact, if your aim is not so strict, i.e. if you only need to exclude ASCIIs, you could use [^\x00-\xff] . Hope it helps. On Mon, May 28, 2012 at 12:39 AM, Chris Jones cjns1...@gmail.com wrote: On Sun, May 27, 2012 at 09:53:55AM EDT, William Fugy wrote: Question: how to match all Chinese

Re: What Syntax-Highlightning where no syntax is?

2012-03-08 Thread Xell Liu
First, you could use :verbose highlight GROUP_NAME to identify what you're look for. For example, :verbose highlight DiffChange will tell you the definition of it and where it was set last. And, you may be interesting in $VIMRUNTIME/syntax/nosyntax.vim and synload.vim. You could find their

Re: EasyColour 1.0.0: Colour Schemes made Easy!

2012-02-23 Thread Xell Liu
On Friday, February 24, 2012 at 2:45 AM, Ben Fritz wrote: A related gripe is that similar items like Number and Constant are not always defined, even if the author just wants to link them together. Does the plugin handle linking groups? Or at least defining multiple groups in one shot,

Re: Problems with EasyMotion Plugin (gVim)

2012-02-07 Thread Xell Liu
EasyMotion plugin includes a folder named autoload which should be put in your vimfiles directory too. Please read :help autoload in Vim help for further information. On Tue, Feb 7, 2012 at 7:02 AM, pghtech max.mcca...@verizon.net wrote: I am trying to use the vim plugin EasyMotion and get no

Re: disable window close button (X)

2011-07-25 Thread Xell Liu
IMHO, autohotkey or autoti may help you here. As Tony said, GUI is not the business of gVim and you'd better handle it via other (native) Win32 GUI tools. On Tue, Jul 26, 2011 at 11:28 AM, Benjamin R. Haskell v...@benizi.comwrote: On Sun, 24 Jul 2011, warem wrote: hi, i am using gvim in

Re: Installing a word count plugin -- or recommendations of other plugins

2011-07-21 Thread Xell Liu
Maybe this article could help: http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim/120386http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim/120386#120386 I used the code from the last comment, although nobody voted for it. On Thu, Jul 21, 2011 at

Re: vim - shell support

2011-07-08 Thread Xell Liu
If you need a plugin to do more, you can try https://github.com/Shougo/vimshell . It's very powerful but lacks decent English documents (the developers are Japanese). On Sat, Jul 9, 2011 at 1:49 PM, eleanor evangeline.elea...@gmail.comwrote: Thanks, the :r options works. -- View this

Re: Bullet list layout

2011-07-06 Thread Xell Liu
Did anyone try the patch with vim 7.3? It seems it's very old. Thanks. On Wed, Jul 6, 2011 at 8:23 PM, Nono basti...@gmail.com wrote: Thanks!!! Googling about showbreak, I found this: http://groups.google.com/group/vim_dev/web/vim-patches . The 9th patch, Correctly indent wrapped lines,

Re: How to write command for select range of Chinese text

2011-06-17 Thread Xell Liu
You can try [^\x00-xff], which means all but characters of ascii code 0 to 255. On Fri, Jun 17, 2011 at 1:17 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 13/06/11 15:02, Dennis low wrote: Hi I would like to know how to write a command for selecting a range of Chinese text

Re: I need a simple macro or function

2011-06-13 Thread Xell Liu
How about this? vmap M-c zc`C-RZ`Esc On Mon, Jun 13, 2011 at 4:18 PM, stardiviner numbch...@gmail.com wrote: I installed vim plugin *vimwiki* sometimes I copied multiple lines of code from website into vimwiki. In vimwiki, code is between ` ` so I hope that I can have a simple way to add `

Re: syntax include and spellcheck

2011-05-21 Thread Xell Liu
Try :spell toplevel ? On Sun, May 22, 2011 at 3:13 AM, Maxim Kim haba...@gmail.com wrote: Hi, Is there any way I can have spellcheck and 'syntax include' in one buffer? If I open new buffer and enter there: Hello wld then after :setlocal spell spelllang=en I have 'wld' highlighted as

Re: syntax include and spellcheck

2011-05-21 Thread Xell Liu
Sorry, it's :syntax spell toplevel. Please ref :h :syn-spell . On Sun, May 22, 2011 at 9:34 AM, Xell Liu xell@gmail.com wrote: Try :spell toplevel ? On Sun, May 22, 2011 at 3:13 AM, Maxim Kim haba...@gmail.com wrote: Hi, Is there any way I can have spellcheck and 'syntax include

Re: List of hotkeys?

2011-05-20 Thread Xell Liu
Hi. You can try :verbose , e.g. :verbose nmap . On Sat, May 21, 2011 at 9:48 AM, Antonio Recio amdx6...@gmail.com wrote: Is there any script to find hotkeys used and the available ones (including the configuration of the plugins, vimrc, gvimrc, etc)? -- You received this message from the

Re: It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread Xell Liu
Hi, Perhaps :h :syn-include could help you. On Tue, May 17, 2011 at 8:55 AM, AMDx64BT amdx6...@gmail.com wrote: I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to

Re: search .vimrc and .viminfo in a different directory

2011-05-12 Thread Xell Liu
Hi, You can setup the location of viminfo file via 'viminfo' option and its identifying characters 'n'. Just read the helptext and example of it in Vim. On Fri, May 13, 2011 at 8:26 AM, cyboman rail.shafigu...@gmail.com wrote: i would like to move my .vimrc and .viminfo files in .vim

Better syntax highlight file for Git log output?

2010-12-03 Thread Xell Liu
Hi everybody, The syntax highlight file shipped with gvim runtime lacks support for complex output of Git log command. For example, the short version of Hash Value cannot be recognized, and --graph output cannot be handle at all. Does anybody have a better solution? I'm using git-vim and

Re: Better syntax highlight file for Git log output?

2010-12-03 Thread Xell Liu
(with --graph, --stat, etc.) to color the output easily. Any good ideals? Regards, Xell On Sat, Dec 4, 2010 at 12:21 AM, bill lam cbill@gmail.com wrote: Сбт, 04 Дек 2010, Xell Liu писал(а): Plese specify them. Thanks very much. You received this message from the vim_use maillist. Do not top

Re: update the ctags automatically, how to do ?

2010-09-01 Thread Xell Liu
Hi, I'd run into this topic some time ago and there are some resources I think you may be interested in. However I have no concrete answer. - http://stackoverflow.com/questions/155449/vim-auto-generate-ctags - http://vim.wikia.com/wiki/Autocmd_to_update_ctags_file -

Re: fixed grammatical errors in vim help files using LanguageTool

2010-08-30 Thread Xell Liu
Hi, 2010/8/30 Dominique Pellé dominique.pe...@gmail.com Done. LanguageTool.vim plugin now populates the location list. So you can use commands such as :lopen, :lne, etc. Cheer for the update. But how can I re-open the scratch window? I know I can use :lopen or :lwindow to access the

Re: [patch] fixed grammatical errors in vim help files using LanguageTool

2010-08-28 Thread Xell Liu
Thanks very much for your work. BTW, in my case I just download the openoffice extension oxt and unzip it to get the binary; there is no need to build it if you don't want to. And I hope some improvements could be made to the plugin such as hitting enter key to jump to the error line. Regards,

The conceal feature makes wrap texts jagged

2010-08-22 Thread Xell Liu
Hi everybody, I like the new conceal feature very much. I use it to hide the URLs in my texts with wiki markup. But I notice that if the 'wrap' option is on at the same time, the displayed texts will be ugly especially in the case of long URL. The right margins are jagged. Can anyone give a

What's the simplest way to do this search?

2010-08-05 Thread Xell Liu
Hi all, For example, when I want to search all letters and digits (i.e. all [:alnum:] ) except the two letters a and b (without quotes), how should I do that instead of stupidly enumerating all the characters I want? The real question I want to ask is: 1. The items I want to include in search

Re: What's the simplest way to do this search?

2010-08-05 Thread Xell Liu
brettstahl...@comcast.net wrote: Stahlman Family wrote: Xell Liu wrote: Hi all, For example, when I want to search all letters and digits (i.e. all [:alnum:] ) except the two letters a and b (without quotes), how should I do that instead of stupidly enumerating all the characters I want

Re: What's the simplest way to do this search?

2010-08-05 Thread Xell Liu
On Fri, Aug 6, 2010 at 1:38 AM, ZyX zyx@gmail.com wrote: I am surprised that nobody mentioned negative look-behind (/[a...@![[:alnum:]]). Unlike '\', it is available in all perl-like regex engines (via (?!)), so you will not restrict your regex experience to vim. Текст сообщения:

Re: Does vim has wiki syntax highlighting?

2010-08-02 Thread Xell Liu
On Tue, Aug 3, 2010 at 1:19 AM, H Xu xusu...@gmail.com wrote: Does vim has wiki syntax highlighting? Thank you. Please go here http://www.vim.org/scripts/script_search_results.php?order_by=creation_datedirection=descending and search what you want. -- You received this message from the

Re: [SOLVED] Re: Enter a directory automatically when opening files with gvim , possible ?

2010-07-31 Thread Xell Liu
On Sat, Jul 31, 2010 at 3:01 PM, Aaron Lewis aaron.lewis1...@gmail.com wrote: @Xell:  I checked `help autocmd' , just could you do a small explanation on this part `%:p:h:gs/ /\\ /' ?        Thanks ! Just read :help filename-modifiers. In a nutshell, % is the file, and :p:h modifiers generate