Re: Taglist error: Error detected while processing function SNR29_Tlist_Refresh_Folds

2010-12-29 Thread Steven Woody
Hey! That works! Thank you! On 30 December 2010 06:21, Jan Larres li...@majutsushi.net wrote: Hi Steven, It seems this is a issue existing over long time.  I met the same problem when I switch to a tab that has a TagList window opened.  Does anyone know how to overcome it? try the

showmarks incorrectly highlights all my source lines

2010-12-29 Thread Steven Woody
Hi, When I installed the showmarks pluglin (the latest 2.2 version), I found all the source lines were incorrectly highlighted with my highlight/search color. Attached is screen shot. What wrong with it? I am using gvim 7.3 on Windows. Thanks in advance! -- Life is the only flaw in an

Re: How to recall what bookmarks I defined?

2010-12-28 Thread Steven Woody
On 28 December 2010 04:33, Tom Link micat...@gmail.com wrote: 1. It's hard to recall what marks I defined -- local marks and global marks. Are you looking for the :marks command? There are a few plugins that display marks as signs on the left-hand side. One of them is (my own)

Re: How to recall what bookmarks I defined?

2010-12-28 Thread Steven Woody
On 29 December 2010 04:00, Tom Link micat...@gmail.com wrote: Thanks Tom!  I found quickfixsigns does not correct refresh its status bar, showmarks does not work at all, and workmarks does not do global marks. Could you please describe how it doesn't correctly refresh the signs? I know that

Taglist error: Error detected while processing function SNR29_Tlist_Refresh_Folds

2010-12-26 Thread Steven Woody
Hi, It seems this is a issue existing over long time. I met the same problem when I switch to a tab that has a TagList window opened. Does anyone know how to overcome it? Thanks in advance. -- Life is the only flaw in an otherwise perfect nonexistence     -- Schopenhauer narke public key

How to recall what bookmarks I defined?

2010-12-26 Thread Steven Woody
Hi, I quite depend on bookmarks feature when I brows source code. But I always got following problems: 1. It's hard to recall what marks I defined -- local marks and global marks. The typical scenario is that: I want to jump back to a function definition that I just marked, I know what this

CTRL-] jumping for local variable

2010-05-08 Thread Steven Woody
Hi, When using ctags, CTRL-] does not work for local declared variables, in the case, I have to use gD to do the jumping. Does this behavior changeable? I hope I can always use CTRL-] and CTRL-T. Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke

Re: browse in the quickfix window

2010-01-12 Thread Steven Woody
2009/12/30 Michael Wookey michaelwoo...@gmail.com: 2009/12/28 Steven Woody narkewo...@gmail.com: In the quickfix window (opened by :cw), I hit a ENTER on an item and the cursor jumps to the main window, this is fine in some cases. But what do I do if I want the cursor stay on the quickfix

browse in the quickfix window

2009-12-28 Thread Steven Woody
Hi, In the quickfix window (opened by :cw), I hit a ENTER on an item and the cursor jumps to the main window, this is fine in some cases. But what do I do if I want the cursor stay on the quickfix window and just like to see the contents of the other window changes? Thanks. -- Life is the only

'*' search without cursor move

2009-12-21 Thread Steven Woody
Hi, When I use '*' command to search and highlight current word in a file, the cursor also moves to the next match. But at many cases, I hope the cursor can be stay where it is and don't move at all. Can I? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence --

Re: '*' search without cursor move

2009-12-21 Thread Steven Woody
2009/12/22 pansz panshi...@routon.com: Steven Woody 写道: Hi, When I use '*' command to search and highlight current word in a file, the cursor also moves to the next match.  But at many cases, I hope the cursor can be stay where it is and don't move at all.   Can I? Thanks. press

Re: mksess can not keep my color settings

2009-11-26 Thread Steven Woody
On Sat, Nov 7, 2009 at 4:52 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 09/10/09 15:45, Steven Woody wrote: Hi, The colors I set in after/plugin/mycolor.vim can not be kept every time when I load (:so) a  previously saved session file. How to overcome this? Thanks. To set

Re: vimgrep: not jump to finding result

2009-11-25 Thread Steven Woody
On Wed, Nov 4, 2009 at 12:01 AM, Ben Fritz fritzophre...@gmail.com wrote: On Nov 1, 12:25 am, Steven Woody narkewo...@gmail.com wrote: After vimgrep finished searching, it put findings in a quickfix buffer and open and jump to the first entry in the finding list. If you read :help

vimgrep: not jump to finding result

2009-11-01 Thread Steven Woody
Hi, After vimgrep finished searching, it put findings in a quickfix buffer and open and jump to the first entry in the finding list. But since I like to run vimgrep with a 'noauto' prefix to gain some performance improvements, so I if vimgrep open a found file for me, this file will not get

Re: vimgrep performance

2009-10-29 Thread Steven Woody
On Wed, Oct 28, 2009 at 7:23 PM, Henrik Öhman spe...@gmail.com wrote: On Oct 27, 5:40 am, Steven Woody narkewo...@gmail.com wrote: Hi, When running vimgrep, I see on the screen the buffer is quickly refreshed with many many files.  I guess this slow down the vimgrep speed.  Can

Re: vimgrep performance

2009-10-27 Thread Steven Woody
On Tue, Oct 27, 2009 at 2:26 PM, Benoit Mortgat mort...@gmail.com wrote: On Tue, Oct 27, 2009 at 05:40, Steven Woody narkewo...@gmail.com wrote: When running vimgrep, I see on the screen the buffer is quickly refreshed with many many files.  I guess this slow down the vimgrep speed.  Can

Re: vimgrep for different file types

2009-10-26 Thread Steven Woody
On Mon, Oct 26, 2009 at 1:19 PM, winterTTr winterttr@gmail.com wrote: 2009/10/26 Steven Woody narkewo...@gmail.com: HI, If I want to do :vimgrep on *.c and *.python but not any other file types, what do I do?  The problem here is I cannot use something like *.[ch] because

Re: 'fdls' takes no effect

2009-10-26 Thread Steven Woody
On Mon, Oct 26, 2009 at 9:55 PM, Ben Fritz fritzophre...@gmail.com wrote: On Oct 24, 9:58 pm, Steven Woody narkewo...@gmail.com wrote: 2) do you have an autocmd that overrides 'foldlevel'? my 'set fdls' command are put in ~/.vim/filetype.vim,  it is a autocmd itself: 'foldlevelstart

vimgrep performance

2009-10-26 Thread Steven Woody
Hi, When running vimgrep, I see on the screen the buffer is quickly refreshed with many many files. I guess this slow down the vimgrep speed. Can this behavior be disabled? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at

cscope database reload

2009-10-25 Thread Steven Woody
Hi, I am using cscope in Vim. How do I reload the cscope database after the database file has been rebuilt due to my code changes? Thanks in advance. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371

Re: cscope database reload

2009-10-25 Thread Steven Woody
On Mon, Oct 26, 2009 at 2:19 AM, Gary Johnson garyj...@spocom.com wrote: On 2009-10-26, Steven Woody wrote: Hi, I am using cscope in Vim.  How do I reload the cscope database after the database file has been rebuilt due to my code changes? I think that's what    :cs reset does

vimgrep for different file types

2009-10-25 Thread Steven Woody
HI, If I want to do :vimgrep on *.c and *.python but not any other file types, what do I do? The problem here is I cannot use something like *.[ch] because of the not same length of the extensions. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public

'fdls' takes no effect

2009-10-24 Thread Steven Woody
Hi, I set my 'fdm' to 'syntax'. And, I also wish that when my files are opened, they are default not with any fold closed. I tried to use 'set fdls=99' but the result is not changed: folders are always closed for some levels. Can you help? Thanks. -- Life is the only flaw in an otherwise

Re: 'fdls' takes no effect

2009-10-24 Thread Steven Woody
On Sun, Oct 25, 2009 at 3:39 AM, Tim Chase v...@tim.thechases.com wrote: I set my 'fdm' to 'syntax'.  And, I also wish that when my files are opened, they are default not with any fold closed.   I tried to use 'set fdls=99' but the result is not changed: folders are always closed for some

Transparent background for Windows version of gvim

2009-10-20 Thread Steven Woody
Hi, I've been using gvim in Windows. I am just wondering if there is a solution that can make my gvim transparent to my desktop background or simply have a background picture. We get this feature when we are using rxvt in Linux. I hope I can still have the similar function in Windows + Gvim.

Re: Transparent background for Windows version of gvim

2009-10-20 Thread Steven Woody
On Tue, Oct 20, 2009 at 10:16 PM, Christian Brabandt cbli...@256bit.org wrote: On Tue, October 20, 2009 2:06 pm, Steven Woody wrote: I've been using gvim in Windows.  I am just wondering if there is a solution that can make my gvim transparent to my desktop background or simply have

Re: Transparent background for Windows version of gvim

2009-10-20 Thread Steven Woody
On Wed, Oct 21, 2009 at 5:26 AM, Christian Brabandt cbli...@256bit.org wrote: Hi Steven! On Mi, 21 Okt 2009, Steven Woody wrote: On Tue, Oct 20, 2009 at 10:16 PM, Christian Brabandt cbli...@256bit.org wrote: You need the darkroom colorscheme from http://www.vim.org/scripts

Re: mksess can not keep my color settings

2009-10-10 Thread Steven Woody
loaded buffer. :help :au :help SessionLoadPost If it doesn't hurt to source your script multiple times, you could put something like... :au SessionLoadPost * :runtime after/plugin/mycolor.vim Thanks, that's a good idea! Steven Woody wrote: Hi, The colors I set in after/plugin/mycolor.vim

mksess can not keep my color settings

2009-10-09 Thread Steven Woody
Hi, The colors I set in after/plugin/mycolor.vim can not be kept every time when I load (:so) a previously saved session file. How to overcome this? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371

Determined OS type

2009-10-05 Thread Steven Woody
Hi, In my .vimrc, can I write code to determined current OS type (native Unix, Win32, cygwin, etc.)? If so, I can make my .vimrc portable to different environments. Currently I happened to have such a requirement, because on my same laptop, I sometimes run Windows version of gvim and

Re: Determined OS type

2009-10-05 Thread Steven Woody
On Tue, Oct 6, 2009 at 1:08 PM, Peter Hodge toomuchphp-...@yahoo.com wrote: Hello, You can use the has() function like this:  if has('win32')     options only for MS Windows  else     options for other environments  endif You can get into much finer detail than that. See the :help

Re: autocmd folder

2009-10-03 Thread Steven Woody
On Sat, Oct 3, 2009 at 5:09 PM, Andy Wokula anw...@yahoo.de wrote: Steven Woody schrieb: Hi, I set a autocmd for *.c file, that is au BufNewFile,BufRead *.c           call s:cfold() func! s:cfold()     set fdls=0     set fdm=syntax endfun Now, I am editing a foo.c file and folder set

autocmd folder

2009-10-02 Thread Steven Woody
Hi, I set a autocmd for *.c file, that is au BufNewFile,BufRead *.c call s:cfold() func! s:cfold() set fdls=0 set fdm=syntax endfun Now, I am editing a foo.c file and folder set correctly and automatically. Then I opened some folder in the buffer using 'za' or something like

Project Plugin: open file in a new tab

2009-10-01 Thread Steven Woody
Hi, I am using the project plugin. When press enter on a file in the project tree, the file is opened in beside window. But how do I do when I want it to be opened in another new tab? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key

Move window to another tab

2009-09-29 Thread Steven Woody
Hi, Can I move a window to another tab? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com) --~--~-~--~~~---~--~~ You received this message from the

Re: numeric argument passed to 'set xxx='

2009-09-29 Thread Steven Woody
On Tue, Sep 29, 2009 at 12:23 AM, Tinou tinou...@gmail.com wrote: On Mon, Sep 28, 2009 at 18:02, Steven Woody narkewo...@gmail.com wrote: Hi, Hello, I want to do this in my script: function IdentLvl(n) set tabstop=a:n set shiftwidth=a:n set softtabstop=a:n endfunc

Re: Move window to another tab

2009-09-29 Thread Steven Woody
On Tue, Sep 29, 2009 at 10:58 PM, Tinou tinou...@gmail.com wrote: On Tue, Sep 29, 2009 at 16:47, Steven Woody narkewo...@gmail.com wrote: Hi, Hello, Can I move a window to another tab? Thanks. http://vim.wikia.com/wiki/Move_current_window_between_tabs Kind regards, Hi, because vim

numeric argument passed to 'set xxx='

2009-09-28 Thread Steven Woody
Hi, I want to do this in my script: function IdentLvl(n) set tabstop=a:n set shiftwidth=a:n set softtabstop=a:n endfunc then, call IdentLvl(4). But it simply raises an error, a number required. What's wrong with it? Thanks. -- Life is the only flaw in an otherwise perfect

where to write 'after' scripts?

2009-09-24 Thread Steven Woody
Hi, Reading the help after-directory leads me into confusing. I tried many place to put my after script, e.g. ~/vimfiles/after/a.c. But it seems it is not loaded. So, Would you please show me that. Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke

Re: where to write 'after' scripts?

2009-09-24 Thread Steven Woody
On Thu, Sep 24, 2009 at 8:14 PM, Karthick Gururaj karthick.guru...@gmail.com wrote: On Thu, Sep 24, 2009 at 5:36 PM, Steven Woody narkewo...@gmail.com wrote: Hi, Reading the help after-directory leads me into confusing. I tried many place to put my after script, e.g. ~/vimfiles/after

Re: where to write 'after' scripts?

2009-09-24 Thread Steven Woody
On Thu, Sep 24, 2009 at 9:40 PM, Karthick Gururaj karthick.guru...@gmail.com wrote: On Thu, Sep 24, 2009 at 5:59 PM, Steven Woody narkewo...@gmail.com wrote: On Thu, Sep 24, 2009 at 8:14 PM, Karthick Gururaj karthick.guru...@gmail.com wrote: On Thu, Sep 24, 2009 at 5:36 PM, Steven

Re: where to write 'after' scripts?

2009-09-24 Thread Steven Woody
On Thu, Sep 24, 2009 at 11:44 PM, Charles Campbell charles.e.campb...@nasa.gov wrote: Steven Woody wrote: e same structure as vimfiles/ (or ~/.vim in *nix) itself. I am on windows and running windows version of vim. I just created the ~/.vim/plugin directory and move

Get a list of all key mappings

2009-09-24 Thread Steven Woody
Hi, How can I get a see a list of all currently mapped keys as well as its function? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com)

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 2:47 PM, pansz panshi...@routon.com wrote: Steven Woody 写道: Hi, I am setting an external pathname to the path variable. I found when the pathname has no spaces, it works, but it doesn't work if it has embedded spaces. Enclosing it with also doesn't work

Can not search a tag

2009-09-23 Thread Steven Woody
Hi, I found 'tselect' doesn't work for me. Assuming I have some tags starting with foo_, now I want to list them, then I type in :ts foo_ and :ts foo_*, but I would get a 'tag not found error'. So, how do I search a tag? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 3:18 PM, John Beckett johnb.beck...@gmail.comwrote: Steven Woody wrote: Thanks for the hint. By the mean, the path variable is set successfully, I check this by run 'set path?'. But 'gf' can not jump to my file. http://vim.wikia.com/wiki/Open_file_under_cursor

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 3:40 PM, Christian Brabandt cbli...@256bit.orgwrote: On Wed, September 23, 2009 8:44 am, Steven Woody wrote: I am setting an external pathname to the path variable. I found when the pathname has no spaces, it works, but it doesn't work if it has embedded spaces

Re: Can not search a tag

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 4:09 PM, Mikalai Chaly nch...@gmail.com wrote: On Wed, Sep 23, 2009 at 10:28 AM, Steven Woody narkewo...@gmail.comwrote: Hi, I found 'tselect' doesn't work for me. Assuming I have some tags starting with foo_, now I want to list them, then I type in :ts foo_ and :ts

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 5:00 PM, Christian Brabandt cbli...@256bit.orgwrote: On Wed, September 23, 2009 9:59 am, Steven Woody wrote: On Wed, Sep 23, 2009 at 3:40 PM, Christian Brabandt :set isfname+=32 But that has some drawbacks and is usually not desired. Alternatively you can

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 5:46 PM, Christian Brabandt cbli...@256bit.orgwrote: On Wed, September 23, 2009 11:05 am, Steven Woody wrote: The path was set as absolute pathname. Of course, it can be reachable. And, I just said, if the path has no embedded spaces, it works for jumping, so I

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 5:58 PM, Jürgen Krämer jottka...@googlemail.comwrote: Hi Steven Woody wrote: On Wed, Sep 23, 2009 at 2:47 PM, pansz panshi...@routon.com mailto:panshi...@routon.com wrote: Steven Woody 写道: Hi, I am setting an external pathname to the path

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 11:00 PM, Gary Johnson garyj...@spocom.com wrote: On 2009-09-23, Jürgen Krämer wrote: Steven Woody wrote: :let path = path . ',' . substitute($VARIABLE, ' ', '\\ ', 'g') This works!! Thanks. But I've not quite understand : 1. why use let instead of 'set

Re: set path for 'gf' (path name with spaces)

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 7:38 PM, Henrik Öhman spe...@gmail.com wrote: On Sep 23, 8:44 am, Steven Woody narkewo...@gmail.com wrote: Hi, I am setting an external pathname to the path variable. I found when the pathname has no spaces, it works, but it doesn't work if it has embedded

Re: c/c++ block fold

2009-09-22 Thread Steven Woody
On Tue, Sep 22, 2009 at 10:31 PM, Ben Fritz fritzophre...@gmail.com wrote: On Sep 22, 12:45 am, Steven Woody narkewo...@gmail.com wrote: :he zo :he zO :he zc :he zC :he 'fdm' These commands only result in an error: No Fold Found. If you had actually read these help

Fold on demand?

2009-09-22 Thread Steven Woody
Hi, When I set fdm=syntax, any c file I opened automatically becomes fold-ed. It's not what I want, I just hope I can fold (close) a block of code when I need to do it. Have almost all the code fold-ed look ugly. Is there a setup for this? Thanks. -- Life is the only flaw in an otherwise

A better mark plugin

2009-09-22 Thread Steven Woody
Hi, I tried bookmark plugin and the SuperMarker plugin, both are not fulfill my requirement. bookmark.vim is simply buggy and it requires use of a mouse. SuperMarker don't do more than original mark. What I hope is: 1. easily jump as the original mark 2. support use of a work as a mark, not

Re: Fold on demand?

2009-09-22 Thread Steven Woody
On Wed, Sep 23, 2009 at 12:10 AM, Gary Johnson garyj...@spocom.com wrote: On 2009-09-22, Steven Woody wrote: Hi, When I set fdm=syntax, any c file I opened automatically becomes fold-ed. It's not what I want, I just hope I can fold (close) a block of code when I need to do

c/c++ block fold

2009-09-21 Thread Steven Woody
Hi, Can I fold/unfold c/c++ code blocks? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com) --~--~-~--~~~---~--~~ You received this message from the

Make all further opened files read-only

2009-09-21 Thread Steven Woody
Hi, Sometimes when I was working in a project and with some source files opened, then I want to open another vim instance to run 'DirDiff' plug-in for the current directory against another directory (that is an old version of the project tree). When this is the case, some files will be opened by

Re: Make all further opened files read-only

2009-09-21 Thread Steven Woody
On Tue, Sep 22, 2009 at 2:01 AM, Hari Krishna Dara hari@gmail.comwrote: On Mon, Sep 21, 2009 at 10:54 AM, Tim Chase v...@tim.thechases.com wrote: project tree). When this is the case, some files will be opened by DirDiff in another vim, but it will report that files are opened by the

Re: c/c++ block fold

2009-09-21 Thread Steven Woody
On Tue, Sep 22, 2009 at 1:21 AM, Charles Campbell charles.e.campb...@nasa.gov wrote: Steven Woody wrote:, Can I fold/unfold c/c++ code blocks? Thanks. :he zo :he zO :he zc :he zC :he 'fdm' These commands only result in an error: No Fold Found. I use the space, myself

Re: vimgrep a word that is under the cursor

2009-09-20 Thread Steven Woody
On Sun, Sep 20, 2009 at 1:08 PM, John Beckett johnb.beck...@gmail.comwrote: Steven Woody wrote: :map F4 :execute vimgrep / . expand(cword) . /j *.cBarcwCR Thanks for the mapping. The only thing I don't understand is the Barcw, what does it mean and for? Thanks. The Bar means

Put the project window in right

2009-09-20 Thread Steven Woody
Hi, I've just installed the project plugin for vim, now I want to know: can I put the project window on right? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com)

vimgrep a word that is under the cursor

2009-09-19 Thread Steven Woody
Hi, If what I want to search by vimgrep is a word that is currently under the cursor. How could I save myself from typing again the word again? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371

Re: search function/variable references using ctags?

2009-09-19 Thread Steven Woody
On Sat, Sep 19, 2009 at 8:01 PM, tekion tek...@gmail.com wrote: Hi, I am just learning how to use ctags. From the looks of this thread, I gather cscope can do more than ctags. Is worth to skip learning ctags and just jump into cscope? Thanks. I think, yes. But to my project, I found

Re: vimgrep a word that is under the cursor

2009-09-19 Thread Steven Woody
On Sat, Sep 19, 2009 at 7:44 PM, John Beckett johnb.beck...@gmail.comwrote: Steven Woody wrote: If what I want to search by vimgrep is a word that is currently under the cursor. How could I save myself from typing again the word again? That point is covered here: http://vim.wikia.com

Re: vimgrep a word that is under the cursor

2009-09-19 Thread Steven Woody
On Sun, Sep 20, 2009 at 1:41 AM, Gary Johnson garyj...@spocom.com wrote: On 2009-09-19, Steven Woody wrote: Hi, If what I want to search by vimgrep is a word that is currently under the cursor. How could I save myself from typing again the word again? After you've typed :vimgrep

set path according to project

2009-09-19 Thread Steven Woody
Hi, My c project has a directory structure that puts all global header files in a separate directory 'Include', so I want to set the 'path' variable in vim to something like 'set path=.,Include', but I only want to do this for the specific project, for other projects, the path may be set other

Re: set path according to project

2009-09-19 Thread Steven Woody
On Sun, Sep 20, 2009 at 3:58 AM, Gregory Margo gma...@pacbell.net wrote: On Sun, Sep 20, 2009 at 03:02:57AM +0800, Steven Woody wrote: Hi, My c project has a directory structure that puts all global header files in a separate directory 'Include', so I want to set the 'path' variable

Re: vimgrep a word that is under the cursor

2009-09-19 Thread Steven Woody
On Sun, Sep 20, 2009 at 8:47 AM, John Beckett johnb.beck...@gmail.comwrote: Steven Woody wrote: That point is covered here: http://vim.wikia.com/wiki/Find_in_files_within_Vim I see that is cword, but while I can do ':vimgrep /\my_word\/ **/*.c, but the ':vimgrep /\cword\/ **.c

search function/variable references using ctags?

2009-09-18 Thread Steven Woody
Hi, I feel happy with ctags except one thing: while I can jump to a function/variable definition, I can not however get a list for all the references to the function/variable? How vim gurus do it? Thanks -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke

Re: search function/variable references using ctags?

2009-09-18 Thread Steven Woody
Thanks for all the replies! They are helpful. Now I am considering using ctags + cscope, because I found cscope is not so good I want to jump to the function/variable definiton, in this area, ctags is better. On the other hand, cscope is good when I need to get all references.

How to let taglist know my language maps?

2009-09-17 Thread Steven Woody
Hi, My c files have something like: #ifdef CPPCODE class { ... #endif void foo(void) { ... } #ifdef CPPCODE } #endif the only way to let ctags correctly parsing these files is to map my .c files to c++ language, this is successful. But problem raised when I begin to use taglist plugin,

Re: How to let taglist know my language maps?

2009-09-17 Thread Steven Woody
On Fri, Sep 18, 2009 at 4:18 AM, Yegappan Lakshmanan yegapp...@gmail.comwrote: Hi, On Thu, Sep 17, 2009 at 9:32 AM, Steven Woody narkewo...@gmail.com wrote: Hi, My c files have something like: #ifdef CPPCODE class { ... #endif void foo(void) { ... } #ifdef CPPCODE

Ctrl-T does not work!

2009-09-12 Thread Steven Woody
Hi, I am using cscope to browe c sources in gvim. According to the cscope manual, when I jump into a symbol, I could jump back by pressing 'Ctrl-T'. But I always get at bottom of tag stack. Could anyone here can here me how to check what's the cause of the issue? Thanks. -- Life is the only

Re: Ctrl-T does not work!

2009-09-12 Thread Steven Woody
On Sun, Sep 13, 2009 at 9:50 AM, Ben Fritz fritzophre...@gmail.com wrote: On Sep 12, 11:38 am, Steven Woody narkewo...@gmail.com wrote: Hi, I am using cscope to browe c sources in gvim. According to the cscope manual, when I jump into a symbol, I could jump back by pressing 'Ctrl-T

python interface

2009-07-29 Thread Steven Woody
Hi, Is there anyone here using vim python interface? Do you know what is the highest version of python version that works with windows's version of vim? Thanks in advance. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at

Re: python interface

2009-07-29 Thread Steven Woody
Thank you both! 2.6 to me is enough. I asked the question just because someone told me that is 2.4. Now it clear and i am happy for i can use 2.6. On Thu, Jul 30, 2009 at 8:32 AM, Ben Fritz fritzophre...@gmail.com wrote: On Jul 29, 6:03 pm, John Beckett johnb.beck...@gmail.com wrote:

Install cscope on cygwin/gvim

2009-07-27 Thread Steven Woody
Hi, My system have cygwin and gvim for windows. Now I downloaded -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com) --~--~-~--~~~---~--~~ You received this

install cscope cygwin/gvim

2009-07-27 Thread Steven Woody
Hi, My system have cygwin and gvim for windows. I just downloaded cscope and want to use it with my gvim. I compiled cscope under cygwin with no problem, but the 'make install' just failed. At the first time, the cause it that my vim is installed in a directory /cygdrive/c/Program Files/Vim

Re: install cscope cygwin/gvim

2009-07-27 Thread Steven Woody
On Tue, Jul 28, 2009 at 1:27 AM, Alessandro Antonello antonello@gmail.com wrote: Hi, My system have cygwin and gvim for windows. I just downloaded cscope and want to use it with my gvim. I compiled cscope under cygwin with no problem, but the 'make install' just failed. At the

bring two buff into diff mode

2009-05-04 Thread Steven Woody
Hi, Supposing I have two files opened in two separated buffers b1 and b2, and now I decide to compare b1 and b2 as if I open these file by 'vim -d f1 f2', how can vim help me accomplish this? Thanks. -- narke ID: narkewo...@gmail.com You can send me encrypted messages using my public key:

Re: bring two buff into diff mode

2009-05-04 Thread Steven Woody
On Mon, May 4, 2009 at 9:57 AM, John Beckett johnb.beck...@gmail.com wrote: Steven Woody wrote: Supposing I have two files opened in two separated buffers b1 and b2, and now I decide to compare b1 and b2 as if I open these file by 'vim -d f1 f2', how can vim help me accomplish this?  Thanks

Re: Reguar expression in scripts.vim

2009-04-19 Thread Steven Woody
On Sat, Apr 18, 2009 at 10:14 PM, Preben Guldberg pe...@wielders.org wrote: Steven Woody wrote: I want to use $vimruntimepath/vimfiles.vim to recognize one of my special formatted text file, that file begin with a line looks like: P05 P05.7 09-04-07                               7.4.09

Reguar expression in scripts.vim

2009-04-18 Thread Steven Woody
Hi, I want to use $vimruntimepath/vimfiles.vim to recognize one of my special formatted text file, that file begin with a line looks like: P05 P05.7 09-04-07 7.4.09 So, I wrote below in my vimfiles.vim, let s:line1 = getline(1) if s:line1 =~ ^(P[0-9]{2})

Re: Limit line width

2009-01-12 Thread Steven Woody
On Mon, Jan 12, 2009 at 9:20 PM, Tim Chase v...@tim.thechases.com wrote: When I use vim to code C/C++ or Python, I like to has each line never longer than 79 columns. Is there a easy way that vim can help? Is there some aspect that isn't solved by using :set tw=79 Hi, 'set tw' don't

Re: Limit line width

2009-01-12 Thread Steven Woody
On Tue, Jan 13, 2009 at 1:04 AM, Ben Fritz fritzophre...@gmail.com wrote: On Jan 12, 8:50 am, Steven Woody narkewo...@gmail.com wrote: What I expected is 1. When I go exceed 79 characters in a line, vim auto-wrap or auto-split for me ('gq' does a good job, but I hope it automatically

diff on a whole directory

2008-12-08 Thread Steven Woody
Hi, I want to compare difference of two whole directory (with subdirectories). Is vimdiff help in this case? I know, there is a program winmrege on windows can do this task, but I am finding a solution on Linux. Any suggest will be highly appreciated. Thanks. - narke

define a KeyMap which combines two command

2008-12-08 Thread Steven Woody
Hi, I know use '|' and combine two command, but I don't know how to do the combination when the first command is a external shell command (prefixed by a '!'). For example, I want to define F5 to run a shell command which updates my cscope database and then run ':cs reset', I tried nmap F5

Re: define a KeyMap which combines two command

2008-12-08 Thread Steven Woody
On Tue, Dec 9, 2008 at 3:24 PM, Teemu Likonen [EMAIL PROTECTED] wrote: Gary Johnson (2008-12-08 23:12 -0800) wrote: On 2008-12-09, Steven Woody wrote: nmap F5 :!./recs-sh | :cs resetCR but it failed. The :execute command can help here. nmap F5 :exe '!./recs-sh' | cs resetCR Note

How to unhide same lines in diff mode

2008-12-06 Thread Steven Woody
Hi, When I in vimdiff and sometimes want to see those hidden lines marked with +nnn lines: ... ..., what do I do? Thanks. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: How to unhide same lines in diff mode

2008-12-06 Thread Steven Woody
On Sat, Dec 6, 2008 at 7:09 PM, John Beckett [EMAIL PROTECTED] wrote: Steven Woody wrote: When I in vimdiff and sometimes want to see those hidden lines marked with +nnn lines: ... ..., what do I do? There's quite a lot of detail at: :help folding In brief (working in normal mode, i.e

Re: To many inter-character space when display Simplified Chinese (zh_CN)

2008-12-02 Thread Steven Woody
On Wed, Dec 3, 2008 at 7:49 AM, anhnmncb [EMAIL PROTECTED] wrote: On 2008-12-02, Steven Woody wrote: Hi, I am running gvim to display/edit Simplified Chinese text when locale was set to zh_CN.gbk. There are many space between Chinese characters, this looks so urgly. But this does

Re: How to list all occurrence of a identifier

2008-11-25 Thread Steven Woody
On Mon, Nov 24, 2008 at 2:39 PM, Dominique Pelle [EMAIL PROTECTED] wrote: 2008/11/24 Steven Woody [EMAIL PROTECTED]: Hi, I am using vim writing C/C++ and I want to (as one usually can in other IDE) have vim listed all occurrence of identifier. For example, there is a method foo

How to list all occurrence of a identifier

2008-11-23 Thread Steven Woody
Hi, I am using vim writing C/C++ and I want to (as one usually can in other IDE) have vim listed all occurrence of identifier. For example, there is a method foo() in a class C, I want to get know where the foo() is called in the whole project (current directory and its subdirectories). It