3분은 가볍고 간단하다.PowerLine 시작 전
powerline
이 녀석을 넣으면 예뻐질 거야!
sudo apt install -y python-pip
pip3 install powerline-status
글꼴
파워라인에 글꼴을 넣지 않으면 슬픈 일이 엇갈린다.
시카 글꼴을 넣으면 파워라인용 설정이니까
번거로운 시간이 없어서 기분이 좋다.만약 들어갈 수 없다면 이것을 참고하는 것이 비교적 좋다.
파워라인 글꼴 편차 수정하는 방법
Cica 다운로드
sudo cp -r Cicaファイル /usr/share/fonts/truetype/Cicaファイル
fc-cache -fv
tmux
여러분이 가장 좋아하는 tmux는tmux.conf에 쓰기
run-shell "powerline-daemon -q"
source ".local/lib/python<自分のバージョン>/site-packages/powerline/bindings/tmux/powerline.conf"
vim
순수한 파워라인의 설정은 바로 이겁니다.
set laststatus=2
set showtabline=2
set t_Co=256
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
lightline
또는 라이트라인을 추가합니다.가벼워서 이걸 추천합니다.
vim plug를 통해 설치
Plug 'itchyny/lightline.vim'
다양한 설정. 이것은 시카 작가의 환 복제품이다. let g:lightline = {
\ 'colorscheme': 'molokai',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'fugitive', 'filename' ] ]
\ },
\ 'component_function': {
\ 'fugitive': 'LightLineFugitive',
\ 'readonly': 'LightLineReadonly',
\ 'modified': 'LightLineModified',
\ 'filename': 'LightLineFilename',
\ 'filetype': 'LightLineFiletype',
\ 'fileformat': 'LightLineFileformat',
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': '' }
\ }
function! LightLineModified()
if &filetype == "help"
return ""
elseif &modified
return "+"
elseif &modifiable
return ""
else
return ""
endif
endfunction
function! LightLineReadonly()
if &filetype == "help"
return ""
elseif &readonly
return ""
else
return ""
endif
endfunction
function! LightLineFugitive()
if exists("*fugitive#head")
let _ = fugitive#head()
return strlen(_) ? ''._ : ''
endif
return ''
endfunction
function! LightLineFilename()
return ('' != LightLineReadonly() ? LightLineReadonly() . ' ' : '') .
\ ('' != expand('%:t') ? expand('%:t') : '[No Name]') .
\ ('' != LightLineModified() ? ' ' . LightLineModified() : '')
endfunction
function! LightLineFiletype()
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : ''
endfunction
function! LightLineFileformat()
return winwidth(0) > 70 ? (&fileformat . ' ' . WebDevIconsGetFileFormatSymbol()) : ''
endfunction
Reference
이 문제에 관하여(3분은 가볍고 간단하다.PowerLine 시작 전), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/koutasan/items/aed914f0ab5fea9ba578텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)