Re: Is there have a tool that remember the trace I got through?

2009-09-21 Thread Thomas Adam
2009/9/22 renjun wang : > use  "Ctrl+]" and "Ctrl+t" I can easily get the location of the > functions defined.But is there  have a tool that can print this trace I > got through? Can  it output  to a file ? This might be of interest to you: http://www.vim.org/scripts/script.php?script_id=2368 -

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

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

Is there have a tool that remember the trace I got through?

2009-09-21 Thread renjun wang
hi forks, I am a new vim user.I am reading linux kernel use ctags and taglist.I found it very useful when I trace the functions in the source code.For example: sys_brk()->do_munmap()->zap_page_range()->zap_omd_range()->zap_pte_range()-> free_pte()->free_page_ang_swap_cache()->delete_from_swap_

Re: au bufwrite not working?

2009-09-21 Thread Tony Mechelynck
On 05/09/09 17:40, bill lam wrote: > > (typo) > I found that BufWrite event is _not_ triggered when press :w or :x but > BufWriteCmd event is triggered instead. Not sure what is the > difference of these 2 events. > See :help BufWriteCmd :help Cmd-event The difference is that if

Re: encoding autodetection in MS Windows

2009-09-21 Thread Tony Mechelynck
On 03/09/09 11:51, Casufi wrote: > > Hello. > Is it possible to configure encoding autodetection for vim in MS > Windows? I can't find enca win32 binaries to configure it in usual way. By default, on Windows as on any other platform, Vim will start with 'encoding' set to your locale, i.e., to th

Re: Make all further opened files read-only

2009-09-21 Thread CHEN Cheng
On Mon, Sep 21, 2009 at 05:26:53PM +0800, Steven Woody wrote: > 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 th

Re: map to in quickfix window

2009-09-21 Thread Daniel Fetchinson
>> >> > In the quickfix window I mostly do instead of >> >> > because mostly I want to open the matching file in a new window. This >> >> > all works fine. >> >> > >> >> > But now I wanted to map to so that by >> >> > pressing >> >> > the matching filename would open in a new window (the old

Re: changing what counts as a paragraph

2009-09-21 Thread Matthew Winn
On Sun, 20 Sep 2009 10:30:11 -0400, Fuzzy Logic wrote: > Right. My point is that most people reading the thread will have > already read the previous messages. So, top-posting only slows down > the people who haven't, which taking less time for those who have. Untrue. Of the messages I've read

Re: ANN: Notes plugin version 2.0 release

2009-09-21 Thread Raúl Núñez de Arenas Coronado
Saluton Hari :) Hari Krishna Dara skribis: > I would like to announce the 2.0 release of notes for the first time > here on vim_use list, as I think it is ready for prime time. Thanks for the plugin! I'm going to test it, since the programs I'm using now for taking notes are not bad but I miss

Re: Make all further opened files read-only

2009-09-21 Thread Hari Krishna Dara
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 ask me for a confirm.  So I am thinking, in the later vim >> instance, if

Re: How to get special characters

2009-09-21 Thread Tim Chase
> gvim > encoding=latin1 > guifont= I suspect the "latin1" is the bulk of the problem, and if your default font doesn't support a full compliment of characters, that would compound the issue. Try setting your encoding to "utf-8" and then possibly re-pasting. This is where Tony usually jumps

Re: Make all further opened files read-only

2009-09-21 Thread Tim Chase
> 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 ask me for a confirm. So I am thinking, in the later vim > instance, if I can however tell vim that all the further opened file w

Re: Mac OS and Unix -- VIM

2009-09-21 Thread Hari Krishna Dara
On Mon, Sep 21, 2009 at 4:16 AM, Tony Fitzgerald wrote: > > On Mon, 21 Sep 2009, Yongwei Wu wrote: > >> Did you miss that GUI VIM exists on Mac OS X, is easy to use, is >> maintained regularly, and has a lot of users? I myself am a happy user >> of MacVim. > > I've refrained from comment so far b

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

Re: syntax highlighting guide

2009-09-21 Thread Hari Krishna Dara
On Sun, Sep 20, 2009 at 7:20 PM, pansz wrote: > > > Hoss 写道: >> All, >> >> Is there a good guide somewhere to writing .vim files, the ones that >> show up in your /installation/colors directory? > > AFAIK, there are no good documents on writing color schemes. The one > which "sucks less" is $VIMR

Re: c/c++ block fold

2009-09-21 Thread Charles Campbell
Steven Woody wrote:, > > Can I fold/unfold c/c++ code blocks? Thanks. :he zo :he zO :he zc :he zC :he 'fdm' I use the space, myself, with the following map: (to do both opening and closing) nno :exe 'silent! normal! '.((foldclosed('.')>0)? 'zMzx' : 'zc') Regards, Chip Campbell --~

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

Re: get back the file that was open before :make

2009-09-21 Thread Ben Fritz
On Sep 19, 1:01 pm, Daniel Fetchinson wrote: > Another thing I was always > wondering about is whether it was possible to have in quickfix mode > the errors listed first, and the warnings would only come after them? > Typically I fix the errors first and only then turn to warnings and > also ma

Re: Mac OS and Unix -- VIM

2009-09-21 Thread Jeremy Conlin
On Mon, Sep 21, 2009 at 5:16 AM, Tony Fitzgerald wrote: > > On Mon, 21 Sep 2009, Yongwei Wu wrote: > > > Did you miss that GUI VIM exists on Mac OS X, is easy to use, is > > maintained regularly, and has a lot of users? I myself am a happy user > > of MacVim. > > I've refrained from comment so fa

Re: :close question

2009-09-21 Thread Alessandro Antonello
Hi, Tony. > If you want to close _all_ windows of _any_ tabs containing buffer 5, > which is not 'modified' (maybe because you just saved it to disk, or > maybe because you viewed it but did not alter it), use ":bun 5". This > command accepts one or more buffer numbers, or one non-numeric buffer

Re: changing what counts as a paragraph

2009-09-21 Thread Fuzzy Logic
To each, their own, Gene. On Mon, Sep 21, 2009 at 2:09 AM, Gene Kwiecinski wrote: > but me?, sorry, I'm just not going to be bothered, because I don't have the > time nor patience for it. --~--~-~--~~~---~--~~ You received this message from the "vim_use" mailli

Re: Running some commands on file save

2009-09-21 Thread Tim Chase
> About the mappings... > what is the difference between the following? i.e. why does one work > and the other not? > and what would each of them do? (the only difference is the bar so > don't hurt your eyes looking for anything else ;) ) > map :%s/\r/\r/ge%s/\s\+$//e > map :%s/\r/\r/ge | %s/\

Re: Running some commands on file save

2009-09-21 Thread benjamwelker
Ahhh, ok, so I forgot to tell it which files (or file types) to act on, correct? About the mappings... what is the difference between the following? i.e. why does one work and the other not? and what would each of them do? (the only difference is the bar so don't hurt your eyes looking for anyth

Re: Mac OS and Unix -- VIM

2009-09-21 Thread Tony Fitzgerald
On Mon, 21 Sep 2009, Yongwei Wu wrote: > Did you miss that GUI VIM exists on Mac OS X, is easy to use, is > maintained regularly, and has a lot of users? I myself am a happy user > of MacVim. I've refrained from comment so far because I've only been a Mac user for a few months, having migrated f

Re: Return code of a shell command

2009-09-21 Thread Tim Chase
> Get I somehow get the return code of an exectued shell command > (started via ":!"). > > What I'm trying to achieve is: > When the command fails, the "hit-enter"-prompt should be shown, so one > can read the error message. But when the command runs succesfully, the > "hit-enter" should be skipp

Return code of a shell command

2009-09-21 Thread marcb
Hello, Get I somehow get the return code of an exectued shell command (started via ":!"). What I'm trying to achieve is: When the command fails, the "hit-enter"-prompt should be shown, so one can read the error message. But when the command runs succesfully, the "hit-enter" should be skipped aut

Re: latex-suite, custom macro: no proper indentation

2009-09-21 Thread krisse
*sigh* Nevermind. Some dumbass had forgotten to set proper tabstop in the modeline. /the Dumbass On 21 Sep, 10:27, krisse wrote: > Hi, > > I'm hoping there's some latex-suite users -- or perhaps just someone > with enough IMAP knowledge -- out there to help me with the following: > > I've set u

Re: Mac OS and Unix -- VIM

2009-09-21 Thread Yongwei Wu
2009/9/21 pansz : > > For any open-source software, developers maintain it because they need > it themselves. It really doesn't matter how many *users* want the > software, what really counts is how many *developers* want the software. Basically correct. > If it really is hard to use the gui ver

latex-suite, custom macro: no proper indentation

2009-09-21 Thread krisse
Hi, I'm hoping there's some latex-suite users -- or perhaps just someone with enough IMAP knowledge -- out there to help me with the following: I've set up a custom macro, adding "\item", like so: call IMAP('§i', "\=Tex_InsertItem()\", 'tex') It basically works, but it indents differently than

Re: Why the MACRO I defined can not highlight?

2009-09-21 Thread A. S. Budden
2009/9/21 stone : > > > 2009/9/16 A. S. Budden >>Okay!  I think I've figured out what's going on.  Please can you >>download the latest version from >>http://sites.google.com/site/abudden/contents/Vim-Scripts/ctags-highlighting >>and let me know whether it works? >>There's a note (that I'd previo