> On 24/04/10 09:47, wik wrote:
>> what is the right/quick way to close/quit vimdiff mode?
>>
>> i.e. let's say I am editing file FooBar.txt under git
>> repository, then firing up :Gdiff, review my changes in
>> vimdiff and want to get back and continue editing FooBar.txt
>> or any other file :)
>
> :diffoff!
Nice...I hadn't learned about the "!" until now. I resorted to
:windo diffoff
One more good trick to add to my bag.
> then in the split-windows which you don't want to stay open:
>
> :q
Or alternatively, if you're in the window you want to keep, you
can either use
:on
or control-W followed by "o"
:help :only
:help CTRL-w_o
If you want to close despite changes in the windows you're
closing, you can use
:on!
however this means they're 'hidden', so you still have to deal
with them upon quitting, either writing, or issuing a ":qa!".
AFAICT, there is no in-built variant of ":only" that behaves like
"q!" in each non-focused window in the current tab. I wrote a
short ":On" command once to do that but just found I didn't use
it, so I abandoned it.
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
No comments:
Post a Comment