Re: CTRL-]/CTRL-T to detect existing windows/buffers when switching to/from tags

2011-09-07 Thread David Chanters
Hi, On 7 September 2011 04:44, Ben Fritz wrote: > Here's a more complete script, but I haven't tested it either: > >          nnoremap! :call SmartTagSearch() Vim seemingly doesn't like this line. In adding your example and sourcing it in Vim, I see: Error detected while processing /tmp/foo.v

Re: CTRL-]/CTRL-T to detect existing windows/buffers when switching to/from tags

2011-09-06 Thread David Chanters
On 5 September 2011 23:31, sc wrote: > many denizens of mail lists take offense at such requests and > respond rudely -- how you respond is up to you I'm mildly annoyed that this thread has been hijacked without the subject field of the email changed to reflect the fact that we're now talking abo

Re: CTRL-]/CTRL-T to detect existing windows/buffers when switching to/from tags

2011-09-05 Thread David Chanters
hi, On 5 September 2011 22:37, Jacky Liu wrote: > Of course this can be achieved: > >        nnoremap! :call SmartTagSearch() > >        function! s:SmartTagSearch() >                if {file opened in current tab} >                        " switch to that window >                        " locat

CTRL-]/CTRL-T to detect existing windows/buffers when switching to/from tags

2011-09-05 Thread David Chanters
Hi, [Please CC me...] I'm wondering if anyone has any tips for how to efficiently jump between tags in Vim? I'll outline my scenario. At the moment, pressing CTRL-] on a function definition works great, and vim will jump to that tag, switching to a new file in the same window if need be. What

vim to resize split windows when size of xterm's window changes

2011-04-29 Thread David Chanters
hi all, i often realize that when I change the size of xterm with vim running inside of it, i end up always pressing: ^w= To get vim to resize all splits equally. is there a way to get vim to do this for me once i've resized xterm? TIA, David -- You received this message from the "vim_use"

Restrict :make output to quickfix window?

2010-12-20 Thread David Chanters
Hi all, i am sure i remember reading once, a quickfix tip which did the following: Bound via a function key: * Run :make * Spawns quickfix window * The :make ouput appears as its compiling in the quickfix window * If the command produced no errors, the quickfix window would close * Otherwise it

Re: Language-specific omnicompletion

2010-12-20 Thread David Chanters
hi, On 20 December 2010 14:38, bouchta...@gmail.com wrote: > Hello David, I see you're struggling with omnicppcompletion too :) > > I found this: > autocmd FileType python set omnifunc=pythoncomplete#Complete > autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS > autocmd FileT

Language-specific omnicompletion

2010-12-20 Thread David Chanters
Hi, If the answer to this is buried in the help files, please point me there. But I was wondering if its possible for omnicompletion to be more cleverer than it is at the moment. For instance, if I have this: struct foo { char *name; char *address; int age; }; And I type: foo-> a

Arranging split windows

2010-05-21 Thread David Chanters
Hi all -- I am wondering if its possible to arrange split windows like this: Sometimes i split vim horizontally -- and then i often wished i could create a vertical split on one side of the screen that spanned the entire height of vim -- but of course splitting vim vertically creates a new split

Re: sticky split windows across tabs

2009-10-15 Thread David Chanters
2009/10/11 David Chanters : > I thought it might be possible to "cheat" and use TabLeave / TabEnter > events, but I lack any kind of knowledge about how to do this, not > knowing any vimscript or anything. I think I read that the NERD plugin can do something like this, b

sticky split windows across tabs

2009-10-11 Thread David Chanters
Hi all, Thinking about things like the quickfix window, it's often a nice idea of mine to want to have a split window "stick" or "follow" me across tabs -- I don't use tabs often in vim to edit files (I prefer split windows) but is there a means to do this? I thought it might be possible to "che

Toggling quickfix window

2009-10-11 Thread David Chanters
hi all, i had a look through the vim tips wiki to see if I can do the following with the quickfix window, but didn't see anything relevant -- but if I have missed it, do please point me there. I do a lot of C programming. What I would like is the following to happen -- a way of binding "make!"

Re: Function name in status bar

2009-08-28 Thread David Chanters
2009/8/28 Mikalai Chaly : > > > If you are using taglist plugin, there is such ability. Just open :help > taglist.txt and search for "status line". > > Here is an example from taglist help file: > >     :set statusline=%<%f%=%([%{Tlist_Get_Tagname_By_Line()}]%) > > Looks pretty nice, at least in .

Re: Rolodeck (WAS: Re: session: settings lost)

2009-07-23 Thread David Chanters
2009/7/22 Tony Mechelynck : > You could reorder your split-windows by means of Ctrl-W or > ":wincmd " commands, maybe in a WinEnter autocommand, but that > would be like reordering the file cards in your Rolodex every time you used > them so that the last-used one came first -- untidy. Imagine a

Rolodeck (WAS: Re: session: settings lost)

2009-07-22 Thread David Chanters
Hi -- 2009/7/20 Tony Mechelynck : > Normally the current window uses the StatusLine highlight group for its > status bar, all others use the StatusLineNC group. Setting these is > normally the job of your colorscheme. Thanks -- that's all dusted now. I do have some other questions regarding you

Re: session: settings lost

2009-07-20 Thread David Chanters
On Jul 20, 10:31 am, Tony Mechelynck wrote: > -- yes, I have a lot of split-windows. All the options (other than the > keymap for one of the windows) are set by my vimrc, including the > "Rolodex vim" setting (":set wh=9 wmh=0") to allow the window in use > to be big enough for practical use.