LoginSignup
24
15

More than 5 years have passed since last update.

vimでファイルをひらいたとき最後にカーソルがあった場所に移動する

Posted at

.vimrcに

augroup vimrcEx
  au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") |
  \ exe "normal g`\"" | endif
augroup END

ネタもと
http://advweb.seesaa.net/article/13443981.html

香り屋バージョンはもともと設定してあるそうです

24
15
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
15