Update .vimrc

This commit is contained in:
daniele 2023-06-02 18:22:40 +02:00
parent 2a9b9fc7e6
commit ef2bbae2e4
Signed by: fuxino
GPG Key ID: 981A2B2A3BBF5514

14
.vimrc
View File

@ -7,7 +7,9 @@ set number
set shiftwidth=4 set shiftwidth=4
set tabstop=4 set tabstop=4
set expandtab set expandtab
set nobackup set backup
set backupdir=~/.vim/backup/
set directory=/tmp
set scrolloff=10 set scrolloff=10
set incsearch set incsearch
set showcmd set showcmd
@ -16,7 +18,7 @@ set showmatch
set hlsearch set hlsearch
set wildmenu set wildmenu
set wildmode=list:longest set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx,*.mp4,*.zip,*.iso,*.odt,*.tar,*.gz,*.xz,*.bz2,*.zst,*.rar,*.m4a,*.bmp,*.ogg,*.mp3,*.flv
set background=dark set background=dark
@ -32,8 +34,8 @@ call plug#end()
let g:everforest_background='hard' let g:everforest_background='hard'
let g:everforest_better_performance=1 let g:everforest_better_performance=1
let g:ale_python_flake8_options = '--max-line-length=120' let g:ale_python_flake8_options='--max-line-length=120'
let g:rainbow_active = 1 let g:rainbow_active=1
" }}} " }}}
@ -56,6 +58,10 @@ augroup filetype_vim
autocmd FileType vim setlocal foldmethod=marker autocmd FileType vim setlocal foldmethod=marker
augroup END augroup END
if !isdirectory("$HOME/.vim/backup")
silent! execute "!mkdir ~/.vim/backup"
endif
if has('termguicolors') if has('termguicolors')
set termguicolors set termguicolors