Undoable file reload

2014-01-02 Thread Efraim Yawitz
Hi,

For a long time now, I have been using Vim alongside VisualStudio by
doing all my editing in Vim and compiling and debugging in VS.  If I
save a file in Vim and it is open in VS, VS asks me if I want to
reload, and I say yes.  I know some people would find working this way
clumsy, but I actually have no problem with it.

Now I am starting to use Eclipse for Java, and I am very impressed
with all the conveniences it provides in terms of completing and
creating code, and I am considering a mode of about half Eclipse and
half Vim, using Vim for regular text-editing tasks and Eclipse for its
code completion, etc.  The problem is that if I save something from
Eclipse and then reload the file in Vim, I lose all my undos to that
point.  What I would like is the possibility to undo the reload
itself, and I'm considering implementing this at the Vim code level.
I have two questions:

1)Does this or something similar already exist, and I'm just missing it?

2)If not, is it doable, and what would I have to change?

I suppose I would want this to be some kind of option, like :set
undoablereload, say, so that the default functionality would still be
available.

Thanks very much.

Ephraim

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Undoable file reload

2014-01-02 Thread Efraim Yawitz
On 1/2/14, Efraim Yawitz  wrote:
>
> 1)Does this or something similar already exist, and I'm just missing it?
>

Oops!! I just tried this in Vim 7.4 and I see that :set undoreload is
already there as of 7.3!  Sorry for bothering you!

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Undoable file reload

2014-01-02 Thread Ben Fritz
On Thursday, January 2, 2014 4:23:57 AM UTC-6, Efraim Yawitz wrote:
> Now I am starting to use Eclipse for Java, and I am very impressed
> 
> with all the conveniences it provides in terms of completing and
> 
> creating code, and I am considering a mode of about half Eclipse and
> 
> half Vim, using Vim for regular text-editing tasks and Eclipse for its
> 
> code completion, etc. 

Have you tried/did you know about the eclim project? eclim.org provides a 
combined Eclipse/Vim plugin that lets Vim use all the code completion, 
navigation, and some other features of Eclipse by communicating with Eclipse in 
the background. I'm very happy with the C/C++ features, but I actually 
understand the java support is even better.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Undoable file reload

2014-01-06 Thread Efraim Yawitz
On Thu, Jan 2, 2014 at 4:42 PM, Ben Fritz  wrote:

> Have you tried/did you know about the eclim project? eclim.org provides a
> combined Eclipse/Vim plugin that lets Vim use all the code completion,
> navigation, and some other features of Eclipse by communicating with
> Eclipse in the background. I'm very happy with the C/C++ features, but I
> actually understand the java support is even better.
>
> Thank you.  I plan to have a look at it.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.