vim: tweaks to disable as much plugins as possible

This commit is contained in:
Robert Kmiec
2019-05-16 15:11:01 +02:00
parent 68d94f0fdd
commit 6a47090605

35
.vimrc
View File

@@ -32,7 +32,7 @@ Plugin 'Valloric/YouCompleteMe'
"Plugin 'gabrielelana/vim-markdown'
"Plugin 'idanarye/vim-vebugger' :Termdebug
"Plugin 'jeaye/color_coded'
"Plugin 'jez/vim-superman' "vman application
Plugin 'jez/vim-superman' "vman application
"Plugin 'metakirby5/codi.vim'
"Plugin 'milkypostman/vim-togglelist' " Map of quickfix toggles
"Plugin 'mnpk/vim-jira-complete'
@@ -49,7 +49,7 @@ Plugin 'Valloric/YouCompleteMe'
"Plugin 'vim-scripts/taglist.vim'
Plugin 'airblade/vim-gitgutter' " Mark edited lines
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'ericcurtin/CurtineIncSw.vim' "Toggle .c .h files
"Plugin 'ericcurtin/CurtineIncSw.vim' "Toggle .c .h files
Plugin 'flazz/vim-colorschemes' " lots of colorschemes
Plugin 'justinmk/vim-sneak'
Plugin 'kergoth/vim-bitbake' " Bitbake templates and syntax
@@ -112,15 +112,13 @@ if isdirectory($HOME . '/.vim/tags') == 0
:silent !mkdir -p ~/.vim/tags > /dev/null 2>&1
endif
let g:gutentags_cache_dir='~/.vim/tags'
let g:gutentags_ctags_extra_args=['--fields=+l']
"let g:gutentags_ctags_extra_args=['--fields=+l']
"Changing Leader Key
let mapleader = "\\"
" Set title to window
set title
" Dictionary path, from which the words are being looked up.
"set dictionary=/usr/share/dict/words
" Make pasting done without any indentation break
set pastetoggle=<F3>
@@ -505,7 +503,10 @@ set nowrapscan
tnoremap <Esc> <C-W>N
"set notimeout ttimeout timeoutlen=100
set spell
set spelllang=en,pl
" Dictionary path, from which the words are being looked up.
set dictionary=/usr/share/dict/words
" from vimconfig.com
"set showbreak=++
@@ -537,6 +538,26 @@ function! HLNext(blinktime)
endfor
endfunction
nmap S [Shortcut for :s///g] :%s//g<LEFT><LEFT>
xmap S :s//g<LEFT><LEFT>
nnoremap S :%s//g<LEFT><LEFT>
xnoremap S :s//g<LEFT><LEFT>
xmap <BS> x
set path+=**
function! FindAlternate()
let l:ext = 'h'
let l:curr_ext = expand('%:e')
if (l:curr_ext == 'c')
let l:ext = 'h'
elseif (l:curr_ext == 'cpp')
let l:ext = 'hpp'
elseif (l:curr_ext == 'h')
let l:ext = 'c'
elseif (l:curr_ext == 'hpp')
let l:ext = 'cpp'
endif
let l:file = expand('%:t:r') . '.' . l:ext
:exec 'find ' . l:file
endfunction
nnoremap <F6> :call FindAlternate()<CR>