Skip to content

Instantly share code, notes, and snippets.

@maksmakuta
Created August 24, 2021 17:35
Show Gist options
  • Save maksmakuta/d2dc8dfbe15f492536bce08d09cde50a to your computer and use it in GitHub Desktop.
Save maksmakuta/d2dc8dfbe15f492536bce08d09cde50a to your computer and use it in GitHub Desktop.

Revisions

  1. maksmakuta created this gist Aug 24, 2021.
    41 changes: 41 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    set nocompatible
    syntax on
    set mouse =a

    set autoindent
    set expandtab
    set softtabstop =2
    set shiftwidth =2
    set shiftround
    set backspace =indent,eol,start
    set hidden
    set number
    set laststatus =2
    set display =lastline

    set showmode
    set showcmd
    set incsearch
    set hlsearch

    set ttyfast
    set lazyredraw
    set cursorline
    filetype plugin indent on

    " It's copied from clangd site...
    " Let clangd fully control code completion
    let g:ycm_clangd_uses_ycmd_caching = 0
    " Use installed clangd, not YCM-bundled clangd which doesn't get updates.
    let g:ycm_clangd_binary_path = exepath("clangd")

    call plug#begin('~/.vim/plugged')

    " install bottom bar for vim
    Plug 'vim-airline/vim-airline'

    " add autocomplete library
    " I'm configure for c/c++ (clangd)
    Plug 'ycm-core/YouCompleteMe'

    call plug#end()