Comment out all Ycm

This commit is contained in:
flyingscorpio@archlinuxvm 2020-11-23 14:49:42 +01:00
parent 738e43bc29
commit 51cb17efe4

View file

@ -29,7 +29,7 @@ call plug#begin('~/.vim/plugged')
" AUTOCOMPLETION, FORMATTING AND LINTING
" Main autocompletion
Plug 'ycm-core/YouCompleteMe'
"Plug 'ycm-core/YouCompleteMe'
"Auto close parens and such
Plug 'Townk/vim-autoclose'
" PEP8 linting for Python
@ -72,11 +72,11 @@ let g:pymode_options_max_line_length = 90
let g:pymode_options_colorcolumn = 0
let g:pymode_lint_ignore = ["E203"]
let g:ycm_extra_conf_globlist = ['!~/*'] " is overwritten in autogroups for c
let g:ycm_autoclose_preview_window_after_insertion = 1
"let g:ycm_extra_conf_globlist = ['!~/*'] " is overwritten in autogroups for c
"let g:ycm_autoclose_preview_window_after_insertion = 1
" in normal mode run YCM's GoTo subcommand
nnoremap <leader>gd :YcmCompleter GoTo<CR>
"nnoremap <leader>gd :YcmCompleter GoTo<CR>
let NERDTreeIgnore=['^__pycache__$', '\.pyc', '\~$'] " ignore files in NERDTree
@ -160,15 +160,15 @@ augroup configgroup
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
autocmd FileType c let g:ycm_extra_conf_globlist = ['~/*']
"autocmd FileType c let g:ycm_extra_conf_globlist = ['~/*']
autocmd FileType rust nnoremap <F9> :RustFmt<CR>
autocmd FileType python nnoremap <F9> :Black<CR>
autocmd FileType html,htmldjango,python,tex,plaintex,yaml setlocal foldmethod=indent
autocmd FileType python setlocal colorcolumn=80
autocmd FileType python let g:ycm_python_interpreter_path = ''
autocmd FileType python let g:ycm_python_sys_path = []
autocmd FileType python let g:ycm_extra_conf_vim_data = ['g:ycm_python_interpreter_path', 'g:ycm_python_sys_path']
autocmd FileType python let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py'
"autocmd FileType python let g:ycm_python_interpreter_path = ''
"autocmd FileType python let g:ycm_python_sys_path = []
"autocmd FileType python let g:ycm_extra_conf_vim_data = ['g:ycm_python_interpreter_path', 'g:ycm_python_sys_path']
"autocmd FileType python let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py'
autocmd BufEnter Makefile,*.asm setlocal noexpandtab tabstop=6 shiftwidth=6 softtabstop=0
autocmd BufEnter *.sh setlocal shiftwidth=2 tabstop=2 softtabstop=2 foldlevel=0 foldmethod=marker
augroup END