From 8daf79c5e9d90897dcf3fe68b4666f3080879cbc Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 18 Sep 2023 09:52:30 +0200 Subject: Update nvim configuration --- .config/vim/vimrc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to '.config/vim/vimrc') diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 7805be9..5250a4e 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -7,6 +7,10 @@ set fileencoding=utf-8 set encoding=utf-8 set fileformats=unix +" Avoid infinite screen recursion +unlet $SSH_CLIENT + +" Set sane defaults, if not using neovim already if !has('nvim') let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" " Check if the backup/swap dir exists @@ -117,10 +121,15 @@ endif autocmd BufWritePre * %s/\s\+$//e " Move around in insert mode with Alt+{hjkl} -imap -imap -imap -imap +inoremap +inoremap +inoremap +inoremap + +nnoremap h +nnoremap j +nnoremap k +nnoremap l " Go to end/start of line, like in the shell imap A @@ -149,7 +158,7 @@ vnoremap { `>a}` "" Plugin settings " junegunn/fzf.vim bindings -noremap :Files %:h +noremap :Files noremap :Buffers " lervag/vimtex @@ -250,4 +259,4 @@ if has('nvim') call plug#end() endif -colorscheme tokyonight +colorscheme night-owl -- cgit v1.3