Getting rid of Vundle and utilizing git power and pack builtin
This commit is contained in:
106
vim/.vimrc
106
vim/.vimrc
@ -1,5 +1,3 @@
|
||||
autocmd FileType asm noremap <F12> <ESC>:execute 'silent !qtspim' expand('%::p')<CR>
|
||||
|
||||
nnoremap <C-p> :Buffers<CR>
|
||||
nnoremap <C-g> :Ag<CR>
|
||||
|
||||
@ -36,7 +34,7 @@ let g:vimtex_view_method = 'zathura'
|
||||
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
||||
nnoremap gr :YcmCompleter GoToReferences<CR>
|
||||
nnoremap K :YcmCompleter GetDoc<CR>
|
||||
nnoremap <CR> :YcmCompleter FixIt<CR>
|
||||
nnoremap \<CR> :YcmCompleter FixIt<CR>
|
||||
noremap gN :Lex<CR>
|
||||
|
||||
nnoremap <F12> :Make<CR>
|
||||
@ -75,11 +73,26 @@ let g:ycm_goto_buffer_command = "'split-or-existing-window'"
|
||||
let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py'
|
||||
" let g:ycm_java_binary_path = "/usr/lib/jvm/java-17-openjdk/bin/java"
|
||||
let g:ycm_language_server = [
|
||||
\ {
|
||||
\ {
|
||||
\ 'name': 'tex',
|
||||
\ 'cmdline': ['texlab'],
|
||||
\ 'filetypes': ['tex'],
|
||||
\ },
|
||||
\ {
|
||||
\ 'name': 'godot',
|
||||
\ 'filetypes': ['gdscript'],
|
||||
\ 'port': 6008,
|
||||
\ 'project_root_files': ['project.godot']
|
||||
\ },
|
||||
\ {
|
||||
\ 'name': 'arduino',
|
||||
\ 'filetypes': ['arduino'],
|
||||
\ 'cmdline': ['arduino-language-server',
|
||||
\ '-clangd', '/usr/bin/clangd',
|
||||
\ '-cli', '/usr/bin/arduino-cli',
|
||||
\ '-cli-config', '$HOME/.arduino15/arduino-cli.yaml',
|
||||
\ '-fqbn', 'arduino:avr:uno'],
|
||||
\ },
|
||||
\ ]
|
||||
|
||||
" let g:completor_clang_binary = "/usr/bin/clang"
|
||||
@ -107,6 +120,7 @@ set nu
|
||||
set rnu
|
||||
set scrolloff=10
|
||||
set shiftwidth=4
|
||||
set shortmess-=S
|
||||
set showcmd
|
||||
set spelllang+=fr
|
||||
set splitbelow splitright
|
||||
@ -119,87 +133,3 @@ hi NonText ctermfg=None ctermbg=None
|
||||
|
||||
packadd termdebug
|
||||
let g:termdebug_wide=1
|
||||
|
||||
filetype off
|
||||
set rtp+=$HOME/.vim/bundle/Vundle.vim/
|
||||
call vundle#begin()
|
||||
|
||||
"Mandatory
|
||||
Plugin 'vundleVim/Vundle.vim' "plugin Manager
|
||||
|
||||
"Quality of life (any)
|
||||
Plugin 'itchyny/lightline.vim' "status bar
|
||||
Plugin 'kien/rainbow_parentheses.vim' "Better Raimbow Parentheses
|
||||
Plugin 'mhinz/vim-startify' "start screen
|
||||
Plugin 'lilydjwg/colorizer' "color hexcode
|
||||
Plugin 'jiangmiao/auto-pairs' "auto Pair Brackets
|
||||
" Plugin 'Yggdroot/indentLine' "show indent - bugging conceal
|
||||
Plugin 'szw/vim-maximizer'
|
||||
" Plugin 'preservim/nerdtree' "Directory Visulaliser :Nerdtree
|
||||
Plugin 'junegunn/fzf', {'do': { -> fzf#install() }}
|
||||
Plugin 'junegunn/fzf.vim'
|
||||
Plugin 'junegunn/vim-peekaboo' "see content of register before past for @ C-R and \"
|
||||
Plugin 'chrisbra/unicode.vim'
|
||||
|
||||
"useful in multiple languages
|
||||
Plugin 'SirVer/ultisnips' "fast write
|
||||
Plugin 'honza/vim-snippets' "lib of snips
|
||||
Plugin 'majutsushi/tagbar' "display tagBar with :TagbarToggle
|
||||
" Plugin 'maralla/completor.vim' "completion menu
|
||||
" Plugin 'tokorom/completor-shell' "Add on of completor.vim for shell scripting
|
||||
Plugin 'tpope/vim-commentary' "comment with <gcc>
|
||||
" Plugin 'dense-analysis/ale' "Async error checker (test usefulness)
|
||||
Plugin 'puremourning/vimspector' "Debugger
|
||||
|
||||
Plugin 'ycm-core/YouCompleteMe' "completion tool
|
||||
|
||||
"git
|
||||
Plugin 'mhinz/vim-signify' "git diff show
|
||||
Plugin 'tpope/vim-fugitive' "for the :Git <command>
|
||||
|
||||
"php
|
||||
" Plugin 'StanAngeloff/php.vim' "php syntax
|
||||
" Plugin 'phpactor/phpactor' "php auto-completion
|
||||
|
||||
"python
|
||||
" Plugin 'python-mode/python-mode' "A python IDE
|
||||
Plugin 'mitsuhiko/vim-jinja'
|
||||
|
||||
"html/css
|
||||
Plugin 'mattn/emmet-vim' "Fast http
|
||||
Plugin 'vim-scripts/loremipsum' "ipsum generator :Loremipsum <word>
|
||||
Plugin 'tpope/vim-surround' "Surround html tags
|
||||
Plugin 'sukima/xmledit' "Edit XML and HTML
|
||||
|
||||
"lua
|
||||
" Plugin 'wsdjeg/vim-lua' "lua syntax
|
||||
|
||||
"markdown
|
||||
Plugin 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vundle'] }
|
||||
|
||||
"c & cpp
|
||||
Plugin 'bfrg/vim-cpp-modern' "Extended vim syntax highlight c++
|
||||
Plugin 'a.vim' "go from hpp to cpp with :A
|
||||
" Plugin 'xavierd/clang_complete' "CLang Complete (don't work with ycm)
|
||||
Plugin 'cdelledonne/vim-cmake'
|
||||
|
||||
"glsl (shader)
|
||||
Plugin 'tikhomirov/vim-glsl'
|
||||
|
||||
"c sharp
|
||||
" Plugin 'OmniSharp/omnisharp-vim'
|
||||
|
||||
"latex
|
||||
|
||||
Plugin 'lervag/vimtex'
|
||||
Plugin 'gillescastel/latex-snippets'
|
||||
|
||||
"uml
|
||||
Plugin 'weirongxu/plantuml-previewer.vim'
|
||||
Plugin 'tyru/open-browser.vim'
|
||||
Plugin 'aklt/plantuml-syntax'
|
||||
|
||||
call vundle#end()
|
||||
|
||||
filetype plugin indent on
|
||||
set omnifunc=syntaxcomplete#Complete
|
||||
|
Reference in New Issue
Block a user