Linux/RaspberryPi
Raspberry PI에 Vim 테마 설치
Jitae.Kim
2021. 6. 1. 16:46
vim 다운을 받자
sudo apt-get update
sudo apt-get install vim
Plug.vim을 설치한다.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
경로에 ~/.vim/autoload/plug.vim이 다운 되었는지 확인한다.
확인되었으면 vimrc를 vim으로 연다.
sudo ~/.vimrc
vimrc에 다음과 같이 쓴다.
" Plugins will be downloaded under the specified directory.
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
" Declare the list of plugins.
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
저장 후 vim을 입력했는데 다음 에러가 뜨면 git을 설치한다.
sudo apt-get install git
테마 설치
이클립스 Zenburn을 설치해보자
파일을 다운 받는다
git clone https://github.com/jnurmine/Zenburn.git
다운 받은 디렉토리에 colors를 ~/.vim 파일로 이동한다.
cd Zenburn
mv ./colors ../
최종 .vim 디렉토리
다시 .vimrc를 열어 마지막 줄에 다음과 같이 추가한다.
set t_Co=256
colors zenburn
다시 vim 을 열면 다음과 같이 열린다
###Sudo 에서 vim 테마 적용 방법 ####