Re: Vim Job board?

2006-04-09 Thread panshizhu
Bertram Scharpf [EMAIL PROTECTED] wrote on 2006.04.10 02:43:35: Hi, my boss says that his editor is as least as good as mine and he wants me to give up using Vim. Therefore I like to ask vice versa: Is there anywhere on the web a job board for Vimmers? I'm thinking of something like

Re: cannot delete existing text in insert-mode

2006-04-18 Thread panshizhu
:help 'backspace' Hope that helps. -- Sincerely Pan, Shizhu. ext: 2221 Sorav Bansal [EMAIL PROTECTED] wrote on 2006.04.19 13:37:06: In my environment, I am unable to delete existing text using Backspace key in insert mode. The Backspace key works fine on newly added text. Why is this

[VIM] Anyway to disable the autocmd group and then enable it?

2006-07-10 Thread panshizhu
Hi there, It is possible to remove all autocmds in the autogroup. However, when I want to temperilly disable the autogroup, and enable it in the future. I need to copy the source. Example: Suppose there is some autogroup HisAutoGroup in one of my startup scripts. In one of my script, I need to

Re: colors

2006-07-18 Thread panshizhu
If you find the syntax file for Vim 6.4, and put it into your own .vim directory, you may get the colors before. If you want to change it, just copy the syntax file into your own .vim directory and edit it. -- Sincerely, Pan, Shi Zhu. ext: 2606 Bill Hollingsworth [EMAIL PROTECTED] wrote on

RE: colors

2006-07-18 Thread panshizhu
Peter Hodge [EMAIL PROTECTED] wrote on 2006.07.19 09:32:47: I can see your point and it is concerning that the colour change is enough to force you to go back to Vim 6.4, but Bram (or any software package author) must reserve privileges to change things and make them the default, otherwise

Re: :edit {file} question

2006-07-19 Thread panshizhu
[EMAIL PROTECTED] wrote on 2006.07.20 09:10:43: What is the easiest way to edit a file that is in the same directory as the current file? E.g. I open a file like this: vim /x/y/z/w/file1.c and want to now open /x/y/z/w/file2.c? Occasionally want to open files in the parent directory of

Miss the file explorer in Vim 6.4

2006-07-19 Thread panshizhu
Hello, The vim 7.0 does not come with the file explorer, instead with the netrw plugin. However, I dislike it. My favorate is the file explore standard plugin. I disabled the netrw plugin, I found the file explorer in the Vim 6.4 and copied it into Vim 7.0 but it doesn't work. When I use

user defined command n/a in Tiny mode, any has() +xxx reqired for that?

2006-07-20 Thread panshizhu
Hi, For some reason my .vimrc must works for multiple versions of Vim. Now, I found that in Vim 6.1 Tiny version (shipped with Redhat 9), the following does not work: command! -nargs=+ TestCmd echo args TestCmd my test The vim saids: Not an editor command: TestCmd my test It seems that the

Re: Visible Spaces

2006-07-21 Thread panshizhu
This is what I'd thinked about. IMO, Consider use the Underlined group, The underlined is not a character, but it looks like a character. I guess this suit Johnson's need better. HTH -- Sincerely, Pan, Shi Zhu. ext: 2606 Benji Fisher [EMAIL PROTECTED] wrote on 2006.07.21 13:56:55:

How can I know difference between Vim6.3 and Vim 6.2?

2006-07-21 Thread panshizhu
Hi, This may be a silly question, but I had done a search and did not found the answer. The help version7 tells difference between version6 and version7 However, 6.1 and 6.2 has differences, 6.2 and 6.3 has differences, where is the document about differences between the minor versions?

Re: windows unicode (iso10646-1) font for vim

2006-07-30 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] wrote on 2006.07.31 01:17:38: Dr. Johannes Zellner wrote: Hello, Apparently, there are only very few monospaced unicode fonts in Windows which can be used with vim. On Linux I like to use for example the efont unicode font for xterm. I installed

Re: unmapping thinkpad back forward key?

2006-07-31 Thread panshizhu
Jiang Qian [EMAIL PROTECTED] wrote on 2006.07.31 15:32:15: Hi All: I've been out of clue with this one: I have a thinkpad notebook, which has backward and forward key just above arrow back and arrow forward. In X, I add the lines to ~/.Xmodmap: keycode 234=F19 keycode 233=F20 to map the

Anyway to do spell check only for selected charset?

2006-09-24 Thread panshizhu
Hello everyone. The spell-check in Vim7 seems wonderful, several weeks ago I've been challenged to do spellcheck for files which contain both English and Chinese text. I failed to do that. The problem is that if the spell-check turned on, ALL chinese text are marked as spell error and it might

Question about ColorScheme designing

2006-10-07 Thread panshizhu
Hello everyone, I'm the author of the colorscheme 'ps_color', which is used to be fairly sophisticated and have both dark-background and light-background color scheme inside. Recently I'd found that the 'set background' command will automatically source the colorscheme again. So it may be good

Re: Another UTF-8 Issue (with Chinese)

2006-10-09 Thread panshizhu
Yongwei Wu [EMAIL PROTECTED] 写于 2006-10-09 14:19:20: On 10/9/06, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Gurus, I have found another issue with Chinese and UTF-8 combined. When I select 新宋体 (probably called NSimSun on your non-Simplified Chinese Windows box) in gvim with encoding=utf-8,

Re: Folding between #ifdef _DEBUG and #endif

2006-10-10 Thread panshizhu
[EMAIL PROTECTED] 写于 2006-10-11 12:27:33: :FoldMatching #ifdef\ _DEBUG #endif 0 The last parameter is a context, so you might like 1 better than 0 (allows you to see what you are folding). Alternatively, you can also configure the foldtext (see plugin page or the header in the file for

Re: VIM as C++ IDE

2006-10-15 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29: Hi, Currently, I use F12 to map to make command. However, the cursor will jump to the file which contains the first error or the first warning. It will leave the current file that I'm editing if it is different from the file contain the

Re: VIM as C++ IDE

2006-10-15 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29: map F12 ESC:wkEnter:makekEnter Can some body provide some script to satisfy my more general requirement? I want press F12, then make is called. The error window will not be closed unless I do so. When I brower the error, the file where the

Re: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread panshizhu
Kunapuli, Udaykumar [EMAIL PROTECTED] 写于 2006-10-16 14:37:33: Hi, I tried editing the filetype.vim in the runtime directory and commenting the portion with the .lib extension. But it didn't work. Are you sure you had done it right? I removed the *.lib and it works. this is the filetype.vim

Re: Version confusion

2006-10-16 Thread panshizhu
Meino Christian Cramer [EMAIL PROTECTED] 写于 2006-10-14 14:10:19: I myself use to update my vim source with the newest patches and download the runtime files on a regular base. Furthermore I download the newest CVS stuff from vim-ruby, the ruby support files for vim. How can I simplify the

Re: VIM as C++ IDE

2006-10-16 Thread panshizhu
As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the habit to input :w everytime I changed a new line. So all I need to do is to type :make,

Re: VIM as C++ IDE

2006-10-16 Thread panshizhu
Robert Cussons [EMAIL PROTECTED] 写于 2006-10-16 16:43:53: [EMAIL PROTECTED] wrote: As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the

RE: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread panshizhu
Hi, You problem can be worked around with :set isk+=_ But your problem may be you are not changing the one Vim is sourceing, or if the settings are overrideed by future scripts. you have a filetype.vim in system wide $VIM directory or your ~/.vim directory or vimfiles/after directory? see :h

Re: How to find a file.

2006-10-16 Thread panshizhu
I guess this may not be all you want, for example, if you want to search files in ~/src, now you got a file in ~/src/abc/def/. Then your current directory is ~/src/abc/def/. and when you need to search within ~/src again to find something in ~/src/ghi/jkl/., how to do that? I recommend a

Re: www.vim.org down?

2006-10-17 Thread panshizhu
Preben Randhol [EMAIL PROTECTED] 写于 2006-10-18 06:23:20: Hi I get a blank page when I go to www.vim.org. If I go to vim.sf.net I get the vim pages. A problem with the alias? Preben I don't think it is happen recently. During the past two years I'd never sucess in visiting www.vim.org,

Re: VIM as C++ IDE

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: On 10/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for that simple, don't need any plugin: map F12 ESC:wkEnter:makekEnter:copekEnter You see, just add the :cope will do the trick. Note that the cursor will be in :cope window

Re: VIM as C++ IDE

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-19 10:17:55: On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Peng Yu [EMAIL PROTECTED] 写于 2006-10-18 23:18:14: Is it possible to not to press the last enter key? It is not very convenient. Thanks, Peng try this instead: map F12

Re: Can the mailing list owner set Reply-to field be [EMAIL PROTECTED]

2006-10-18 Thread panshizhu
Peng Yu [EMAIL PROTECTED] 写于 2006-10-19 10:22:31: Hi, Can the mailing list owner set Reply-to field in every mail forward from this mailing list be vim@vim.org? I replied some mails to the original poster. But sometime I forget to reply the mails to the mailing list. Thanks, Peng

What's the exact meaning of the set 'background'?

2006-10-18 Thread panshizhu
Hi Vimmers, Recently, I've been thinking what this option is designed for. The document saids that: when 'background' is set Vim will adjust the default color groups for the new value. But the colors used for syntax highlighting will not change. But in fact, I had tested and found that when

Re: What's the exact meaning of the set 'background'?

2006-10-19 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2006-10-19 13:42:46: (I think I read the help correctly in understanding that ctermbg=NONE and ctermfg=NONE are not syntactically valid settings, but I'm not 100% sure that I understood it correctly.) Best regards, Tony. Hi Tony, Thanks very much for

Re: What's the exact meaning of the set 'background'?

2006-10-19 Thread panshizhu
Peter Hodge [EMAIL PROTECTED] 写于 2006-10-19 13:44:19: Hello, If you change the background=light, Vim reloads the colorscheme so it has a chance to give you new colors. But if the colorscheme changes background=dark again, then Vim knows that the colorscheme isn't capable of picking colors

Re: Anybody can tell me how to use auto add

2006-10-20 Thread panshizhu
李 俊燕 [EMAIL PROTECTED] 写于 2006-10-20 14:17:55: hi,all I don't know how to say that. I just remember that I can type [ control - a ] before a number to let it add 1, for example let 1 change to 2. But it doesn't work in gvim 7.0 for windows. Is there any other method to do that? thank you

Re: Fighting with comments - Close the gap between vimtutor and :help

2006-10-20 Thread panshizhu
vim [EMAIL PROTECTED] 写于 2006-10-20 15:50:36: Hi everobody, I believe that there is room between vimtutor and :help to have some beginner to intermediate tutorial that will take you by the hand and bring you through the Vim universe in a nice and easy way. There already is one close to your

Anyway to sort scripts by last update date?

2006-10-24 Thread panshizhu
Hi, The vim.sf.net has a script search feature which can sort by Rating, Downloads, Name and Creation date. And can be filtered by type. If we want to see in the specified category which scripts has been updated (or created) recently, the only way seems to choose the creation date and decending

Re: Bold font in OS X GUI?

2006-10-25 Thread panshizhu
Peter Hodge [EMAIL PROTECTED] 写于 2006-10-25 14:54:16: I can use guifont=*, and have tried many different fonts which have bold and italic glyphs. The problem is that no matter which font I choose, Vim refuses to show text in Bold (Unless I choose a font which has only a bold glyph). I get

Re: tags with abc::efg?

2006-10-29 Thread panshizhu
Beware, add the colon to 'iskeyword' works but it may mess up one thing: the switch-case statement and the label: switch (foo) { case bar: } here the bar will be recognized as bar:, and of course the bar: does not exist. It will be inconvinient to search bar using the * or the C-], pretty

Re: VIM 7.0 under Windows and Unicode fonts

2006-10-29 Thread panshizhu
Yongwei Wu [EMAIL PROTECTED] 写于 2006-10-30 10:41:21: Alex, if you cannot display Chinese while choosing Courier New, you may try setting your default locale (Control Panel Regional and Language Options Advanced Language for non-Unicode programs) to Chinese (PRC). It should work. And then

Re: Cygwin defaced Vim. Help.

2006-10-30 Thread panshizhu
Ananya M (RBIN/ECM1) [EMAIL PROTECTED] 写于 2006-10-31 12:28:23: Hi, I am a very new to vim, and am absolutely smitten by it. I installed cygwin on my comp. Now gVim is showing up with '$' symbols at the end of every line, and ugly '-' headless arrows at the start of every line. Also while

Re: Command line tab completion

2006-11-01 Thread panshizhu
A. S. Budden [EMAIL PROTECTED] 写于 2006-11-01 23:46:04: Is this because of the quotes (due to it being a setting) or the 'no' variation or is it because of something else? Is there any way to get round it? Many thanks in advance, Al Yes this is because of the quote. you should type :help

Re: Command line tab completion

2006-11-01 Thread panshizhu
Gary Johnson [EMAIL PROTECTED] 写于 2006-11-02 09:26:41: I don't think that's the issue, as I understand it. As another example, if I type This has bothered me for some time--it just never rose above my posting threshold until someone else brought it up first. What is your 'completeopt'

Re: Command line tab completion

2006-11-02 Thread panshizhu
Gary Johnson [EMAIL PROTECTED] 写于 2006-11-02 15:55:34: This behavior might be affected by 'wildmode'. Mine is set to longest,list. I also tried longest,list:longest, but the behavior was the same. Regards, Gary To make things clear, I had just tried: vim -u NONE -U NONE then :set nocp

Re: Command line tab completion

2006-11-02 Thread panshizhu
Benji Fisher [EMAIL PROTECTED] 写于 2006-11-02 22:21:36: I agree with Gary. I tried $ vim -u NONE :set nocp wildmenu wildmode=longest:list :help termiTab :help preserTab I was hoping for termin in the first case and preserve in the second, but I was stuck with termi and preser. HTH

Re: Spurious undefined variable error generated for certain valid ternary expressions

2006-11-08 Thread panshizhu
Stahlman Family [EMAIL PROTECTED] 写于 2006-11-09 09:40:49: The docs clearly state: You should always put a space before the ':', otherwise it can be mistaken for use in a variable such as a:1. Hmm. Ok. I didn't find that text with helpgrep, but I've got Vim7 beta version still on this

Re: Your best text/code formatting trick

2006-11-12 Thread panshizhu
Kim Schulz [EMAIL PROTECTED] 写于 2006-11-13 04:29:53: I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format-paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which ones are your

Re: vim encryption

2006-11-22 Thread panshizhu
Noah Spurrier [EMAIL PROTECTED] 写于 2006-11-22 04:14:52: I am not so concerned with strong encryption (although, I'd be sad if the encryption turned out to be trivial). At the moment my main goal is to be able to write VIM compatible encrypted files from a PHP or Python script. Just :h :X and

Re: Can't change search background color

2006-11-22 Thread panshizhu
Larry Alkoff [EMAIL PROTECTED] 写于 2006-11-21 17:25:13: I'm using Vim64 in Kubuntu and cannot change the color background when doing a search. The background color is a kind of darkish orange - I _think_ it's numbe 3. I'd like to have LightYellow but nothing I have done so far changes it.

Re: compile code from within vim

2006-11-26 Thread panshizhu
atstake atstake [EMAIL PROTECTED] 写于 2006-11-27 09:37:40: I'm using vim 6.4.7 on Fedora Core 5. I would like to compile C, Perl, ruby bash script from within vim. I want vim to recognize a file by extenstion and if I map it to, say, F3 vim would be able to compile the code based on the

possible bug for syntax/vim.vim?

2006-11-30 Thread panshizhu
if I had the following in a vim script: call FooBar('xxx' \ 'yyy') then the last character ')' will be highlight as Error. It seems that the '\' continued line are not recognized well. My :version VIM - Vi IMproved 7.0 (2006 May 7, compiled Sep 15 2006 16:06:30) Included patches: 1-76

Re: finding extra { braces

2006-11-30 Thread panshizhu
Yakov Lerner [EMAIL PROTECTED] 写于 2006-12-01 07:45:02: It is easy to identify extra '}' in the .c source, compiler points us to the exact line. Rarely, I have the opposite error, the extra '{' somewhere in the source. For example int foo() { {

Re: vim-display problem?!

2006-12-11 Thread panshizhu
dong wang [EMAIL PROTECTED] 写于 2006-12-11 18:10:03: I found a problem ( sorry , here i just call it problem ) when i edit a csv file. That is the vim don't display the last line as a seperate line when i do set nu For exmaple , use Notepad.exe (or some other Editor) to create a file , and

Re: Upgrading From Vim 6.4 to Vim 7.0

2006-12-15 Thread panshizhu
Roy Fulbright [EMAIL PROTECTED] wrote on 2006.12.16 10:42:02: I am preparing to upgrade from Vim 6.4 to Vim 7.0 on Windows XP. I downloaded 'gvim70.exe' from the Vim site, but also noticed a reference to the latest binary with all the most recent patches, which currently is 'gvim-7-0-178.exe',

Re: c-wc-s on *nix vim

2006-12-28 Thread panshizhu
C-S is used for terminal flow control in Unix. So, try C-W s instead of C-WC-S, i.e. release the ctrl after C-W and press a single S. -- Sincerely, Pan, Shi Zhu. ext: 2606 Manu Hack [EMAIL PROTECTED] 写于 2006-12-29 02:15:16: It works in Vim7 on WinXP but not on *nix (I tried solaris and

Re: i_CTRL-Y on Windows

2006-12-28 Thread panshizhu
Try to see if you sourced mswin.vim somewhere. (it may be in your .vimrc, or $VIMRUNTIME/vimrc_example.vim, or anywhere in the $VIM.) An easy way may be: delete the mswin.vim file, restart vim and the script souceing that file will report an error, then you'll know where you had sourced it. If

Questions about syntax highlight script.

2007-01-03 Thread panshizhu
Hi vimmers, I've got some question when writing my syntax highlight script. Q1. The language requires a ^M character as a keyword. The ^M character is by default highlighted but I want to highlight it to some other color, at least it should be different from ^L and ^N... It seems impossible to

Re: Questions about syntax highlight script.

2007-01-04 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] wrote on 2007-01-04 18:18:39: [EMAIL PROTECTED] wrote: Hi vimmers, I've got some question when writing my syntax highlight script. Q1. The language requires a ^M character as a keyword. The ^M character is by default highlighted but I want to highlight

Re: change syntax highlighting

2007-01-10 Thread panshizhu
Geue, Stephan [EMAIL PROTECTED] 写于 2007-01-10 17:34:03: Hello, I would like to change the VIM colors, i.e. the C/C++ mapping of VIM colors to Xterm colors. First, I changed a few lines within Hi, A better approach is to use the GUI version of Vim, and you could set the color scheme, see :help

Re: Administrator never hears the beep

2007-01-17 Thread panshizhu
Spencer Lu [EMAIL PROTECTED] 写于 2007-01-18 13:45:29: I'm running Vim 6.4 on Windows 2000. When I'm using GVim as a normal user, I can hear the beeping noises (for example, if I'm on the last line and then press 'j'). However, when I'm logged in as Administrator, I never hear any beeping

Re: How to maximize my vim window when I start it?

2007-02-04 Thread panshizhu
Hi, The :set lines=9 columns=9 does not really maxmize the Vim window. Since there's still borders for the window, a maximized window have no borders (AFAIK this is true for WinXP and KDE). Since you are highly unlikely to use a Windows version other than English and Chinese. The

Re: GVim colours

2007-02-05 Thread panshizhu
I've written a script to remove all the gui=bold properties, please be ware that it isn't easy, since you cannot just set all the highlighting to gui=NONE. For those who had a default value of gui=reverse, you should NOT set it to gui=NONE, for those who had gui=reverse,bold, you should first set

Re: replace upper-case with lower-case

2007-03-08 Thread panshizhu
Theerasak Photha [EMAIL PROTECTED] 写于 2007-03-09 11:39:13: Suppose I want to replace start to stop without changing the capitalization, this will be: START - STOP start - stop My prior question is wrong, sorry. Oh, well in that case: :%s/START/STOP/g :%/start/stop/g This does

Re: Consistently exit message display with 'q'?

2007-03-19 Thread panshizhu
John Orr [EMAIL PROTECTED] 写于 2007-03-19 21:23:59: Hi all, I'm a bit frustrated by a particular behaviour of vim, and today I modified the source code to 'fix' it. I'd be very grateful for some opinions if you a) agree with my thoughts, or b) have a better solution. The problem - is when

Re: Consistently exit message display with 'q'?

2007-03-19 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-03-20 11:18:06: To go back in the scrolling display, in Vim 7 (but not in Vim 6 or earlier) you can use Up or PageUp depending on how far you want to go back. Best regards, Tony. -- Hi Tony, Anyway to prevent 'more-prompt' from changing into

Re: Consistently exit message display with 'q'?

2007-03-19 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-03-20 11:58:26: After hitting Up once at the Hit-Enter prompt you're back to the More-prompt so _then_ you can use PageUp again. IMHO it is advantageous to have a different prompt at the end of the message because it tells you that there's nothing to

Re: Consistently exit message display with 'q'?

2007-03-21 Thread panshizhu
John Orr [EMAIL PROTECTED] 写于 2007-03-22 12:43:51: Thanks for the clarification Brett. At least if you have external commands you use regularly though, you could wrap them in a vim function, thereby making them effectively internal, making g useful. Just an update - I promised I'd

Re: Customizing vim: How to change the char before commands

2007-03-22 Thread panshizhu
Some user [EMAIL PROTECTED] 写于 2007-03-22 05:14:30: I'm new to Vim. I want to change the character before commands. For example saving is done by: :w enter Can it be made slightly easier by just pressing 'g' or some other key that's not taken? I don't know why every command has to be

Re: completion menu colors

2007-04-02 Thread panshizhu
fREW [EMAIL PROTECTED] 写于 2007-04-03 10:56:11: Are these things that should be set in the colorschemes, but just aren't yet because the names are new, or what? -fREW This should be set in colorscheme, however, if you're using the default colorschme it is buit-in with Vim and you cannot

Re: how to replace ESC to some other key?

2007-04-03 Thread panshizhu
wangxu [EMAIL PROTECTED] 写于 2007-04-04 23:55:55: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? Thanks. This was well discussed on vim online. Search for tips in vim.sf.net. You'll got all things you need to assign CapsLock to ESC. --

Re: how to replace ESC to some other key?

2007-04-04 Thread panshizhu
Yakov Lerner [EMAIL PROTECTED] 写于 2007-04-04 22:22:43: On 4/4/07, wangxu [EMAIL PROTECTED] wrote: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? I heard some people use Tab as a substitute for Esc. Weird. But it's easier to do in

***SPAM*** Re: Vim70's highlighting

2007-04-10 Thread panshizhu
李长青 [EMAIL PROTECTED] 写于 2007-04-10 10:14:07: hi,all: thank you. I install vim70 as a new software ,not update from other version. And there is not a file named vimrc_example.vim at the path /usr/share/vim/vim70,just a file named debian.vim.And when I install vim70

Re: how to replace ESC to some other key?

2007-04-11 Thread panshizhu
map something to C-Vtab, and it will insert a real tab character for you. for example: inoremap silent F6 c-vtab will map F6 for you, replace it with anything you want. I always need such a map, since I've set 'expandtab' all the time. -- Sincerely, Pan, Shi Zhu. ext: 2606 wangxu [EMAIL

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread panshizhu
OnionKnight [EMAIL PROTECTED] 写于 2007-04-13 08:22:06: I've been thinking of migrating to using vim (gvim) but I'm running into lots of difficulties on the road I just can't solve, and the documentation is... well, strange at best. It seems that Vim had a longer learning curve than other editors

OT: [Help]How can I add some char before a block?

2007-04-12 Thread panshizhu
陈方荣 [EMAIL PROTECTED] 写于 2007-04-13 09:08:49: Hi all,     How can I add some char before a block?     Just like C++ comment.     Before:     Comment line1     After:     //Comment line1 Thanks. Offtopic: Generally, use comment character to

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread panshizhu
OnionKnight [EMAIL PROTECTED] 写于 2007-04-13 10:05:10: Couldn't find anything about command-mode. How is it different from normal mode? Is each line treated as one command? Like g0w is treated as g0w instead of g0 and w? Vim is a multi-mode editor, in different mode, it accepts completely

Re: Wish: need a way to reverse 'cterm=inverse' highlight command

2007-04-13 Thread panshizhu
Spencer Collyer [EMAIL PROTECTED] 写于 2007-04-13 15:55:48: Typically, just after I sent my message I realised how to do it - just use 'cterm=NONE'. Spencer This is not perfect, since it removes ALL properties. Suppose something is highlighted as cterm=reverse,underline,bold The cterm=NONE,

Re: Vimrc blues.

2007-04-15 Thread panshizhu
Ananya M (RBIN/ECM1) [EMAIL PROTECTED] 写于 2007-04-13 17:02:11: Hi, I m very new to Vim. But I'm smitten by it nevertheless. I use Gvim 7.0. I also have cygwin installed in my winnt system. Cygwin defines $HOME to a network drive and places its own .vimrc file in it. I don’t want gvim to use

Re: how to avoid deleting the auto-indent in a new empty line when i press Esc

2007-04-15 Thread panshizhu
sun [EMAIL PROTECTED] 写于 2007-04-15 17:27:28: Dear all, The question is: When I insert a line then Esc to edit other place, vim of C filetype delete the auto-indented space. But i want to keep the indent there for the future editing? Then how to make the auto-indent always insert the

Re: gvim: menu disappeared

2007-04-15 Thread panshizhu
Guido Milanese [EMAIL PROTECTED] 写于 2007-04-16 05:08:14: I am sorry to ask such a stupid question, but I'm really puzzled. I have been using vim for ages now, and for some tasks, not always, I prefer a GUI. I use a Mandriva Linux distribution and it's all right. Suddendly the menu bar (not

Re: how to avoid deleting the auto-indent in a new empty line when i press Esc

2007-04-16 Thread panshizhu
sun [EMAIL PROTECTED] wrote on 2007-04-16 15:57:21: What I need is to always keep the auto-indented spaces. So next time I can start to insert from the spaced cursor. The typing S is a reasonable way although I really want to know how to change indent-deleting behavior for a empty line in

Re: Two different versions of Vim...

2007-04-22 Thread panshizhu
Marv Boyes [EMAIL PROTECTED] 写于 2007-04-20 23:09:11: I removed all Vim-related Ubuntu packages and re-ran the AAP install with --enable-gui=gtk2 in my config.arg file. That's evidently not the correct syntax, since I ended up with no GUI available. This is the correct syntax, but you may not

Re: VimWin

2007-04-22 Thread panshizhu
Zhichao Hong [EMAIL PROTECTED] 写于 2007-04-22 22:55:47: If the topic is about fonts, I would like to make some comment. The Bitstream Vera Sans Mono looks ugly with subpixel hints. You can say the same thing about Consolas. But if the hinting are turned on and compared on the Windows,

Re: what feature is required to return to last editing position?

2007-05-09 Thread panshizhu
Vincent BEFFARA [EMAIL PROTECTED] 写于 2007-05-09 23:54:27: Hi, Recently I installed Ubuntu Feisty and the feature seems to have gone (I installed vim-gnome version 7.0.135). Since I use the same .vimrc in all platform, it is unlikely to be the fault of my .vimrc script, the problem is I do

taglist plugin launch ctags fail in gvim windows.

2007-05-13 Thread panshizhu
(or by any windows-way such as right-click or launch in explorer), and launch taglist with :Tlist, error reported such as: Taglist: Failed to generate tags for D:/panshizhu/blabla.cpp [EMAIL PROTECTED]@ctags: cannot sort tag file : No such file or directory^@ where “输入文件指定了两次。” in the above message

Re: taglist plugin launch ctags fail in gvim windows.

2007-05-13 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-05-14 13:21:47: If your shell is cmd.exe, /usr/bin/ctags will give Unknown command or file name. If you want to mix Dos shells and cygwin utilities, you will have to juggle with the path formats: see man cygpath from within cygwin. Best regards,

Always 1 instance-only mode for gvim?

2007-05-14 Thread panshizhu
Hi, vimmers, For some reason I'd like to have only one instances of gvim in my machine at most. launch gvim anyway when gvim has existing instance will switch to the existing one. (evenif no files are specified) But the --remote-silent do not fully meet my requirement since it requires an

Re: taglist plugin launch ctags fail in gvim windows.

2007-05-14 Thread panshizhu
with something else, which proves that the ctags does get executed. Cygpath is not the issue here. -- Sincerely, Pan, Shi Zhu. ext: 2606 If your shell is bash and your ctags a cygwin version, you shouldn't pass \D:/panshizhu/blabla.cpp\ to the latter nor D:/temp/VIo74.tmp

Re: Project specific settings

2007-05-14 Thread panshizhu
Marius Roets [EMAIL PROTECTED] 写于 2007-05-14 16:05:14: Hi All, I know this has been covered before, but I can't seem to find it by searching Vim tips, so please excuse me if this has been ask many times before. I always uses spaces to indent my code, but a current project requires me to use

Re: taglist plugin launch ctags fail in gvim windows.

2007-05-14 Thread panshizhu
version, you shouldn't pass \D:/panshizhu/blabla.cpp\ to the latter nor D:/temp/VIo74.tmp to the former. You may pass either /cygdrive/d/panshizu/blabla.cpp /cygdrive/d/temp/VIo74.tmp, or (IIUC) `cygpath -u D:\\panshizu\\blabla.cpp` `cygpath -u D:\\temp\\VI074.tmp` Best

Re: compiling vim7.1 (huge version) gets build with normal version

2007-05-15 Thread panshizhu
[EMAIL PROTECTED] 写于 2007-05-15 13:30:28: I recently did a clean install of Ubuntu 7.04 and also installed all vim related packages. That got me a gui version of vim (7.0.164/Big compiled on 2007/03/11). I now want to compile and install the gui version of vim 7.1. So, I downloaded the

Re: compiling vim7.1 (huge version) gets build with normal version

2007-05-15 Thread panshizhu
[EMAIL PROTECTED] 写于 2007-05-15 14:51:43: Thanks Pan. Now it does say Huge Version. But I'm seeing couple of problems ... 1. It still doesn't show the menu's and toolbars. 2. It tries to use my $HOME/.gvimrc (which works fine with the ubuntu installed vim7.0) and complains that it can't find

Vim71: breaking change not mentioned in the document.

2007-05-16 Thread panshizhu
Hi, vimmers: The line 1230 of editing.txt said: To change to the directory of the current file: :cd %:h This works for Vim 7.0 and before, but not for Vim 7.1. In Vim 7.1 when the pwd is the same as the directory of current file, the command will fail with E500. The failure will break

Re: Vim71: breaking change not mentioned in the document.

2007-05-16 Thread panshizhu
Gary Johnson [EMAIL PROTECTED] 写于 2007-05-16 16:41:22: On 2007-05-16, [EMAIL PROTECTED] wrote: Hi, vimmers: The line 1230 of editing.txt said: To change to the directory of the current file: :cd %:h This works for Vim 7.0 and before, but not for Vim 7.1. In Vim 7.1 when

Re: Vim71: breaking change not mentioned in the document.

2007-05-16 Thread panshizhu
Gary Johnson [EMAIL PROTECTED] 写于 2007-05-17 00:35:42: On 2007-05-16, [EMAIL PROTECTED] wrote: Gary Johnson [EMAIL PROTECTED] 2007-05-16 16:41:22: On 2007-05-16, [EMAIL PROTECTED] wrote: Hi, vimmers: The line 1230 of editing.txt said: To change to the directory of

Re: Identify this Vim font for me, please

2007-05-16 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-05-17 09:19:03: I don't think that font is available on Motorola Macs (including Power PCs). It may or may not be available in Intel Macs but I don't know how to get at it. Maybe the same way on OS X as on Linux above, I'm not sure. Best regards, Tony.

Vim71: undocumented change for netrw plugin.

2007-05-17 Thread panshizhu
Hello vimmers: I am one of the users who want the default file explorer to be explorer.vim in Vim 6.x rather than netrw. And from line 78 of pi_netrw.txt I got the following: You can avoid loading this plugin by setting the loaded_netrw variable in your .vimrc file: :let

Re: repeating up/down/delete commands

2007-05-20 Thread panshizhu
A.J.Mechelynck [EMAIL PROTECTED] 写于 2007-05-19 15:42:15: This is true, but rather than an empty vimrc I suggest the following: runtime vimrc_example.vim if and when we want to further customize Vim, we'll add more lines below Best regards, Tony. -- I always recommend include the contents

Re: Vim71: undocumented change for netrw plugin.

2007-05-20 Thread panshizhu
Charles E Campbell Jr [EMAIL PROTECTED] 写于 2007-05-18 23:23:23: That's an awful lot of text just to mention that there's an omission from the help! Regards, Chip Campbell Sorry I think I'm a bit nervous recently and it often takes several paragraphs to express my single idea, I'm going to

Re: C-X C-F completion and paths with spaces

2007-05-20 Thread panshizhu
Yakov Lerner [EMAIL PROTECTED] 写于 2007-05-21 05:50:03: On 5/20/07, Matthew Winn [EMAIL PROTECTED] wrote: I can't begin to imagine why Microsoft thought it would be a good idea to put spaces in the names of system directories I have two theories about this. 1) MS lifted the idea from

Re: Vim to Vi (Was: weird defaults in Feisty)

2007-05-22 Thread panshizhu
fREW [EMAIL PROTECTED] 写于 2007-05-23 08:15:55: Yeah, the really big problem is that the guy I am working with who I am helping admin a few servers is at exactly step 1. In fact, it wasn't until recently that he figured out (I told him) that Ctrl-Z is not the same as :q!. And like you said,

Re: A performance question

2007-05-22 Thread panshizhu
AFAIK Vim 7 has a different way of handling undo levels. Have you tried with Vim 6 instead? I had used Vim 6 to edit a text file (3Gbytes) and do things within seconds. -- Sincerely, Pan, Shi Zhu. ext: 2606 Robert Maxwell Robinson [EMAIL PROTECTED] 写于 2007-05-23 05:59:20: :set undolevels=-1

Re: Vim to Vi (Was: weird defaults in Feisty)

2007-05-23 Thread panshizhu
Micah Cowan [EMAIL PROTECTED] 写于 2007-05-23 09:11:54: [EMAIL PROTECTED] wrote: All you need to do is to: sudo apt-get install vim-gtk, which installs a Big version of vim, and the vim will be replaced with that version. Well... not replaced. They will both be installed. You'll probably need

  1   2   >