Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.54 KB | None | 0 0
  1. set nocompatible              " be iMproved, required
  2. filetype off                  " required
  3.  
  4. " set the runtime path to include Vundle and initialize
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7. " let Vundle manage Vundle, required
  8. Plugin 'VundleVim/Vundle.vim'
  9.  
  10. " Useful defaults Plugin 'tpope/vim-sensible'
  11.  
  12. " " NerdTree
  13. " Plugin 'scrooloose/nerdtree.git'
  14. " Plugin 'Xuyuanp/nerdtree-git-plugin'
  15.  
  16. Plugin 'ctrlpvim/ctrlp.vim'
  17.  
  18. " Git
  19. Plugin 'tpope/vim-fugitive'
  20. Plugin 'airblade/vim-gitgutter'
  21.  
  22. " Theming
  23. Plugin 'vim-airline/vim-airline'
  24. Plugin 'RRethy/vim-illuminate'
  25. Plugin 'flazz/vim-colorschemes'
  26. Plugin 'luochen1990/rainbow'
  27.  
  28. " Display marks
  29. Plugin 'kshenoy/vim-signature'
  30.  
  31. " Mappings
  32. Plugin 'tomtom/tcomment_vim.git'
  33.  
  34. " Language support
  35. Plugin 'sheerun/vim-polyglot'
  36.  
  37. " Tag management
  38. Plugin 'ludovicchabant/vim-gutentags'
  39. Plugin 'majutsushi/tagbar'
  40.  
  41. " Asynchronous builds
  42. Plugin 'tpope/vim-dispatch'
  43.  
  44. Plugin 'tpope/vim-vinegar'
  45.  
  46. " Auto clang-format ?
  47. Plugin 'rhysd/vim-clang-format'
  48.  
  49. "ALE
  50. Plugin 'dense-analysis/ale'
  51.  
  52. Plugin 'vhdirk/vim-cmake'
  53.  
  54. Plugin 'romainl/vim-qf'
  55.  
  56. call vundle#end()            " required
  57. filetype plugin indent on    " required
  58.  
  59. " enable syntax and plugins (for netrw)
  60. syntax enable
  61. filetype plugin on
  62.  
  63. nnoremap <F10> :TagbarToggle<CR>
  64.  
  65. """"""""""""""""""""""""""""""""""""""""""""""""""
  66. " Indentation options
  67. """"""""""""""""""""""""""""""""""""""""""""""""""
  68.  
  69. " Length of a tab (actual tab character)
  70. set tabstop=8
  71.  
  72. " Use spaces instead of tabs
  73. set expandtab
  74.  
  75. " Length of an indentation level
  76. set shiftwidth=4
  77.  
  78. " Do smart autoindenting when starting a new line, works for C-like programs
  79. set smartindent
  80.  
  81. """"""""""""""""""""""""""""""""""""""""""""""""""
  82. " Interface options
  83. """"""""""""""""""""""""""""""""""""""""""""""""""
  84.  
  85. " Show line number
  86. set number
  87.  
  88. " Highlight current line in bold with some grey
  89. set cursorline
  90. hi CursorLine term=bold cterm=bold guibg=Grey
  91.  
  92. " Mark 80th column.
  93. set colorcolumn=80
  94.  
  95. " Enhanced command line completion
  96. set wildmenu
  97.  
  98. " Disable bell completely
  99. set visualbell
  100. set t_vb=
  101.  
  102. set list
  103.  
  104. set listchars=tab:›\ ,eol:¬,trail:⋅,nbsp:¤
  105.  
  106. " FINDING FILES:
  107. set path+=**
  108.  
  109. " Colorscheme
  110. set bg=dark
  111. " colorscheme onedark
  112.  
  113. " Set the minimal amount of lignes under and above the cursor
  114. " Useful for keeping context when moving with j/k
  115. set scrolloff=5
  116.  
  117. """"""""""""""""""""""""""""""""""""""""""""""""""
  118. " Folding options
  119. """"""""""""""""""""""""""""""""""""""""""""""""""
  120.  
  121. " Fold lines with equal indent
  122. set foldmethod=indent
  123.  
  124. " Open all folds by default.
  125. set nofoldenable
  126.  
  127. " Only fold function
  128. set foldnestmax=1
  129.  
  130. " Save my folds
  131. autocmd BufWinLeave *.* mkview
  132. autocmd BufWinEnter *.* silent loadview
  133.  
  134. """"""""""""""""""""""""""""""""""""""""""""""""""
  135. " Configure path to PWD
  136. """"""""""""""""""""""""""""""""""""""""""""""""""
  137. set path=$PWD/**
  138.  
  139. """"""""""""""""""""""""""""""""""""""""""""""""""
  140. """"""""""""""""""""""""""""""""""""""""""""""""""
  141. " Plugin Configuration """""""""""""""""""""""""""
  142. """"""""""""""""""""""""""""""""""""""""""""""""""
  143. """"""""""""""""""""""""""""""""""""""""""""""""""
  144.  
  145. """"""""""""""""""""""""""""""""""""""""""""""""""
  146. " Plugin rainbow
  147. """"""""""""""""""""""""""""""""""""""""""""""""""
  148. let g:rainbow_active = 1
  149.  
  150. """"""""""""""""""""""""""""""""""""""""""""""""""
  151. " Plugin A.L.E.
  152. """"""""""""""""""""""""""""""""""""""""""""""""""
  153. let g:ale_fix_on_save = 1
  154. let g:ale_fixers = {'c': ['clang-format'], 'cpp': ['clang-format']}
  155. let g:ale_linters = {'c': [], 'cpp': []}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement