参考サイトのように色の変更方法は調べてわかるのですがdefault.vimとsyntax.vimどっちに何を書き込めばいいのでしょうか?
syntax.vimですが色について書かれていますが色コード等の設定文字が見つかりません。
知りたいこと
カラーテーマの色を変更したいがなんのファイルの値を書き換えればいいか知りたい。
参考サイト:https://recruit.cct-inc.co.jp/tecblog/editor/vim/
参考サイト:https://qiita.com/sff1019/items/3f73856b78d7fa2731c7
color: https://www.ditig.com/256-colors-cheat-sheet
color file path : /usr/share/vim/vim82/colors
syntax path : /usr/share/vim/vim82/syntax
default.vim
" Vim color file " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2001 Jul 23 " This is the default color scheme. It doesn't define the Normal " highlighting, it uses whatever the colors used to be. " Set 'background' back to the default. The value can't always be estimated " and is then guessed. hi clear Normal set bg& " Remove all existing highlighting and set the defaults. hi clear " Load the syntax highlighting defaults, if it's enabled. if exists("syntax_on") syntax reset endif let colors_name = "default" " vim: sw=2
cpp.vim
一部分
Vim syntax file " Language: C++ " Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp) " Previous Maintainer: Ken Shan <ccshan@post.harvard.edu> " Last Change: 2021 Aug 23 " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif " inform C syntax that the file was included from cpp.vim let b:filetype_in_cpp_family = 1 " Read the C syntax to start with runtime! syntax/c.vim unlet b:current_syntax " C++ extensions syn keyword cppStatement new delete this friend using syn keyword cppAccess public protected private syn keyword cppModifier inline virtual explicit export syn keyword cppType bool wchar_t syn keyword cppExceptions throw try catch syn keyword cppOperator operator typeid syn keyword cppOperator and bitor or xor compl bitand and_eq or_eq xor_eq not not_eq syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1 syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$" syn keyword cppStorageClass mutable syn keyword cppStructure clas
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。