Re: who actually controls the window size of my gvim?

2007-04-30 Thread Zhaojun WU
Hi, Tony and John, As I posted in my first email, I am also setting the guifont *before* the columns and lines setting. I think I find out where those strange lines and columns number are from after I check the columns and linessettings in the gvim opened from my urxvt terminal. It used the

Re: open remote file in vim/gvim

2007-04-23 Thread Zhaojun WU
Hi, Ben, I think netrw [ http://www.vim.org/scripts/script.php?script_id=1075 ] is what you want, although, personally, I haven't used it so far 'cause I am used to edit a file after SSH login. :-) HTH, Zhaojun On 4/23/07, ben lieb [EMAIL PROTECTED] wrote: This might have been discussed

question about manpageview.vim version 16

2007-04-18 Thread Zhaojun WU
Hi, Dr. Chip and Vimmer, Just found that after I updated the manpageview.vim plugin (http://www.vim.org/scripts/script.php?script_id=489) to the latest one, pressing K in some codes like printf(foo), when the cursor is under the word printf, will show me an error message like: ***warning***

Re: ***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting

2007-04-10 Thread Zhaojun WU
Hi, Seems you are using Debian? Which package do you choose (I suppose you installed vim-tiny not vim)? If so, replace the vim-tiny with vim via apt-get or aptitude. Best, Zhaojun On 4/10/07, 李长青 [EMAIL PROTECTED] wrote: hi,all: thank you. I install vim70 as a

Re: how to replace ESC to some other key?

2007-04-10 Thread Zhaojun WU
On 4/11/07, wangxu [EMAIL PROTECTED] wrote: That's a very good tip: ) I also wanna know how to insert a Tab when I editing files like /etc/hosts? Can I? What I did for indenting is I usually use space to replace the TAB with the following settings: set expandtab set tabstop=4 But if I indeed

Re: VIM Delete All Except

2007-04-09 Thread Zhaojun WU
On 4/6/07, cga2000 [EMAIL PROTECTED] wrote: On Thu, Apr 05, 2007 at 10:10:03AM EDT, jas01 wrote: If the file is really huge, you may find adopting a different strategy is preferable. If you're on linux or similar you might use a command-line tool such as: $ grep Text[1-3] huge_file

print hex value of cp936 Chinese char?

2007-03-07 Thread Zhaojun WU
Hi, all, Is it possible to print the hex value of the cp936-coded Chinese character under the current cursor, just like ga for the ASCII char. I found that g8 can print the correct hex value of UTF8-encoded Chinese character in a openning UTF-8 encoded file. But, for a cp936 (or GBK) encoded

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread Zhaojun WU
Oops, josephwu is my another account. Gmail just wrongly chose my out mail addr. :( Best, Zhaojun On 3/8/07, Joseph WU [EMAIL PROTECTED] wrote: Hi, Cyril and Tony, Thanks. Tony's right. I just tested Cyril's solution. Unfortunately, when encoding=utf8 and fileencoding=cp936, line: let char

Re: GB18030 != CP936

2007-02-26 Thread Zhaojun WU
Hi, Yongwei, I am also realizing this issue during my recent research on Chinese encodings. As shown in the wikipedia, CP936 is just the encoding derived from Microsoft's Windows 95. Due to the popularity of Windows OS in mainland China, the Chinese government build the GBK (GB-2312 extension)

Re: GB18030 != CP936

2007-02-26 Thread Zhaojun WU
On 2/26/07, Yongwei Wu [EMAIL PROTECTED] wrote: Thanks for the information. However, the test file is invalid. Specifically, the third character is E1 11 A0: obviously wrong. Using iconv confirmed this: iconv -f utf-8 -t gbk zh-s.utf8 明月iconv: zh-s.utf8: cannot convert Oops, I made a mistake.

Key mapping on , and . with CTRL

2006-10-27 Thread Zhaojun WU
Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do in this case? Another question is how I can check all of the current key mappings in VIM? I remembered I saw something about

Re: Key mapping on , and . with CTRL

2006-10-27 Thread Zhaojun WU
. For example, to map CTRL-L you could use ':map CTRL-VCTRL-L'. regards, Peter --- Zhaojun WU [EMAIL PROTECTED] wrote: Hi, Vimmers, Is there any way to map the comma and period with CTRL such as: map C-, :foo map C-. :foo It seems the , and . cannot be used here directly. How can I do