Skip to content

Instantly share code, notes, and snippets.

@hensg
Created July 24, 2021 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hensg/be3661d0c89c9200ead5b0c4f3c2d05a to your computer and use it in GitHub Desktop.
Save hensg/be3661d0c89c9200ead5b0c4f3c2d05a to your computer and use it in GitHub Desktop.
Vim configuration file
set nocompatible
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'majutsushi/tagbar'
Plug 'yggdroot/indentline'
Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'sheerun/vim-polyglot'
Plug 'ycm-core/YouCompleteMe'
Plug 'flazz/vim-colorschemes'
Plug 'morhetz/gruvbox'
Plug 'altercation/vim-colors-solarized'
Plug 'tomasiser/vim-code-dark'
" Plug 'rafi/awesome-vim-colorscheme'
" Plug 'joshdick/onedark.vim'
Plug 'lervag/vimtex'
call plug#end()
" call plug#begin('~/.vim/plugged')
" " Plug 'rip-rip/clang_complete'
" "
" Plug '~/my-prototype-plugin'
"
" " Initialize plugin system
" call plug#end()
" " path to directory where library can be found
let g:clang_library_path='/usr/lib/llvm-10/lib'
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
set nu
set visualbell
let g:cpp_class_scope_highlight = 1
let g:cpp_member_variable_highlight = 1
let g:cpp_class_decl_highlight = 1
let g:cpp_posix_standard = 1
let g:cpp_experimental_simple_template_highlight = 1
let g:cpp_experimental_template_highlight = 1
let g:cpp_concepts_highlight = 1
"
"
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
"
" " highlight Pmenu ctermfg=15 ctermbg=0 guifg=#ffffff guibg=#000000
"
set previewpopup=height:10,width:60,highlight:PMenuSbar
set completeopt+=popup
set completepopup=height:15,width:60,border:off,highlight:PMenuSbar
nmap <F8> :TagbarToggle<CR>
set encoding=utf8
syntax on
" set background=dark
" autocmd vimenter * ++nested colorscheme gruvbox
let g:codedark_conservative = 0
colorscheme codedark
let g:airline_theme = 'codedark'
let g:airline_powerline_fonts = 1
let g:livepreview_previewer = 'evince'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment