Vim update

This commit is contained in:
Tibo De Peuter 2022-06-29 17:44:02 +02:00
parent 5f8bd21d87
commit cd80e6eabf

View file

@ -5,22 +5,36 @@
filetype on filetype on
filetype plugin on filetype plugin on
filetype indent on filetype indent on
set tabstop=4
set shiftwidth=0
set expandtab set expandtab
set smarttab set smarttab
set autoindent
set smartindent set smartindent
set incsearch set incsearch
set nocompatible
set number
set showcmd
set showmatch set showmatch
set title set title
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
syntax enable syntax enable
" --
set scrolloff=3
set showcmd
set autoindent
set linebreak
set shiftwidth=4
set tabstop=4
set number
set relativenumber
colorscheme nord-light colorscheme nord-light
set conceallevel=2
" Add mouse support
set mouse=a
if $TERM == 'alacritty'
set ttymouse=sgr " Alacritty specific
endif
" PLUGINS --------------------------------------------------------------- {{{ " PLUGINS --------------------------------------------------------------- {{{
@ -33,6 +47,8 @@ call plug#end()
" }}} " }}}
" AUTOMATIC STUFF ------------------------------------------------------- {{{
if has("autocmd") if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
@ -40,14 +56,19 @@ if has("autocmd")
" https://stackoverflow.com/a/37558470/19044747 " https://stackoverflow.com/a/37558470/19044747
augroup remember_folds augroup remember_folds
autocmd! autocmd!
autocmd BufWinLeave * mkview autocmd BufWinLeave * silent! mkview
autocmd BufWinEnter * silent! loadview autocmd BufWinEnter * silent! loadview
augroup END augroup END
endif
endif
" }}}
" TALK ------------------------------------------------------------------ {{{ " TALK ------------------------------------------------------------------ {{{
" https://youtu.be/XA2WjJbmmoM ---------------------------------------------- " https://youtu.be/XA2WjJbmmoM ----------------------------------------------
set nocompatible
" Finding files using :find <name> " Finding files using :find <name>
set path+=** set path+=**
" Also use :b to select files in buffer " Also use :b to select files in buffer
@ -73,3 +94,4 @@ let g:netrw_liststyle=3 " treeview
" ^p previous " ^p previous
" ^x^f filename completion " ^x^f filename completion
" }}}