LoginSignup
0
0

More than 1 year has passed since last update.

vimでカラースキームを設定後に背景色のみを変える

Posted at

vimでカラースキームを設定後に背景色のみを変える方法。

.vimrcで以下のようにcoloreschemeの「前に」autocmd文を追加する。

autocmd colorscheme * highlight Normal ctermbg=230
colorscheme morning

230は色番号。
色番号の一覧は https://www.ditig.com/256-colors-cheat-sheet

morningの背景色は灰色だが、上記の設定で230(Cornsilk1:クリーム色)に変わる。

カラースキームのblueやshineはシンタックス個別に背景色を指定していて部分的にそちらが有効になってしまうので、変更する場合は https://developers-book.com/2021/10/30/713/ を参考に設定を追加する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0