它就像永远一样,我真的不知道如何在我的vim中禁用这个打击。
目前我在我的ubuntu中使用gvim。可能我的vimrc设置有问题。
尝试谷歌已经好几个月都找不到任何解决方案。请帮忙
以下是我的vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-vinegar'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'scrooloose/syntastic'
Plugin 'flazz/vim-colorschemes'
Plugin 'chrisbra/Recover.vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
Plugin 'posva/vim-vue'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"let base16colorspace=256 " Access colors present in 256 colorspace
"set t_Co=256 " 256 color mode
"set background=dark
"colorscheme base16-ocean
let g:ctrlp_max_files=0
let g:ctrlp_max_depth=40
" Store temporary files in a central spot
let vimtmp = $HOME . '/.tmp/' . getpid()
silent! call mkdir(vimtmp, "p", 0700)
let &backupdir=vimtmp
let &directory=vimtmp
syntax on
syntax enable
"colorscheme Monokai
"colorscheme zenburn
"colorscheme gruvbox
"colorscheme lucius
colorscheme Monokai
"colorscheme getafe
"colorscheme CandyPaper
"colorscheme tomorrow-night-eighties
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
set guitablabel=%N:%M%t " Show tab numbers
set hlsearch
"set incsearch
set relativenumber
set laststatus=2
set linespace=15
set clipboard=unnamedplus
set guifont=Monospace\ 12
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
map <C-F12> :tabe ~/.vimrc<CR>
map <C-F11> :tab sp<CR>:e ~/.vim/snippets/php.snippets<CR>
map <C-F10> :tab sp<CR>:e sudo /etc/hosts<CR>
map <C-F9> :tab sp<CR>:e ~/Code/AdminLTE-2.3.0/pages/UI/icons.html<CR>
答案 0 :(得分:0)
在改变colorscheme到gruvbox并添加此行后,
let html_no_rendering=1
突然间,删除线全部消失了。但我需要选择的颜色方案不是我想要的颜色方案。无论如何,如果有人可以提供建议。请评论。
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-vinegar'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'scrooloose/syntastic'
Plugin 'flazz/vim-colorschemes'
Plugin 'chrisbra/Recover.vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
Plugin 'posva/vim-vue'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"let base16colorspace=256 " Access colors present in 256 colorspace
"set t_Co=256 " 256 color mode
"set background=dark
"colorscheme base16-ocean
let g:ctrlp_max_files=0
let g:ctrlp_max_depth=40
" Store temporary files in a central spot
let vimtmp = $HOME . '/.tmp/' . getpid()
silent! call mkdir(vimtmp, "p", 0700)
let &backupdir=vimtmp
let &directory=vimtmp
syntax on
syntax enable
"colorscheme Monokai
"colorscheme zenburn
"colorscheme gruvbox
"colorscheme lucius
colorscheme gruvbox
"colorscheme getafe
"colorscheme CandyPaper
"colorscheme tomorrow-night-eighties
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
set guitablabel=%N:%M%t " Show tab numbers
set hlsearch
"set incsearch
set relativenumber
set laststatus=2
set linespace=15
set clipboard=unnamedplus
set guifont=Monospace\ 12
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
let html_no_rendering=1
map <C-F12> :tabe ~/.vimrc<CR>
map <C-F11> :tab sp<CR>:e ~/.vim/snippets/php.snippets<CR>
map <C-F10> :tab sp<CR>:e sudo /etc/hosts<CR>
map <C-F9> :tab sp<CR>:e ~/Code/AdminLTE-2.3.0/pages/UI/icons.html<CR>