07/09/02 01:54:37
>>515
:e $VIMRUNTIME/vimrc_example.vim
から引用します。
> " When editing a file, always jump to the last known cursor position.
> " Don't do it when the position is invalid or when inside an event handler
> " (happens when dropping a file on gvim).
> autocmd BufReadPost *
> \ if line("'\"") > 0 && line("'\"") <= line("$") |
> \ exe "normal! g`\"" |
> \ endif