Vim从最后一次关闭的光标开始
发布时间:2020-12-15 22:12:04 所属栏目:安全 来源:网络整理
导读:当我上次退出给定文件时,如何使Vim始终从我所处的线开始? 解决方法 把它放在. vimrc中: " When editing a file,always jump to the last cursor position au BufReadPost * if ! exists("g:leave_my_cursor_position_alone") | if line("'"") 0 line
当我上次退出给定文件时,如何使Vim始终从我所处的线开始?
解决方法
把它放在.
vimrc中:
" When editing a file,always jump to the last cursor position au BufReadPost * if ! exists("g:leave_my_cursor_position_alone") | if line("'"") > 0 && line ("'"") <= line("$") | exe "normal g'"" | endif | endif 然后你可以使用:let g:leave_my_cursor_position_alone = 1在运行时停用该功能. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Azure Messaging-ServiceBus Messaging消息队列技术系列1-基
- AngularJs httpprovider.interceptors responseError的状态
- Windows平台下采用PowerShell使用rman自动备份oracle并上传
- bash – 如何让putty相应地改变它的光标形状?
- 从零开始学Shell(一)
- amazon-web-services – COPY没有指定源文件
- linux中,下载完关机。
- scala – 持久性的唯一性在akka-persistence中
- JAX-WS HandlerChain使用详解
- bash – 有没有办法使链接可点击在OSX终端?