방금 vimrc를 어떻게 고장 냈는지는 알 수 없습니다. 나는 솔라리스를 설치했지만 구문 강조는 더 이상 자동으로 작동하지 않습니다. 편집기를 열 때마다 "구문 사용 가능"을 다시 입력해야합니다."구문 사용 가능"은 vimrc가 아닌 정상 모드에서만 작동합니다.
내 vimrc가 아래와 같습니다.
" ----- BASICS -----
set nocompatible "compatible with vi
if !exists("g:syntax_on")
syntax enable
endif
filetype on "QS not sure about this one !
set number "add line numbers
set showcmd "show command in bottom bar
set cursorline "highlight cursor line
set wildmenu "commandline tab completion
set mouse=a "make vim useable with mouse
set backspace=indent,eol,start " make backspace work like in most editors.
set showmatch " highlight matching [{()}]
" ----- COLORSCHEME -----
let g:solarized_termcolors = 256
set background=light
colorscheme solarized
" ------ NAVIGATION -----
" long line navigation in normal mode
nnoremap j gj
nnoremap k gk
" ------ TABS & SPACES -----
set tabstop=4 "number of visual spaces per TAB
set shiftwidth=4 "size of indent with tab
set softtabstop=0
set noexpandtab "if you are using tab character inside your source
"code - these are defensive settings to avoid conversion
" ---------Searching ----------
set incsearch " search as characters are entered
set hlsearch " highlight matches
" ----------Folding -----------
set foldenable " enable folding
set foldlevelstart=10 " open most folds by default
set foldnestmax=10 " 10 nested fold max
nnoremap <space> za
"space open/closes folds
set foldmethod=indent " fold based on indent level
set smartindent " indents your code automatically
filetype off " required
256 색을 지원하는 터미널 에뮬레이터를 사용하고 있고 사용자 지정 솔라 화 된 터미널 색을 사용하고 싶지 않으십니까? –
': verbose set syntax '는 무슨 뜻입니까? –