|
发表于 2021-5-25 14:50:28
|
显示全部楼层
请问我按照教程来保存退出后vim编辑器没有任何反应,连默认的高亮都没有。我去百度上查询了自己也没能解决。想到第一课是还用这个vim抄了小甲鱼的代码统计行数,太容易出错了。检查了好多遍才抄对
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set cindent
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
" Only do this part when compiled with support for autocommands
if has("autocmd")
augroup redhat
autocmd!
" In text files, always limit the width of text to 78 characters
" autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |(这里只粘贴了一个的代码)
|
|