LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 520|回复: 0

求助:打开文件时VIM不能跳到原先的光标处

[复制链接]
发表于 2007-3-4 15:18:57 | 显示全部楼层 |阅读模式
如题,已经在vimrc中设好:


  1. " Uncomment the following to have Vim jump to the last position when
  2. " reopening a file

  3. if has("autocmd")
  4.   au BufReadPost * if line("'"") > 0 && line("'"") <= line("$")
  5.     \| exe "normal g'"" | endif
  6. endif
复制代码



我使用的版本是7.0.164。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表