New plugins

This commit is contained in:
Sebastian 2019-10-14 14:06:12 +02:00
parent d0f6c5638a
commit 805cb9397d

View file

@ -36,8 +36,11 @@ call vundle#begin()
" let Vundle manage Vundle, required " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'Vimjas/vim-python-pep8-indent' Plugin 'Vimjas/vim-python-pep8-indent'
Plugin 'Townk/vim-autoclose'
Plugin 'davidhalter/jedi-vim'
Plugin 'ervandew/supertab'
" The following are examples of different formats supported. " The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end. " Keep Plugin commands between vundle#begin/end.
@ -170,6 +173,7 @@ set numberwidth=5
" Tab completion " Tab completion
" will insert tab at beginning of line, " will insert tab at beginning of line,
" will use completion if not at beginning " will use completion if not at beginning
set wildmode=list:longest,list:full set wildmode=list:longest,list:full
function! InsertTabWrapper() function! InsertTabWrapper()
let col = col('.') - 1 let col = col('.') - 1
@ -182,6 +186,8 @@ endfunction
inoremap <Tab> <C-r>=InsertTabWrapper()<CR> inoremap <Tab> <C-r>=InsertTabWrapper()<CR>
inoremap <S-Tab> <C-n> inoremap <S-Tab> <C-n>
" Switch between the last two files " Switch between the last two files
nnoremap <Leader><Leader> <C-^> nnoremap <Leader><Leader> <C-^>
@ -263,5 +269,16 @@ fun! <SID>StripTrailingWhitespaces()
endfun endfun
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces() autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
" Indent and unindent with tab.
nnoremap <Tab> >>_
nnoremap <S-Tab> <<_
inoremap <S-Tab> <C-D>
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv
" Fuzzy file search by default:
set path+=**
colorscheme darcula colorscheme darcula