From 04db98668639cb0b431d50e5963f6b156d728078 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 7 Dec 2020 19:15:23 +0100 Subject: vim: big update; move lots of things to lua --- .vim/general.vim | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to '.vim/general.vim') diff --git a/.vim/general.vim b/.vim/general.vim index a0d416c..84bafbf 100644 --- a/.vim/general.vim +++ b/.vim/general.vim @@ -8,7 +8,9 @@ set inccommand=split set noshowcmd " set autochdir " automatically sets cwd to the dir containing the file in the current buffer set hidden -set nolist listchars+=space:•,trail:¬ +set notimeout +set list +set listchars+=trail:¬ " ,space:• set iskeyword-=- set encoding=utf-8 nobomb @@ -32,6 +34,9 @@ set cursorline " set cursorcolumn set colorcolumn=80 set updatetime=300 +set splitbelow +set foldlevel=1 +set nofoldenable " For conceal markers. if has('conceal') @@ -39,11 +44,10 @@ if has('conceal') set conceallevel=1 concealcursor= endif -" centralize vimfiles -set backupdir=/tmp -set directory=/tmp +set backupdir=$XDG_CACHE_HOME +set directory=$XDG_CACHE_HOME if exists('&undodir') - set undodir=~/.vim/undo + set undodir=$XDG_CACHE_HOME endif " pane divider chars -- cgit 1.4.1