質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Vim

VimとはUnix / Linux 系のOSに標準搭載されているターミナル上で動くテキストエディタです。

Q&A

解決済

1回答

500閲覧

vimのカラーテーマを変更したい。どこのファイルの値を書き換えればいいのか

退会済みユーザー

退会済みユーザー

総合スコア0

Vim

VimとはUnix / Linux 系のOSに標準搭載されているターミナル上で動くテキストエディタです。

0グッド

0クリップ

投稿2022/08/15 00:38

編集2022/08/15 09:56

参考サイトのように色の変更方法は調べてわかるのですが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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

以下の日本語マニュアルに書いてありました。

参考サイト:https://vim-jp.org/vimdoc-ja/usr_06.html#06.3

投稿2022/08/15 00:56

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問