Tuesday, September 1, 2009

How to check file is modified or open in 2 or more windows?

I want to write a function which do
if the file is modified
if there is 2 or more windows of that file
exec 'e .'
else
split window
exec 'e .'
endif
endif

Thanks
Miao


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment