우분투, vim 및 태양열 색상 팔레트
솔라 라이즈 색상의 모든 다채로운 장점을 실제로 적용하고 싶지만 제대로 구성 할 수는 없습니다.
.vim / colors 폴더에 기본 솔라리스 파일이 있고 터미널 프로파일 색상을 사이트에 표시된 색상으로 설정하고 선을 추가했습니다
set background=dark
let g:solarized_termcolors=16
colorscheme solarized
vimrc에 있지만 vim은 회색으로 표시되고 기본값으로 밝은 녹색을 사용하고 있습니다. 어떤 아이디어?
시도해 볼만한 권장 사항은 다음과 같습니다.
syntax on
.vimrc에 있는지 확인 하십시오- t_Co vim이 용어 에뮬레이터에서 가져온 것을 확인하십시오 (빠른
:echo &t_Co
). 8이면을 원할 것se t_Co=16
입니다. 이것이se t_Co=256
없으면let g:solarized_termcolors=16
256 폴백 모드를 사용하여 시도 할 수도 있습니다. 이 모드는 정확한 색 구성표가 아닙니다.
다음에 대해 위의 질문에 대해 언급하고 싶지만 카르마 50이 필요합니다. 일반적인 색상 문제를 해결하는 과정을 진행하는 동안 프로젝트 사이트를 통해 이메일로이 문제를 해결하십시오.
set t_Co=16
그리고 let g:solarized_termcolors=16
나를 위해 작동하지 않았다. 이것이 효과가 있습니다.
syntax on
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized
나는 이것이 누군가를 돕기를 바랍니다.
이 기사 에서 어떻게하는지 알았습니다 .
그놈 터미널 작업을 수행하기 위해 다음 스크립트를 작성했습니다.
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#838394949696"
tmux 내부에서 솔라 라이즈 된 vim을 사용하려는 경우이 문제가 수정되었습니다.
https://github.com/krisleech/vimfiles/wiki/Fix-solarized-theme-in-tmux
그것을 직접 시도해 보면
let g:solarized_termcolors=16
16으로 설정하면 밝은 녹색이 나타납니다. 어쩌면 기본값 256으로 남겨 두시겠습니까?
그러나 이것은 스크린 샷의 색상을 완벽하게 모방하지는 않습니다 (라이트 버전은 상당히 비슷해 보이지만). gvim을 사용하면 스크린 샷으로 색상을 얻습니다.
제공된 터미널 프로파일 색상을 사용하지 않았으므로 다른 결과를 얻을 수 있습니다.
복사 및 붙여 넣기 애호가를 위해 다음은 Ubuntu에 태양 광 vim 색상 구성표를 설치하는 방법입니다.
sudo apt-get install wget unzip curl
cd
wget http://ethanschoonover.com/solarized/files/solarized.zip
unzip solarized.zip
mkdir .vim
mkdir .vim/colors/
mv solarized/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/
cp .vimrc .vimrc.old
echo "syntax enable" > .vimrc
echo "set background=dark" >> .vimrc
echo "colorscheme solarized" >> .vimrc
curl https://raw.github.com/seebi/dircolors-solarized/master/dircolors.256dark > ~/.dircolors
source .bashrc
rm -r solarized
rm solarized.zip
그리고 프레스토
이것은 exherbo를 위해 나를 위해 일했습니다.
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized
cd gnome-terminal-colors-solarized
sh install.sh -s dark -p <my_current_profile>
vim의 256 색도 도움이 될 수 있습니다
로부터 README ( 강조 광산) :
터미널 사용자를위한 중요 사항 :
If you are going to use Solarized in Terminal mode (i.e. not in a GUI version like gvim or macvim), please please please consider setting your terminal emulator's colorscheme to used the Solarized palette. I've included palettes for some popular terminal emulator as well as Xdefaults in the official Solarized download available from [Solarized homepage]. If you use Solarized without these colors, Solarized will need to be told to degrade its colorscheme to a set compatible with the limited 256 terminal palette (whereas by using the terminal's 16 ansi color values, you can set the correct, specific values for the Solarized palette).
If you do use the custom terminal colors, solarized.vim should work out of the box for you. If you are using a terminal emulator that supports 256 colors and don't want to use the custom Solarized terminal colors, you will need to use the degraded 256 colorscheme. To do so, simply add the following line before the
colorschem solarized
line:let g:solarized_termcolors=256
Again, I recommend just changing your terminal colors to Solarized values either manually or via one of the many terminal schemes available for import.
What worked for me on Ubuntu 16.04 with the included Terminal application was to simply select Solarized for both "Text and Background Color" (choose light or dark) and "Palette" in Terminal > Preferences > Profiles > (select yours) > Edit > Colors
Some other answers recommend choosing a 256 color palette but, as mentioned in the documentation, this gives you a degraded (and visibly worse in my opinion) colorscheme.
참고URL : https://stackoverflow.com/questions/5560658/ubuntu-vim-and-the-solarized-color-palette
'IT박스' 카테고리의 다른 글
django 템플릿의 사전에서 사전을 반복하는 방법은 무엇입니까? (0) | 2020.07.25 |
---|---|
vim 반복 다음 문자 찾기 'x' (0) | 2020.07.25 |
SQL 열에서 가장 빈번한 값 찾기 (0) | 2020.07.25 |
ObjectStateManager에서 오브젝트를 찾을 수 없으므로 오브젝트를 삭제할 수 없습니다. (0) | 2020.07.25 |
Eclipse, 정규식 검색 및 바꾸기 (0) | 2020.07.25 |