¹æ¹ý1)
/etc/vim/vimrc ÆÄÀÏ ¸¶Áö¸·¿¡ ¾Æ·¡ ³»¿ë »ðÀÔ
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
ÂüÁ¶ example ÆÄÀÏ
# vim /usr/share/vim/vim74/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).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
¹æ¹ý2)
Ctrl + O : ÀÌÀü¶óÀÎ À§Ä¡·Î À̵¿
Ctrl + I : ¾ÕÀ¸·Î À̵¿
-->> ÀÌÀü¿¡ ¿¾ú´ø ´Ù¸¥ ÆÄÀϷεµ ³Ñ¾î°¡±âµµ ÇÔ