我使用gnuplot来显示数据,我通常在vim中编辑文件。如果可能的话,我希望有一些语法高亮显示。我试图安装几个插件与vim插件gnuplot,但我似乎不能使它工作。以下是我的.vimrc
文件的内容:
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'flazz/vim-colorschemes'
Plug 'junegunn/seoul256.vim'
Plug 'junegunn/vim-easy-align'
Plug 'vim-scripts/gnuplot.vim'
call plug#end()
if has("syntax")
syntax on
endif
let mapleader=","
set cindent
set statusline+=col: %c,
set ruler
set nu
set showcmd
set nocompatible
set nosol
set background=dark
set autoread
set wildmenu
set lazyredraw
set magic
set showmatch
set mat=10
set noerrorbells
set novisualbell
set autoindent
set smartindent
set cursorline
set ic
set hls
set lbr
set shiftwidth=4
set expandtab
set tabstop=4
set t_Co=256
set shortmess+=A
set ff=unix
set clipboard=unnamedplus
set splitbelow
set termwinsize=10x0
set mouse=i
set formatoptions+=w
set splitright
set autochdir
set textwidth=180 wrapmargin=0
set colorcolumn=180
"
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
""
colorscheme Monokai
"
augroup gnuplot
autocmd!
autocmd FileType gp :nnoremap <Leader>c :w<CR>:!gnuplot %<CR>
autocmd FileType gp :nnoremap <Leader>v :!okular $(awk 'BEGIN {FS="