1. Vundle 설치
https://github.com/VundleVim/Vundle.vim
2. 아래 설정 vi ~/.vimrc에 복붙
3. vim들어가서 :PluginInstall
set shell=/bin/bash
set rtp+=~/.vim/bundle/Vundle.vim
set backspace=indent,eol,start " more powerful backspacing
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'dracula/vim', { 'name': 'dracula' }
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'scrooloose/nerdtree'
Plugin 'Raimondi/delimitMate'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" Plugin 'Valloric/YouCompleteMe'
Plugin 'terryma/vim-multiple-cursors'
call vundle#end()
" for indent guide
let g:indentguides_spacechar = '┆'
let g:indentguides_tabchar = '|'
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_start_level=2
let g:indent_guides_guide_size=1
let NERDTreeQuitOnOpen=1
""let NERDTreeShowHidden=1
map <F3> :NERDTreeToggle<cr>
set nu
set cindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set showmatch
syntax on
filetype indent on
map <C-F5> :!gcc -o %< % <CR>
setlocal makeprg=gcc\ -o\ %<\ %
map <C-F5> :w<CR> :make!<CR> :cw<CR>
if !filereadable(expand("%:p:h")."/Makefile")
setlocal makeprg=gcc\ -o\ %<\ %
endif
map <F5> :!g++ -o %< % <CR>
setlocal makeprg=g++\ -o\ %<\ %
map <F5> :w<CR> :make!<CR> :cw<CR>
if !filereadable(expand("%:p:h")."/Makefile")
setlocal makeprg=g++\ -o\ %<\ %
endif
map <F6> :! ./%<<CR>
'환경 세팅' 카테고리의 다른 글
Docker로 M1맥에서 Ubuntu 돌리기 (0) | 2022.04.15 |
---|---|
CLI에서 git log 편하게 보기 (0) | 2021.09.28 |
git log 출력 cat으로 변경 (0) | 2021.09.27 |
vscode C++ task.json (0) | 2021.08.20 |
mac 폴더 숨기기, 숨긴 폴더 보기 (0) | 2021.08.05 |