> You can use the command defined in the tip, with the FileChangedShell
> autocmd event.
>
> See the :help, obviously, and also the few tips we have on the wiki
> for examples of use:
>
> http://vim.wikia.com/wiki/Special:Search?search=filechangedshell

thank you very match, it's work with this event.
After external change, when i press u, vim revert me to n-1 change,
it's nice.
But it appears to me that vim don't remember first n-1 line:column
position because it always bring me to 0:0 position on first n-1 step
back, after external change.
how i can cure it ? how i can modify reload function to avoid this
disagreable moment?
function code:
"------------------------------------------------
function! ReloadFile(is_force_pos)
  " save the current cursor position
  let position = getpos(".")
  " delete all lines
  %d
  " read the file back into the buffer
  r
  " remove the superfluous line
  1d
  " restore the cursor position if a:is_force_pos
  "if a:is_force_pos
    call setpos(".", position)
  "endif
endfunc
"------------------------------------------------



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

Reply via email to