我可能不小心改变了一些设置,但现在我无法弄清楚它是什么.
行为:
R)模式启动.这是本周的新内容.vim nonExistantFile.txt,Vim就会以正常模式启动到目前为止诊断的步骤:
/etc/vimrc 没有任何相关性,特别是不含有 startreplace/home/<myuser>/.vimrc 没有任何相关性,特别是不含有 startreplacealias没有任何vim关系平台信息:
其他可能相关的信息:
/etc/vimrc从我的CentOS 6.4机器复制到了Cygwin/etc/vimrc我很难过,我想不出别的事.
更新:
/etc/vimrc片段Vimrc片段(注意:这确实有unix行结尾):
" Only do this part when compiled with support for autocommands
if has("autocmd")
"<snip>
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
"<snip>
endif
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1093 次 |
| 最近记录: |