vis*_*isu 2 vim bash archlinux
当我尝试使用. .vimrc它给与错误:
bash: runtime! command not found
bash: syntax: command not found
bash: filetype: command not found
bash: filetype: command not found
Run Code Online (Sandbox Code Playgroud)
它只是无缘无故地随机停止工作,其他所有点文件似乎都可以正常工作。将.vimrc包含此:
runtime! archlinux.vim
set number
set noswapfile
set nobackup
syntax on
set autoindent
set smartindent
set smarttab
filetype plugin on
filetype indent on
set incsearch
set hlsearch
Run Code Online (Sandbox Code Playgroud)
当它出现在评论中时,它还会给出一个错误。
的.(或source)命令是bash读取一个文件(其应该是一个有效的命令bash脚本)在当前shell实例的上下文。
该.vimrc文件是不是一个bash脚本,它的东西是阅读和处理vim,而不是bash。
尝试使用Pascal编译器编译C代码没有什么不同。该文件内容不适合您要使用的内容。.vimrc下次您运行vim实例时,应自动提取该文件。
~/.vimrc是运行时配置文件,vim即在vim启动该文件并且所有语句都是vim特定的时将读取该文件。
当你试图source在该文件中bash,你所得到的错误,因为bash没有任何的理念vim如特定的语句runtime,syntax等等。
| 归档时间: |
|
| 查看次数: |
2637 次 |
| 最近记录: |