vimrc: autopep8

This commit is contained in:
2022-12-20 16:33:57 +01:00
parent 2ba88ea838
commit 34451575a9

3
.vimrc
View File

@@ -33,6 +33,7 @@ if filereadable(expand(vundle_dir) . "/README.md")
Plugin 'dense-analysis/ale' Plugin 'dense-analysis/ale'
Plugin 'tpope/vim-unimpaired' Plugin 'tpope/vim-unimpaired'
Plugin 'JuliaEditorSupport/julia-vim' Plugin 'JuliaEditorSupport/julia-vim'
Plugin 'tell-k/vim-autopep8'
call vundle#end() " required call vundle#end() " required
else else
@@ -249,6 +250,7 @@ highlight GitGutterDelete ctermbg=NONE ctermfg=DarkRed
highlight Search ctermbg=Brown ctermfg=LightRed highlight Search ctermbg=Brown ctermfg=LightRed
highlight ColorColumn ctermbg=DarkBlue highlight ColorColumn ctermbg=DarkBlue
highlight Visual ctermbg=LightBlue highlight Visual ctermbg=LightBlue
highlight DiffChange ctermbg=black ctermfg=lightgreen
highlight ALEInfo ctermbg=DarkBlue ctermfg=White highlight ALEInfo ctermbg=DarkBlue ctermfg=White
highlight ALEWarning ctermbg=DarkBlue ctermfg=Black highlight ALEWarning ctermbg=DarkBlue ctermfg=Black
highlight ALEError ctermbg=DarkRed ctermfg=Black highlight ALEError ctermbg=DarkRed ctermfg=Black
@@ -328,6 +330,7 @@ let g:latex_to_unicode_auto = 1
noremap <expr> <F7> LaTeXtoUnicode#Toggle() noremap <expr> <F7> LaTeXtoUnicode#Toggle()
noremap! <expr> <F7> LaTeXtoUnicode#Toggle() noremap! <expr> <F7> LaTeXtoUnicode#Toggle()
autocmd FileType python noremap <buffer> <F8> :call Autopep8()<CR>
nmap <Leader>cf :cd %:p:h <CR> " Change dir to parent of current file nmap <Leader>cf :cd %:p:h <CR> " Change dir to parent of current file
nmap <Leader>cg :cd $git_root_location <CR> " Change dir to git root nmap <Leader>cg :cd $git_root_location <CR> " Change dir to git root