2017-02-27 5 views
0

私はCygwinでtmuxを使用しています。 enter image description heretmux/cygwinの下のvimのデフォルトカラーテーマをtmuxの外側と同じに設定します

しかし、私は読むために同じコメントがハードに見えるtmuxの下のvimを開きます:私は(tmuxはなし)のCygwinでVimを開くと、#で始まるコメントがよさそうだ enter image description here

マイ.bashrc.vimrcファイルをデフォルト設定では空です。

#Change default prefix key 
unbind-key C-b 
set -g prefix 'C-\' 
bind-key 'C-\' send-prefix 

#Increase history limits 
set-option -g history-limit 99999 

#Start windows at 1, not 0 
set -g base-index 1 
setw -g pane-base-index 1 

#Highlight border of active split pane with blue 
set-option -g pane-active-border-fg blue 

#Setting 256 colors globally in tmux 
set -g default-terminal "screen-256color" 

#Colors of windows names 
set-window-option -g window-status-current-fg colour33 #orange 
set-window-option -g window-status-current-bg default 
set-window-option -g window-status-current-attr bright 

#Color of the task bar 
set-option -g status-bg colour235 #base02 
set-option -g status-fg colour136 #yellow 
set-option -g status-attr default 

私は外tmuxのようtmuxは同じの下で見てvimの中で色を設定することができます方法:

.tmux.confはいくつかの簡単なコマンドが含まれていますか?

+0

tmux/vimで ':set background = light'を試したことがありますか?バックグラウンドの明暗設定のように見えますが、 ':set t_Co = 256'でも可能です。 端末が256色をサポートしていることを確認してください(' export TERM = 'xterm-256color'') – enrm

+0

@enrm、私は両方の設定を.vimrcに設定しますが、結果は同じです。 –

答えて

0

解決策が見つかりました。この設定では、set background=darkは、vimのコメントをtmuxの内側と外側の両方で同じに見せます。 CygwinとUbuntuでテストされています。