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 otherw

Re: Taglist error: Error detected while processing function 29_Tlist_Refresh_Folds

2010-12-29 Thread Steven Woody
Hey! That works! Thank you! On 30 December 2010 06:21, Jan Larres 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 attached patch, i

Re: How to recall what bookmarks I defined?

2010-12-28 Thread Steven Woody
On 29 December 2010 04:00, Tom Link 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 an earlier

Re: How to recall what bookmarks I defined?

2010-12-28 Thread Steven Woody
On 28 December 2010 04:33, Tom Link 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) quickfixsigns. But ther

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 fun

Taglist error: Error detected while processing function 29_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 at

Re: CTRL-] jumping for local variable

2010-05-09 Thread Steven Woody
On 9 May 2010 12:27, Tony Mechelynck wrote: > On 09/05/10 05:57, Steven Woody wrote: >> >> 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?

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 : > 2009/12/28 Steven Woody : >> 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 ju

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

Re: '*' search without cursor move

2009-12-21 Thread Steven Woody
2009/12/22 pansz : > 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

'*' 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 -- Schopenha

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 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? >>

Re: vimgrep: not jump to finding result

2009-11-25 Thread Steven Woody
On Wed, Nov 4, 2009 at 12:01 AM, Ben Fritz wrote: > > > > On Nov 1, 12:25 am, Steven Woody 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-10-31 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 pr

Re: vimgrep performance

2009-10-29 Thread Steven Woody
On Wed, Oct 28, 2009 at 7:23 PM, Henrik Öhman wrote: > > On Oct 27, 5:40 am, Steven Woody 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.  C

Re: vimgrep performance

2009-10-27 Thread Steven Woody
On Tue, Oct 27, 2009 at 2:26 PM, Benoit Mortgat wrote: > On Tue, Oct 27, 2009 at 05:40, Steven Woody 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.  Ca

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 http://s

Re: 'fdls' takes no effect

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

Re: vimgrep for different file types

2009-10-26 Thread Steven Woody
On Mon, Oct 26, 2009 at 1:19 PM, winterTTr wrote: > > 2009/10/26 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] becaus

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

Re: cscope database reload

2009-10-25 Thread Steven Woody
On Mon, Oct 26, 2009 at 2:19 AM, Gary Johnson 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'

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 (narkewo...

Re: 'fdls' takes no effect

2009-10-24 Thread Steven Woody
On Sun, Oct 25, 2009 at 3:39 AM, Tim Chase 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 levels. > > It m

'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: Transparent background for Windows version of gvim

2009-10-20 Thread Steven Woody
On Wed, Oct 21, 2009 at 5:26 AM, Christian Brabandt wrote: > > Hi Steven! > > On Mi, 21 Okt 2009, Steven Woody wrote: > >> >> On Tue, Oct 20, 2009 at 10:16 PM, Christian Brabandt >> wrote: >> > " You need the darkroom colorscheme from >> &

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 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 >

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: mksess can not keep my color settings

2009-10-10 Thread Steven Woody
ed 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: >&

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 (narkew

Re: Determined OS type

2009-10-05 Thread Steven Woody
On Tue, Oct 6, 2009 at 1:08 PM, Peter Hodge 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 has() for more

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 sometimes

Re: autocmd & folder

2009-10-03 Thread Steven Woody
On Sat, Oct 3, 2009 at 5:09 PM, Andy Wokula 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=syn

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 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 at ht

Re: Move window to another tab

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

Re: numeric argument passed to 'set xxx='

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

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 "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 none

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: 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

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 > wrote: > > On Thu, Sep 24, 2009 at 8:14 PM, Karthick Gururaj > > wrote: > >> > >> On Thu, Sep

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 > wrote: > > > > Hi, > > Reading the "help after-directory" leads me into confusing. I tried many > place to

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 nark

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 wrote: > > On Sep 23, 8:44 am, Steven Woody 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: 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 wrote: > > On 2009-09-23, Jürgen Krämer wrote: > > > Steven Woody wrote: > > > :let &path = &path . ',' . substitute($VARIABLE, ' ', '\\ ', 'g') > > > > > Thi

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 wrote: > > > Hi > > Steven Woody wrote: > > On Wed, Sep 23, 2009 at 2:47 PM, pansz > <mailto:panshi...@routon.com>> wrote: > > > > > > Steven Woody 写道: > > > Hi, > >

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 wrote: > > 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 > >

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 wrote: > > 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 des

Re: Can not search a tag

2009-09-23 Thread Steven Woody
On Wed, Sep 23, 2009 at 4:09 PM, Mikalai Chaly wrote: > On Wed, Sep 23, 2009 at 10:28 AM, Steven Woody wrote: > >> 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 &qu

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 wrote: > > 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

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 wrote: > > 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://

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 nonexisten

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 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. Enc

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

2009-09-22 Thread 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. What's wrong with that? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence

Re: Fold on demand?

2009-09-22 Thread Steven Woody
On Wed, Sep 23, 2009 at 12:10 AM, Gary Johnson 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

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 ju

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 perfe

Re: c/c++ block fold

2009-09-22 Thread Steven Woody
On Tue, Sep 22, 2009 at 10:31 PM, Ben Fritz wrote: > > > > On Sep 22, 12:45 am, Steven Woody wrote: > > > :he zo > > > :he zO > > > :he zc > > > :he zC > > > :he 'fdm' > > > > These commands only result in an error:

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

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 wrote: > > On Mon, Sep 21, 2009 at 10:54 AM, Tim Chase 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 first > vim > >> instance and

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 Di

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 "vi

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) --~--~-~--~--

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 wrote: > > Steven Woody wrote: > >> :map :execute "vimgrep /" . expand("") . > >> "/j *.c"cw > > > > Thanks for the mapping. The only thing I don't understand is > > the

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 wrote: > > Steven Woody wrote: > >> That point is covered here: > >> http://vim.wikia.com/wiki/Find_in_files_within_Vim > > > > I see that is , but while I can do ':vimgrep > > /\/ **/*.c, but the &

Re: set path according to project

2009-09-19 Thread Steven Woody
On Sun, Sep 20, 2009 at 3:58 AM, Gregory Margo 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 wan

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 way

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 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? > > A

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 wrote: > > 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 her

Re: search function/variable references using ctags?

2009-09-19 Thread Steven Woody
On Sat, Sep 19, 2009 at 8:01 PM, tekion 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 cscope many ti

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 (narkewo...@

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. --~--~-~-

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 p

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 wrote: > > Hi, > > On Thu, Sep 17, 2009 at 9:32 AM, Steven Woody > wrote: > > Hi, > > My c files have something like: > > #ifdef CPPCODE > > class { > > ... #endif > > void foo(void) >

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, which

Re: Ctrl-T does not work!

2009-09-12 Thread Steven Woody
On Sun, Sep 13, 2009 at 9:50 AM, Ben Fritz wrote: > > > > On Sep 12, 11:38 am, Steven Woody 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 > 'Ctr

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: 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 wrote: > > > > On Jul 29, 6:03 pm, "John Beckett" wrote: > > > > On 2009-06-04 Roland Puntaier posted

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 http://subkeys.pgp.ne

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.

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" t

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 mess

Re: bring two buff into diff mode

2009-05-04 Thread Steven Woody
On Mon, May 4, 2009 at 9:57 AM, John Beckett 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 accomp

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: Reguar expression in scripts.vim

2009-04-19 Thread Steven Woody
On Sat, Apr 18, 2009 at 10:14 PM, Preben Guldberg 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                  

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}) \1\.[0-9

ctrl-T doesn't work for cscope

2009-03-30 Thread Steven Woody
Hi, I am using cscope and 'ctrl-\ s' can jumps in but 'ctrl-T' can not bring me back. It reported an error something like "tag stack empty". I tried using 'ctrl-]' to jump, in this case 'ctrl-T' works. Could anyone help me if I want to use 'ctrl-T' and other cscope commands. Thanks. ps. The k

Re: Limit line width

2009-01-12 Thread Steven Woody
On Tue, Jan 13, 2009 at 1:04 AM, Ben Fritz wrote: > > > > On Jan 12, 8:50 am, Steven Woody 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, b

Re: Limit line width

2009-01-12 Thread Steven Woody
On Mon, Jan 12, 2009 at 9:20 PM, Tim Chase 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 prevent too

Limit line width

2009-01-12 Thread Steven Woody
Hi, 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? Thanks. - narke --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit htt

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 :!./recs-sh | :cs reset >>> >>> but it failed. > >> The :execute com

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 to run a shell command which updates my cscope database and then run ':cs reset', I tried nmap :!./recs

Re: diff on a whole directory

2008-12-08 Thread Steven Woody
On Tue, Dec 9, 2008 at 12:11 PM, Marc Weber <[EMAIL PROTECTED]> wrote: > > On Tue, Dec 09, 2008 at 11:03:03AM +0800, Steven Woody wrote: >> I want to compare difference of two whole directory (with >> subdirectories). Is vimdiff help in this case? I know, there is

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 --~--~-~--~~

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

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: To many inter-character space when display Simplified Chinese (zh_CN)

2008-12-02 Thread Steven Woody
On Wed, Dec 3, 2008 at 1:34 AM, Dennis Benzinger <[EMAIL PROTECTED]> wrote: > > Hi Steven! > > Am 02.12.2008 17:51, Steven Woody schrieb: >> [...] >> I am thinking why gvim can not handle fonts just as good as other >> programs such firefox where the C

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 Chines

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

2008-12-02 Thread Steven Woody
On Tue, Dec 2, 2008 at 10:17 PM, bill lam <[EMAIL PROTECTED]> wrote: > No idea, mine just look ok. BTW you forgot to give details such as os > being used, fonts and a screenshot. > > -- > regards, OS is slackware 12.1; guifonts in gvim set to "Lucida Sans Typewriter 12", please find the attachment

  1   2   >