vim edit last

main
Gil Portenseigne 2023-11-28 17:22:43 +01:00
parent 891b098458
commit 8ee105d770
2 changed files with 10 additions and 0 deletions

9
.vimrc
View File

@ -28,3 +28,12 @@ set undodir=~/.cache/vim/undodir " undo persistant
set undofile set undofile
set undolevels=1000 set undolevels=1000
set undoreload=10000 set undoreload=10000
" Go to last file(s) if invoked without arguments.
autocmd VimLeave * nested if (!isdirectory($HOME . "/.vim")) |
\ call mkdir($HOME . "/.vim") |
\ endif |
\ execute "mksession! " . $HOME . "/.vim/Session.vim"
autocmd VimEnter * nested if argc() == 0 && filereadable($HOME . "/.vim/Session.vim") |
\ execute "source " . $HOME . "/.vim/Session.vim"

View File

@ -34,3 +34,4 @@ git config --global user.name "Gil Portenseigne"
echo "Maintenant à installer : Idea, echo "Maintenant à installer : Idea,
Nexcloud sync, parsec" Nexcloud sync, parsec"
echo "https://github.com/nordtheme/gnome-terminal" echo "https://github.com/nordtheme/gnome-terminal"
echo "https://fostips.com/install-latest-firefox-non-esr-debian/"