How to jump to an existing tab page when jumping to an tag?

2007-06-05 Thread Weihua JIANG
How to jump to an existing tab page when jumping to an tag? I use ctags for my c++ files. Normally, I opened many of such c++ files in different tag pages. But, when I using Ctrl-] to jump a tag under cursor, gvim will open the target file in current tab page, even when the target file

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the

RE: how to ..... compiler

2007-06-04 Thread Jagpreet
Hi vimmers, Any help for my query? Regards Jagpreet -Original Message- From: Jagpreet [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:00 PM To: vim@vim.org Subject: how to . compiler Hi There, I can't make use of built-in compiler facility in vim. Tried

RE: how to ..... compiler

2007-06-04 Thread panshizhu
Jagpreet [EMAIL PROTECTED] 写于 2007-06-04 15:46:54: But again not much details mentioned in the doc file(csupport.txt) about external make. To use the external make, just :set makeprg=make then you can use :make to call external make. How can I run my makefile(external) within vim. Further

Re: how to ..... compiler

2007-06-04 Thread Gary Johnson
. But again not much details mentioned in the doc file(csupport.txt) about external make. How can I run my makefile(external) within vim. Further How to check and add ,if missing, compiler support in vim( say HP-UX xompiler aCC). Everything you need to know should be here, :help

Re: how can I add this feature to vim!!

2007-06-04 Thread vim
Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
[EMAIL PROTECTED] wrote: Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run

Re: how can I add this feature to vim!!

2007-06-01 Thread Marc Weber
Hi jaywee, The simplest way is using a mapping inoremap { {cr}escO which should do what you want. But I myself find this terrible annying because it always inserts those closing braces. That's why I've written some kind of context sensitive completion

Re: how can I add this feature to vim!!

2007-06-01 Thread Yeti
On Fri, Jun 01, 2007 at 01:05:53PM +0800, jaywee wrote: mostly when I press {, I have to press one more } after, because they are always appears at the same time! the same as () [], and also the quote mark(). so I wonder how can I add the feature that when I insert { or the other

how to ..... compiler

2007-05-31 Thread Jagpreet
(csupport.txt) about external make. How can I run my makefile(external) within vim. Further How to check and add ,if missing, compiler support in vim( say HP-UX xompiler aCC). I'm using Console version of vim via putty. Regards, Jagpreet

how can I add this feature to vim!!

2007-05-31 Thread jaywee
mostly when I press {, I have to press one more } after, because they are always appears at the same time! the same as () [], and also the quote mark(). so I wonder how can I add the feature that when I insert { or the other punctuations above, it will automatically add } !!! besides, I

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-22 Thread Gary Johnson
On 2007-05-22, Natesh Kedlaya [EMAIL PROTECTED] wrote: From: Gary Johnson [EMAIL PROTECTED] Sent: Monday, May 21, 2007 5:30:52 PM On 2007-05-21, Natesh Kedlaya [EMAIL PROTECTED] wrote: Hi, I am using Vim6.3 My cscope db was built on a source directory structure 'src1' which was

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-22 Thread Natesh Kedlaya
, Natesh - Original Message From: Gary Johnson [EMAIL PROTECTED] To: Natesh Kedlaya [EMAIL PROTECTED] Cc: vim@vim.org Sent: Tuesday, May 22, 2007 9:05:30 AM Subject: Re: How to alter the cscope search results in the vim so that they refer to the right files. On 2007-05-22, Natesh Kedlaya

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-22 Thread Navdeep Parhar
. The cscope db still has referrers to the /dir1 based on which it was built. I don't want to rebuild the cscope db with the new mount point. How do I make use of the existing cscope db by somehow modifying the cscope search results to point to /dir2 instead of /dir1? I would like to see

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-22 Thread Gary Johnson
the errors and the renaming of 'cscopeprg', though, it looks more like something changing 'cscopeprg' than a problem with the sed command. I don't have an explanation for the errors from /etc/vimrc or /home/myname/.vimrc yet. I don't know how the contents of /usr/bin/cscope would affect the behavior

How to write a map for gcc?

2007-05-22 Thread Ting Jiang
Hi, everyone: I am a beginner user of vim and I use it to write my C/C++ code in Ubuntu. Every time I finished a C code and I want to compile it, I have to type: :gcc -o mycfile.out mycfile.c How can I map this command to a shortcut key like F12? Thanks a lot. TJ

Re: How to write a map for gcc?

2007-05-22 Thread Swaroop C H
I am a beginner user of vim and I use it to write my C/C++ code in Ubuntu. Every time I finished a C code and I want to compile it, I have to type: :gcc -o mycfile.out mycfile.c How can I map this command to a shortcut key like F12? See `:help :make` and `:help compiler-select` and `:help :map`

Re: How to write a map for gcc?

2007-05-22 Thread Mark Woodward
Hi TJ, On Tue, 2007-05-22 at 21:56 -0500, Ting Jiang wrote: Hi, everyone: I am a beginner user of vim and I use it to write my C/C++ code in Ubuntu. Every time I finished a C code and I want to compile it, I have to type: :gcc -o mycfile.out mycfile.c How can I map this command

Re: How to get value of ~ (last used replace-to string) in script

2007-05-21 Thread Yakov Lerner
On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-21 Thread Yakov Lerner
=auto All produced the same error: E25: GUI cannot be used: Not enabled at compile time I chose not to perform make install in order to preserve the integrity of my existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least

Re: How to get value of ~ (last used replace-to string) in script

2007-05-21 Thread Antony Scriven
On 5/21/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/21/07, Antony Scriven [EMAIL PROTECTED] wrote: On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick

Re: How to alter the cscope search results in the vim so that they refer to the right files.

2007-05-21 Thread Gary Johnson
On 2007-05-21, Natesh Kedlaya [EMAIL PROTECTED] wrote: Hi, I am using Vim6.3 My cscope db was built on a source directory structure 'src1' which was mounted on /dir1. If I use this cscope db in my vim, my cscope query would yeild following results. [...] Any pointers appreciated. You

How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Yakov Lerner
In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov

How to compile graphical Vim on Mandriva 2007?

2007-05-20 Thread Steve Litt
existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least some diagnostic tests I can use to narrow down the problem? Thanks SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-20 Thread Yakov Lerner
install in order to preserve the integrity of my existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least some diagnostic tests I can use to narrow down the problem? You need to install gtk2-devel package. Also, the x11-devel package

Re: How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Tim Chase
In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? While I've wondered this in the past, and don't have an answer at the moment, I found a small bug in the help text (or in the :help command) while hunting. In Vim7, if I type :help

Re: How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Yakov Lerner
On 5/21/07, Tim Chase [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? While I've wondered this in the past, and don't have an answer at the moment, It seems natural to patch expand() function to return

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-20 Thread Steve Litt
cannot be used: Not enabled at compile time I chose not to perform make install in order to preserve the integrity of my existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least some diagnostic tests I can use to narrow down

Re: How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread A.J.Mechelynck
Tim Chase wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? While I've wondered this in the past, and don't have an answer at the moment, I found a small bug in the help text (or in the :help command) while hunting. In Vim7, if I type

Re: How to compile graphical Vim on Mandriva 2007?

2007-05-20 Thread A.J.Mechelynck
: Not enabled at compile time I chose not to perform make install in order to preserve the integrity of my existing Vim 7.0 that came with Mandriva 2007. Anyone know how to compile graphical Vim on Mandriva 2007, or at least some diagnostic tests I can use to narrow down the problem? You need

Re: How to get value of ~ (last used replace-to string) in script

2007-05-20 Thread Antony Scriven
On 5/20/07, Yakov Lerner [EMAIL PROTECTED] wrote: In a script, how do I get the value of ~ -- the last used replace-to string, as used in s//~/ ? Yakov Quick hack. --Antony fun! EchoTilde() $ put='' s/^/~/ let tilde = getline('.') d echo tilde endfun

Re: How to wrap sentences?

2007-05-19 Thread Matthew Winn
On Fri, 18 May 2007 20:24:17 -0600, Russell Bateman [EMAIL PROTECTED] wrote: As far as I know, Vim won't autowrap blocks of text you paste in. Something could be written I suppose, but I don't know of something already doing it. It depends how you paste. If you type +p in normal mode

how to display a column line at righ margin?

2007-05-19 Thread Ken YANG
hi all, can you guide me how to display a column line at right margin, e.g. 80, as gedit and eclipse do. i find this thread in mails archive: http://tech.groups.yahoo.com/group/vim/message/33159 but the method told in this thread is useless, it has some erros when i start vim in gnome

Re: how to display a column line at righ margin?

2007-05-19 Thread Yakov Lerner
On 5/19/07, Ken YANG [EMAIL PROTECTED] wrote: hi all, can you guide me how to display a column line at right margin, e.g. 80, as gedit and eclipse do. i find this thread in mails archive: http://tech.groups.yahoo.com/group/vim/message/33159 but the method told in this thread is useless

Re: how to display a column line at righ margin?

2007-05-19 Thread Ken YANG
Yakov Lerner wrote: On 5/19/07, Ken YANG [EMAIL PROTECTED] wrote: hi all, can you guide me how to display a column line at right margin, e.g. 80, as gedit and eclipse do. i find this thread in mails archive: http://tech.groups.yahoo.com/group/vim/message/33159 but the method told

Re: How to wrap sentences?

2007-05-19 Thread Russell Bateman
Matthew Winn wrote: On Fri, 18 May 2007 20:24:17 -0600, Russell Bateman [EMAIL PROTECTED] wrote: As far as I know, Vim won't autowrap blocks of text you paste in. Something could be written I suppose, but I don't know of something already doing it. It depends how you paste. If you

Re: How to wrap sentences?

2007-05-19 Thread Georg Dahn
Hi! I frequently copy and paste text from web pages and would like to break lines at (say) 72 without splitting words. It sounds strange, but I use to do the following: :set noai nosi tw=72 fo Then I copy the text of the web page to the clibboard, enter Insert mode, and do C-R* to paste the

How to wrap sentences?

2007-05-18 Thread Larry Alkoff
I frequently copy and paste text from web pages and would like to break lines at (say) 72 without splitting words. My preference is to do this either on the command line or by ESC :command vim wrapmargin=40 testfile does not work. The best thing I've seen so far is, in vi :set wm=0 or

Re: How to wrap sentences?

2007-05-18 Thread Larry Alkoff
suggests gggqG but I can't see how to do this from either command line or EX command. vim wrapmargin=40 testfile does not work. The best thing I've seen so far is, in vi :set wm=0 or :set wm=5 both of which cause vi to wrap lines at 0 or 5 characters from the _right_ margin which comes

Re: How to wrap sentences?

2007-05-18 Thread Larry Alkoff
I'm posting the solution to my own question from experiments tonight. To easily force VIM to paste text wrapped at 72 characters do the following: 1. Copy the old ~/.vimrc to ~/.vimrcp 2. Edit ~/.vimrcp and comment out the existing line autocmd FileType text setlocal textwidth=78 and

Re: How to efficiently type polytonic Greek?

2007-05-17 Thread Guido Milanese
Sorry to answer so late. I use (g)vim to write my papers and books, with a lot of quotations from ancient Greek. It works like a charm! Steps: * make sure to set encoding to utf8 * see if you have a keymap called (exactly) greek_utf-8.vim. In my system (Linux Mandriva) it is

Re: How to efficiently type polytonic Greek?

2007-05-17 Thread A.J.Mechelynck
Guido Milanese wrote: [...] Important: use a font with a decently complete set of chars. In Linux you should be able to use Gentium, I believe, but personaly I prefer a fixed font and use Bitstream\ Vera\ Sans\ Mono with excellent results. [...] Except in the GTK+2 version of gvim,

Re: How to efficiently type polytonic Greek?

2007-05-17 Thread Guido Milanese
On Friday 18 May 2007 05:23, A.J.Mechelynck wrote: Yes, Bitstream Vera Sans Mono is a good-looking font. For any language whose glyphs are not present, try Courier New if it exists on your system. It is not so good-looking but it has a large number of different alphabets. Not CJK double-width

how to get the highlighting status for search command?

2007-05-15 Thread Simson Liu
Dear all, The search command '*' in normal mode will highlight the cursor word. The command ':noh' in command mode will stop the highlighting. But how to get the current highlighting status for the search command '*' in a vim script? Can anyone give me some hints? Thanks. Lht

How to make a replacer function

2007-05-14 Thread fREW
How does one make a function that will surround a visual selection? Example: Hello, my name is fREW. Select my name and say, :Bang() and the text should now be Hello, bmy name/b is fREW. I presume it will have something to do with using ' and ', but beyond that I am not really sure. Thanks

Re: How to make a replacer function

2007-05-14 Thread Ian Tegebo
On 5/14/07, fREW [EMAIL PROTECTED] wrote: How does one make a function that will surround a visual selection? Example: Hello, my name is fREW. Select my name and say, :Bang() and the text should now be Hello, bmy name/b is fREW. I presume it will have something to do with using

Re: How to make a replacer function

2007-05-14 Thread fREW
On 5/14/07, Ian Tegebo [EMAIL PROTECTED] wrote: On 5/14/07, fREW [EMAIL PROTECTED] wrote: How does one make a function that will surround a visual selection? Example: Hello, my name is fREW. Select my name and say, :Bang() and the text should now be Hello, bmy name/b is fREW. I

How to efficiently type polytonic Greek?

2007-05-12 Thread Informationen
Hi, could somebody tell me how to type complex Greek characters like ῷ or ἅ. I am using vim7.0 with multibyte and myltilang enabled on Kubuntu 6.06. In other applications I change the language to polytonic greek and use a composer key. Is there a similar way in vim possible, too? How can I

Re: How to efficiently type polytonic Greek?

2007-05-12 Thread Micah Cowan
Informationen wrote: Hi, could somebody tell me how to type complex Greek characters like ῷ or ἅ. I am using vim7.0 with multibyte and myltilang enabled on Kubuntu 6.06. In other applications I change the language to polytonic greek and use a composer key. Is there a similar way in vim

Re: How to efficiently type polytonic Greek?

2007-05-12 Thread A.J.Mechelynck
Informationen wrote: Hi, could somebody tell me how to type complex Greek characters like ῷ or ἅ. I am using vim7.0 with multibyte and myltilang enabled on Kubuntu 6.06. In other applications I change the language to polytonic greek and use a composer key. Is there a similar way in vim

Re: how to open an already opened file into an new tab?

2007-05-10 Thread lin q
whose path is f2 location/../i/f4. Any trick to do this? From: Taylor Venable [EMAIL PROTECTED] To: lin q [EMAIL PROTECTED] CC: vim@vim.org Subject: Re: how to open an already opened file into an new tab? Date: Tue, 8 May 2007 17:54:57 -0400 On Tue, 08 May 2007 15:45:40 -0600 lin q [EMAIL

Re: how to open an already opened file into an new tab?

2007-05-10 Thread Micah Cowan
lin q wrote: Great, this works. Another question, :tabe % can open the same file, is there an easy way to open another file which locates in the same or very similar directory of the current file? For example, I am viewing f2 now, and I want to open f3 which is of same directory of f2

Re: how to open an already opened file into an new tab?

2007-05-10 Thread Franco Saliola
On 5/10/07, lin q [EMAIL PROTECTED] wrote: Great, this works. Another question, :tabe % can open the same file, is there an easy way to open another file which locates in the same or very similar directory of the current file? For example, I am viewing f2 now, and I want to open f3 which is of

how to open an already opened file into an new tab?

2007-05-08 Thread lin q
Hi, Let us say VIM already have f1 and f2 opened in 2 tabs, when I opened f2 I use this command: vim --servername GVIM1 --remote-tab f2 This causes that on the tabline, the full path of f2 shows after some abbreviation. Now I want to open f2 into another tab, but I do not find an easy

Re: how to open an already opened file into an new tab?

2007-05-08 Thread Taylor Venable
On Tue, 08 May 2007 15:45:40 -0600 lin q [EMAIL PROTECTED] wrote: This causes that on the tabline, the full path of f2 shows after some abbreviation. Now I want to open f2 into another tab, but I do not find an easy way to do that. If use :tabe, I need to type in the full path of f2,

Re: how to open an already opened file into an new tab?

2007-05-08 Thread A.J.Mechelynck
lin q wrote: Hi, Let us say VIM already have f1 and f2 opened in 2 tabs, when I opened f2 I use this command: vim --servername GVIM1 --remote-tab f2 This causes that on the tabline, the full path of f2 shows after some abbreviation. Now I want to open f2 into another tab, but I do not

Re: how to get gvim to open a file over ssh?

2007-05-05 Thread Martin Krischik
Am Freitag 04 Mai 2007 schrieb A.J.Mechelynck: IIUC, in this case every transfer requires inputting a username and password -- at least if you cannot configure the server and client yourself, see I never type a password wenn using netrw. See: http://en.wikipedia.org/wiki/Ssh-agent Wikipedia

Re: how to enable mouse in vim of cygwin

2007-05-04 Thread A.J.Mechelynck
Lucida 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-05-04 Thread Albie Janse van Rensburg
rxvt -ls -sr -sl 1500 -fn Lucida 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

Re: how to enable mouse in vim of cygwin

2007-05-04 Thread Gary Johnson
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? You should be able to drag the status lines and vertical dividers to resize the split windows. I can confirm that this seems to not work, using the cygwin Vim version

Re: how to enable mouse in vim of cygwin

2007-05-04 Thread Yakov Lerner
On 5/4/07, sun [EMAIL PROTECTED] wrote: I'm using cygwin and rxvt. It works quite well, since you don't need to start an X server for the application - it just runs. Put the following in your cygwin launcher (cygwin_rxvt.bat for me): @echo off C: chdir C:\cygwin\bin set

Re: how to enable mouse in vim of cygwin

2007-05-04 Thread A.J.Mechelynck
one split window to another under rxvx, but how to resize one? I can't do it by mouse in my case, can you? You should be able to drag the status lines and vertical dividers to resize the split windows. I can confirm that this seems to not work, using the cygwin Vim version when run in rxvt

how to get gvim to open a file over ssh?

2007-05-04 Thread ben lieb
In ubuntu linux: I have a remote (ssh) connection through nautilus (gui file manager). When I right-click a file, I can open, edit and save the file in text editor without any problem. When I open the file in gvim, it is empty. What can I do to solve this? Thanks for any help

Re: how to get gvim to open a file over ssh?

2007-05-04 Thread A.J.Mechelynck
ben lieb wrote: In ubuntu linux: I have a remote (ssh) connection through nautilus (gui file manager). When I right-click a file, I can open, edit and save the file in text editor without any problem. When I open the file in gvim, it is empty. What can I do to solve this? Thanks for any help

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
and the mouse doesn't work for me, either, in neither rxvt locally nor in xterm over an ssh connection. Unfortunately, I don't have the time to investigate it further at the moment. HTH, Gary the mouse state of my vim --version is: +mouse +mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread Yakov Lerner
On 4/18/07, sun [EMAIL PROTECTED] wrote: 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

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
You need to set ':set mouse=all'. Then your vim-in-xterm will reacti to the mouse. yes, that works. The cmd box is different case, I beleive that mouse events are not passed to vim in cmd box. Yakov en..., I was used to opening cygwin by cmd.exe, and also vim in it. It is not necessary to

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread Albie Janse van Rensburg
sun wrote: You need to set ':set mouse=all'. Then your vim-in-xterm will reacti to the mouse. yes, that works. The cmd box is different case, I beleive that mouse events are not passed to vim in cmd box. Yakov en..., I was used to opening cygwin by cmd.exe, and also vim in it. It is not

Re: how to enable mouse in vim of cygwin

2007-05-03 Thread sun
I'm using cygwin and rxvt. It works quite well, since you don't need to start an X server for the application - it just runs. Put the following in your cygwin launcher (cygwin_rxvt.bat for me): @echo off C: chdir C:\cygwin\bin set SHELL=/bin/bash rxvt -ls -sr -sl 1500 -fn Lucida

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

How to set -P argument for the cscope being run by the vim6.3

2007-05-02 Thread Natesh Kedlaya
/cscope/cscope.out none As one can see from the output, the prepend path is set to none. How do I set the prepend path to some value that I want? I am able to use -P argument of cscope outside the vim to get the intended results but, not in the vim. I am using the Vim 6.3. Please help. Thanks

Re: How to set -P argument for the cscope being run by the vim6.3

2007-05-02 Thread Taylor Venable
On Wed, 2 May 2007 09:05:38 -0700 (PDT) Natesh Kedlaya [EMAIL PROTECTED] wrote: As one can see from the output, the prepend path is set to none. How do I set the prepend path to some value that I want? I am able to use -P argument of cscope outside the vim to get the intended results

Re: How to set -P argument for the cscope being run by the vim6.3

2007-05-02 Thread Natesh Kedlaya
if the CSCOPE_DB env is set the prepend path stuff does not work. Thanks, Natesh - Original Message From: Taylor Venable [EMAIL PROTECTED] To: Natesh Kedlaya [EMAIL PROTECTED] Cc: vim@vim.org Sent: Wednesday, May 2, 2007 10:40:28 AM Subject: Re: How to set -P argument for the cscope being run

Re: [HELP]how to delete all comment line in one command line(C/C++)?

2007-04-27 Thread Tim Chase
How to delete all comment line in one command line(C/C++)? Before: // /*comment1*/ // int Fun() { int a = 5; // number 1; int b = 10;// number 2; return a+b;// number 1 + number 2; } After: int Fun() { int a = 5; int b = 10; return a+b

how to determine what filetype vim is using

2007-04-23 Thread Andrew Falanga
is not correct. How do set up the .vimrc file to key off of the currently detected file type and disable the cindent option? Andy

Re: how to enable mouse in vim of cygwin

2007-04-23 Thread Gary Johnson
regards, Tony. hi, but how do I know whether my Cygwin support the mouse or how to make it support. You can find out either by executing :version within vim or by executing vim --version at the bash prompt. My Cygwin vim :version report includes the following: +mouse

Re: how to determine what filetype vim is using

2007-04-23 Thread Yakov Lerner
, when I edit TCL scripts, the indenting behavior is not correct. How do set up the .vimrc file to key off of the currently detected file type and disable the cindent option? Try au FIleType tcl set nocindent , that assuming your filetype is spelled 'tcl'. To check how exactly filetype

Re: how to determine what filetype vim is using

2007-04-23 Thread A.J.Mechelynck
the starting for all files, when I edit TCL scripts, the indenting behavior is not correct. How do set up the .vimrc file to key off of the currently detected file type and disable the cindent option? Try au FIleType tcl set nocindent :au FileType tcl setlocal nocindent otherwise it'll

Re: -----how can i unsubscribe the vim alias

2007-04-23 Thread A.J.Mechelynck
. I tried sending email to [EMAIL PROTECTED], but it was bounced back. How do I get help? Thanks. As far as I know (but I May be wrong), there is no flesh-and-bones person administering the Vim newsgroups. IIUC (but again, maybe I understand wrong), there is an old PC acting as a router

-----how can i unsubscribe the grop

2007-04-22 Thread Bob Li
thanks!

Re: -----how can i unsubscribe the grop

2007-04-22 Thread A.J.Mechelynck
will get an auto-reply to that mail. It is important that you read that auto-reply, because it will tell you how to make the unsubscribe final (with a secret code contained in the auto-reply email). This is to avoid that a malevolent third party would unsubscribe you (or me) without our permission

Re: -----how can i unsubscribe the grop

2007-04-22 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Bob Li wrote: thanks! To unsubscribe from the Vim list: 1. Send an email to [EMAIL PROTECTED] -- the Subject and body can [...] Oops! [EMAIL PROTECTED]

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

How can I get rid of this popup?

2007-04-20 Thread cga2000
I recently installed vim 7.x and I'm very impressed with all the new features, especially the new tab stuff .. On the other hand, I'm sorry to say that there is _ONE_ feature that's literally driving me _NUTS_. If I hit the CTRL-P combo by accident .. p is very close to [ .. and I use CTRL-[ a

Re: How can I get rid of this popup?

2007-04-20 Thread Taylor Venable
of the absolute evils of the web .. I'm unsure why this should have become a default feature of the current version vim and I sincerely hope it will cease to be the default with the next release. I don't really see how this relates to the Internet, but I for one find this feature highly useful

Re: How can I get rid of this popup?

2007-04-20 Thread A.J.Mechelynck
cga2000 wrote: I recently installed vim 7.x and I'm very impressed with all the new features, especially the new tab stuff .. On the other hand, I'm sorry to say that there is _ONE_ feature that's literally driving me _NUTS_. If I hit the CTRL-P combo by accident .. p is very close to [ ..

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

2007-04-17 Thread sun
whenever you hit Return in Insert mode. What more do you want? ...or at least that's how I think it works. o, now I get your point. This mapping indeed inserts the space. However, I think the disavantage of this way is one has to append all inserting commands, e.g, o O, with .BS. Best regards

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

2007-04-17 Thread Andy Wokula
Gary Johnson schrieb: On 2007-04-16, fREW [EMAIL PROTECTED] wrote: On 4/16/07, Tom Whittock [EMAIL PROTECTED] wrote: What I need is to always keep the auto-indented spaces. So next time I can start to insert from the spaced cursor. Alternatively use cc to edit the ostensibly blank line.

[help]How to auto complete (),[]?

2007-04-17 Thread 陈方荣
Hi all, When type '(',how to autocommplete ')'?And move the cursor in the (_). Also the '{', autocommplete the '}' in a new line. And insert the cursor in a new line. Like this: { _ } Thanks. --- Best regards 陈方荣

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 enable mouse in vim of cygwin

2007-04-17 Thread A.J.Mechelynck
sun wrote: 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

Re: [help]How to auto complete (),[]?

2007-04-17 Thread Winfred Lu
Please search before you ask. http://tech.groups.yahoo.com/group/vim/message/29162

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

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

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

2007-04-16 Thread Tom Whittock
What I need is to always keep the auto-indented spaces. So next time I can start to insert from the spaced cursor. Alternatively use cc to edit the ostensibly blank line. This will open the line using the correct auto indent. Get into this habit and it doesn't matter what state the line was

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

2007-04-16 Thread fREW
On 4/16/07, Tom Whittock [EMAIL PROTECTED] wrote: What I need is to always keep the auto-indented spaces. So next time I can start to insert from the spaced cursor. Alternatively use cc to edit the ostensibly blank line. This will open the line using the correct auto indent. Get into this

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

2007-04-16 Thread A.J.Mechelynck
Return, hit dot, hit backspace, i.e., the insertion-deletion game is played automatically whenever you hit Return in Insert mode. What more do you want? ...or at least that's how I think it works. Best regards, Tony. -- Speer's 1st Law of Proofreading: The visibility of an error

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

2007-04-15 Thread sun
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 indent-space regardless whether the line is empty

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

2007-04-15 Thread A.J.Mechelynck
sun wrote: 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 indent-space regardless whether the line

  1   2   3   4   5   6   7   8   >