Updated:

less than 1 minute read

설명


설치

vim-plug

  1. curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  2. vim ~/.vimrc
    call plug#begin()
        Plug 'Valloric/YouCompleteMe'
    call plug#end()
    
  3. vim 실행 후 :PlugInstall 입력
  4. dnf install cmake python-devel
  5. cd ~/.vim/plugged/YouCompleteMe/
  6. python3 install.py ${language support options}
    • C-family languages
      • gcc/gcc-c++ 설치
      • --clangd-completer
    • C#
      • Mono 설치
      • --cs-completer
    • Go
      • Go 설치
      • --go-completer
    • Java
      • JDK 설치
      • --java-completer
    • JavaScript and TypeScript
      • Node.js와 npm 설치
      • --ts-completer
    • Rust
      • --rust-completer
    • all
      • --all


설치 확인

  • 코드 작성 시 혹은 ctrl + space를 눌렀을 때 동작


비고

  • .vimrc에 set tabstop=4가 있는 경우 set shiftwidth=4도 설정해주어야 자동 들여쓰기가 두번되지 않음