vimで色を使用する

テキストエディタはカラーパレットで動作するように設計されていないように見えます。通常、特別なプログラムを使用します。たとえば、この種の優れたプログラムの1つはGPickです。

せいぜい特殊なHTML編集プログラムは、リストまたはカラーホイールから色を選択するためのシンプルなダイアログを提供します。 しかし、ここでのvimは、拡張性、汎用性、マウスなしで1つのキーボードで作業できるという優れた品質も示しています。



いくつかのプラグインが何らかの方法でvimの色で機能しますが、私にとって便利なのは2つだけです。 それらについてさらに説明します。 後で説明するすべてのプラグインは、グラフィカルバージョンのエディターでのみ動作します。 RGB形式のカラーエディタのコンソールバージョンは表示できません。



buffer-HexHighlight内の色を表示します



HexHighlightは非常にシンプルなプラグインで、色コードを色付きの長方形に単純に置き換えます。

デフォルトでは、プラグインはキーの組み合わせをトリガーとして使用します-オン/オフ。

プラグインのテキストを見ると、最初の行に次の行が表示されます。

map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




map :call HexHighlight()







, , , .vimrc.



. leader vim <\> (backslash). , .vimrc

let mapleader =¨ ¨.





vim. , gtk, . , - .

colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



:ColorSel, /, , :



:ColorSel black teal

. /text rgb\hsv . , , .







ColorSel vim "a-"l, , 12 , vim :registers

, , , , , , .



.

hsv. , , , ColorSel , , , - .



, , . , , , - . "" : , , - .



gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




  1. map :call HexHighlight()







    , , , .vimrc.



    . leader vim <\> (backslash). , .vimrc

    let mapleader =¨ ¨.





    vim. , gtk, . , - .

    colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



    :ColorSel, /, , :



    :ColorSel black teal

    . /text rgb\hsv . , , .







    ColorSel vim "a-"l, , 12 , vim :registers

    , , , , , , .



    .

    hsv. , , , ColorSel , , , - .



    , , . , , , - . "" : , , - .



    gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




  2. map :call HexHighlight()







    , , , .vimrc.



    . leader vim <\> (backslash). , .vimrc

    let mapleader =¨ ¨.





    vim. , gtk, . , - .

    colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



    :ColorSel, /, , :



    :ColorSel black teal

    . /text rgb\hsv . , , .







    ColorSel vim "a-"l, , 12 , vim :registers

    , , , , , , .



    .

    hsv. , , , ColorSel , , , - .



    , , . , , , - . "" : , , - .



    gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927




  3. map :call HexHighlight()







    , , , .vimrc.



    . leader vim <\> (backslash). , .vimrc

    let mapleader =¨ ¨.





    vim. , gtk, . , - .

    colorsel.vim. RGB/HSV color selector. - David Necas (Yeti) Ingo Karkat.



    :ColorSel, /, , :



    :ColorSel black teal

    . /text rgb\hsv . , , .







    ColorSel vim "a-"l, , 12 , vim :registers

    , , , , , , .



    .

    hsv. , , , ColorSel , , , - .



    , , . , , , - . "" : , , - .



    gpick - http://www.gpick.org/ hexHighlight.vim - http://www.vim.org/scripts/script.php?script_id=2937 colorsel.vim - http://www.vim.org/scripts/script.php?script_id=927







All Articles