vim: tweaks to disable as much plugins as possible
This commit is contained in:
35
.vimrc
35
.vimrc
@@ -32,7 +32,7 @@ Plugin 'Valloric/YouCompleteMe'
|
|||||||
"Plugin 'gabrielelana/vim-markdown'
|
"Plugin 'gabrielelana/vim-markdown'
|
||||||
"Plugin 'idanarye/vim-vebugger' :Termdebug
|
"Plugin 'idanarye/vim-vebugger' :Termdebug
|
||||||
"Plugin 'jeaye/color_coded'
|
"Plugin 'jeaye/color_coded'
|
||||||
"Plugin 'jez/vim-superman' "vman application
|
Plugin 'jez/vim-superman' "vman application
|
||||||
"Plugin 'metakirby5/codi.vim'
|
"Plugin 'metakirby5/codi.vim'
|
||||||
"Plugin 'milkypostman/vim-togglelist' " Map of quickfix toggles
|
"Plugin 'milkypostman/vim-togglelist' " Map of quickfix toggles
|
||||||
"Plugin 'mnpk/vim-jira-complete'
|
"Plugin 'mnpk/vim-jira-complete'
|
||||||
@@ -49,7 +49,7 @@ Plugin 'Valloric/YouCompleteMe'
|
|||||||
"Plugin 'vim-scripts/taglist.vim'
|
"Plugin 'vim-scripts/taglist.vim'
|
||||||
Plugin 'airblade/vim-gitgutter' " Mark edited lines
|
Plugin 'airblade/vim-gitgutter' " Mark edited lines
|
||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
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 'flazz/vim-colorschemes' " lots of colorschemes
|
||||||
Plugin 'justinmk/vim-sneak'
|
Plugin 'justinmk/vim-sneak'
|
||||||
Plugin 'kergoth/vim-bitbake' " Bitbake templates and syntax
|
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
|
:silent !mkdir -p ~/.vim/tags > /dev/null 2>&1
|
||||||
endif
|
endif
|
||||||
let g:gutentags_cache_dir='~/.vim/tags'
|
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
|
"Changing Leader Key
|
||||||
let mapleader = "\\"
|
let mapleader = "\\"
|
||||||
|
|
||||||
" Set title to window
|
" Set title to window
|
||||||
set title
|
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
|
" Make pasting done without any indentation break
|
||||||
set pastetoggle=<F3>
|
set pastetoggle=<F3>
|
||||||
@@ -505,7 +503,10 @@ set nowrapscan
|
|||||||
tnoremap <Esc> <C-W>N
|
tnoremap <Esc> <C-W>N
|
||||||
"set notimeout ttimeout timeoutlen=100
|
"set notimeout ttimeout timeoutlen=100
|
||||||
|
|
||||||
|
set spell
|
||||||
set spelllang=en,pl
|
set spelllang=en,pl
|
||||||
|
" Dictionary path, from which the words are being looked up.
|
||||||
|
set dictionary=/usr/share/dict/words
|
||||||
|
|
||||||
" from vimconfig.com
|
" from vimconfig.com
|
||||||
"set showbreak=++
|
"set showbreak=++
|
||||||
@@ -537,6 +538,26 @@ function! HLNext(blinktime)
|
|||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nmap S [Shortcut for :s///g] :%s//g<LEFT><LEFT>
|
nnoremap S :%s//g<LEFT><LEFT>
|
||||||
xmap S :s//g<LEFT><LEFT>
|
xnoremap S :s//g<LEFT><LEFT>
|
||||||
xmap <BS> x
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user