Move vim color settings to .vim/plugin/color.vim
This commit is contained in:
parent
c57679dbb7
commit
3a63738fa1
20
plugin/color.vim
Normal file
20
plugin/color.vim
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
if !platform#is_windows()
|
||||||
|
if $COLORTERM == 'gnome-terminal'
|
||||||
|
if $TERM != 'xterm-256color' &&
|
||||||
|
\ $TERM != 'screen-256color' &&
|
||||||
|
\ $TERM != 'xterm-256color-italic' &&
|
||||||
|
\ $TERM != 'screen-256color-italic'
|
||||||
|
echo "This terminal does not report 256 color support"
|
||||||
|
echo "For gnome-terminal:"
|
||||||
|
echo "Open: Profile Preferences"
|
||||||
|
echo "Open: Title and Command"
|
||||||
|
echo "Tick: Run a custom command instead of my shell"
|
||||||
|
echo "Add the following custom command"
|
||||||
|
echo "env TERM=xterm-256color /usr/bin/zsh"
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if !platform#is_windows() || has("gui_running")
|
||||||
|
colorscheme fresh
|
||||||
|
endif
|
||||||
|
syntax sync minlines=200
|
22
vimrc
22
vimrc
@ -3,28 +3,6 @@ if platform#is_windows()
|
|||||||
set rtp+=~/.vim
|
set rtp+=~/.vim
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Color
|
|
||||||
if !platform#is_windows()
|
|
||||||
if $COLORTERM == 'gnome-terminal'
|
|
||||||
if $TERM != 'xterm-256color' &&
|
|
||||||
\ $TERM != 'screen-256color' &&
|
|
||||||
\ $TERM != 'xterm-256color-italic' &&
|
|
||||||
\ $TERM != 'screen-256color-italic'
|
|
||||||
echo "This terminal does not report 256 color support"
|
|
||||||
echo "For gnome-terminal:"
|
|
||||||
echo "Open: Profile Preferences"
|
|
||||||
echo "Open: Title and Command"
|
|
||||||
echo "Tick: Run a custom command instead of my shell"
|
|
||||||
echo "Add the following custom command"
|
|
||||||
echo "env TERM=xterm-256color /usr/bin/zsh"
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
if !platform#is_windows() || has("gui_running")
|
|
||||||
colorscheme fresh
|
|
||||||
endif
|
|
||||||
syntax sync minlines=200
|
|
||||||
|
|
||||||
" Plugins {{{
|
" Plugins {{{
|
||||||
call plug#begin('~/.vim/plugs')
|
call plug#begin('~/.vim/plugs')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user