vim-spell-under


Ⅰ. 插件描述

Simple vim script to force using underline for spell checker

Ⅱ. 基本信息

创建日期:  2019-09-10
使用用户:  1
Github星:  3
插件作者:  Osamu Aoki

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'osamuaoki/vim-spell-under'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'osamuaoki/vim-spell-under'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'osamuaoki/vim-spell-under'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/osamuaoki/vim-spell-under

Ⅳ. 文档说明

# spell-under

<!-- vim: set sw=2 sts=2 et tw=78 ft=markdown: -->

This spell-under is a simple vim plugin to change highlight scheme of
spelling checker to use "UNDERLINE" instead of default "REVERSE" for color
terminals when :colorscheme is set.

This enables you to use both :syntax on and :set spell by avoiding
unreadable text situation due to matched reversed background color and syntax
highlighted foreground text color.

Installation

The latest version of spell-under is available on github. [1]

This plugin follows the vim standard runtime path structure, and as such it
can be installed with a variety of plugin managers:

Plugin ManagerInstall with...
Pathogencd ~/.vim/bundle/vim-spell-under && git clone https://github.com/osamuaoki/vim-spell-under<br/>Remember to run :Helptags to generate help tags
VundlePlugin 'osamuaoki/vim-spell-under'
PlugPlug 'osamuaoki/vim-spell-under'
VAMcall vam#ActivateAddons([ 'vim-spell-under' ])
Deincall dein#add('osamuaoki/vim-spell-under')
minpaccall minpac#add('osamuaoki/vim-spell-under')
manualcopy all of the files into your ~/.vim directory
manual (vim>=8)cd ~/.vim/pack/somepath/start && git clone https://github.com/osamuaoki/vim-spell-under <br/>Remember to run :Helptags to generate help tags

The author of this script uses an extended installation approach based on
"manual (vim>8)" with a shell script based menu system. See
osamuaoki/dot-vim.

How it works

Once spell-under is installed, Vim behaves as follows:

  • If g:spell_under is unset in .vimrc, spell-under executes
    :colorscheme murphy and fixes up spell checker to use "UNDERLINE".
  • If .vimrc has let g:spell_under='<scheme>', spell-under executes
    :colorscheme <scheme> and fixes up spell checker to use "UNDERLINE".
  • If .vimrc has let g:spell_under='NONE', spell-under doesn't executes
    :colorscheme <scheme>.
  • When you execute colorscheme <scheme> from any scipt after parsing this
    plugin or from the vim command prompt, vim sets colorscheme accordingly and

fixes up spell checker to use "UNDERLINE".

  • If g:loaded_spell_under is set to 1, spell-under plugin has been
    loaded.

License

MIT License. Copyright (c) 2019 Osamu Aoki

添加新评论