Advertisement
qw2100m

.vimrc

Nov 9th, 2018
1,545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.04 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. " alternatively, pass a path where Vundle should install plugins call vundle#begin('~/some/path/here')
  8. " let Vundle manage Vundle, required¬
  9. Plugin 'VundleVim/Vundle.vim'¬
  10. Plugin 'tpope/vim-sensible'¬
  11. Plugin 'tpope/vim-fugitive'¬
  12. Plugin 'vim-airline/vim-airline'¬
  13. Plugin 'vim-syntastic/syntastic'¬
  14. Plugin 'RRethy/vim-illuminate'¬
  15. Plugin 'flazz/vim-colorschemes'¬
  16. Plugin 'ntpeters/vim-better-whitespace'¬
  17. Plugin 'airblade/vim-gitgutter'¬
  18. Plugin 'tomtom/tcomment_vim'¬
  19. ¬
  20. Plugin 'prabirshrestha/async.vim'¬
  21. Plugin 'prabirshrestha/vim-lsp'¬
  22. ¬
  23. ¬
  24. call vundle#end()            " required¬
  25. filetype plugin indent on    " required¬
  26. ¬
  27. " enable syntax and plugins (for netrw)¬
  28. syntax enable¬
  29. filetype plugin on¬
  30. ¬
  31. let g:syntastic_always_populate_loc_list = 1¬
  32. ¬
  33. hi illuminatedWord cterm=underline gui=underline¬
  34. ¬
  35. " FINDING FILES:¬
  36. set path+=**¬
  37. ¬
  38. set tabstop=4¬
  39. set shiftwidth=4¬
  40. set expandtab¬
  41. ¬
  42. set wildmenu¬
  43. set number¬
  44. set ruler¬
  45. set autoindent¬
  46. set smartindent¬
  47. set cindent¬
  48. set colorcolumn=80¬
  49. ¬
  50. set foldmethod=syntax¬
  51. set foldnestmax=10¬
  52. set nofoldenable¬
  53. set foldlevel=2¬
  54. ¬
  55. set list¬
  56. set listchars=tab:›\ ,eol:¬,trail:⋅¬
  57. ¬
  58. " Highlight extra whitespace¬
  59. highlight ExtraWhitespace ctermbg=red guibg=red¬
  60. ¬
  61. if executable('clangd')¬
  62.     augroup lsp_clangd¬
  63.         autocmd!¬
  64.         autocmd User lsp_setup call lsp#register_server({¬
  65.                     \ 'name': 'clangd'
  66.                     \ 'cmd': {server_info->['clangd']}
  67.                     \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp']
  68.                     \ })¬
  69.         autocmd FileType c setlocal omnifunc=lsp#complete¬
  70.     augroup end¬
  71. endif¬
  72. ¬
  73. let g:lsp_log_verbose = 1¬
  74. let g:lsp_log_file = expand('~/vim-lsp.log')¬
  75. ¬
  76. "set bg=light¬
  77. "colorscheme fruidle¬
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement