diff --git a/nvim/init.vim b/nvim/init.vim index 9e64721..79c3572 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -10,9 +10,8 @@ let $LANG = 'en_US' " Disable splash screen set shortmess+=I -" Set relative line numbers to make it easier to jump to a line +" Enable line numbers set number -set relativenumber " Always show filename and modified marker in status line set statusline=%f\ %m @@ -40,6 +39,10 @@ set breakindent " Always show 4 lines above and below the cursor set scrolloff=4 +" Enable persistent undo +set undofile +set undodir=~/.local/share/nvim/undo + " Allow using uppercase W and Q commands to save/quit command WQ wq command Wq wq