Re: how to enable mouse in vim of cygwin

2007-05-04 Thread sun
yes, I like this way. But when I open the vim, it is extremely slow, it needs about half minute to open a file, what is the problem? try 'vim -X' Yakov yes, it works, thanks! sun

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
-mouse_netterm +mouse_xterm and I have same problem with you, I think the vim was compiled with mouse supporting but it doesn't work on cygwin, could anyone help me? sun

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
to open X server then start a xterm, but the problem is that vim in cmd can not react to mouse. That should be great if the mouse were usable in cmd mode. sun

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
ConsoleP-12 -bg black -fg grey and in your .bashrc: export TERM=rxvt-cygwin-native your mouse should work fine with rxvt (mine does!) Cheers yes, I like this way. But when I open the vim, it is extremely slow, it needs about half minute to open a file, what is the problem? sun

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
ConsoleP-12 -bg black -fg grey and in your .bashrc: export TERM=rxvt-cygwin-native your mouse should work fine with rxvt (mine does!) Cheers Now I can use mouse to jump from one split window to another under rxvx, but how to resize one? I can't do it by mouse in my case, can you? sun

Re: how to enable mouse in vim of cygwin

2007-04-22 Thread sun
hi, but how do I know whether my Cygwin support the mouse or how to make it support. Best Regards, sun If it's a Cygwin build, you may need to make sure that Cygwin can get mouse actions (which may need running the gpm daemon, or something) and that Vim has the corresponding feature

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

2007-04-17 Thread sun
You may even try (untested) :inoremap CRCR.BS With the mapping above, you don't have to add a character then delete it: you hit the Return key, and Vim (with 'nopaste') maps it to hit Return, hit dot, hit backspace, i.e., the insertion-deletion game is played automatically

how to enable mouse in vim of cygwin

2007-04-17 Thread sun
hello, I know that both vim and gvim can jump from one window to another by clicking the mouse, also many other easy facilities. Here I am using cygwin under XP and my gvim works fine with mouse, but the vim doesn't in both cmd.ext environment and xterm cases. Please help me. Best Regards, sun

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

2007-04-16 Thread sun
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 vim. Best Regards, sun

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

2007-04-15 Thread sun
or not? I read the help file about the 'cpoption' option, it says 'set cpoption+=I' can avoid the indent deleting when move the cursor updown, but I can't let that work. Best Regards, sun

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

2007-04-15 Thread sun
If you type an arbitrary character, then delete it immediately, does the extra whitespace stay in place when you move the cursor away? yes, the spaces remain. If it does, you may resort to adding a placeholder comment, like: function MyFunc() { /* TODO: code needed

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

2007-04-15 Thread sun
Do I need always type a char then BS? Is there a better solution? I wander whether the vim option can do this automatically. The idea of the comment shown above was to leave something to remind you that you had to come back later, since, as you said, you want to leave the indent there for