5

私は Neovim の新しいユーザーであり、Ruby の構文強調表示を有効にする方法を理解しようとしています。

どの設定を編集すればよいですか?

編集:

これは私の現在の設定です:

➜  ~  cat ~/.nvimrc
filetype plugin indent on
syntax on
set tabstop=2
set number
set noswapfile
" Automatically indent on new lines
set autoindent
" Copy the indentation of the previous line if auto indent doesn't know what to do
set copyindent
" Indenting a line with >> or << will indent or un-indent by 2
set shiftwidth=2
" Pressing tab in insert mode will use 4 spaces
set softtabstop=2
" Use spaces instead of tabs
set expandtab
" [SEARCH]
:set incsearch
:set hlsearch
" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>

そして、これは Neovim をロードするときに表示されるエラーです。

➜  ~  nvim test.rb
Error detected while processing /Users/user/.nvimrc:
line    2:
E484: Can't open file /usr/local/Cellar/neovim/HEAD/share/vim/syntax/syntax.vim
Press ENTER or type command to continue
4

1 に答える 1