From 883eee603ce1ec8b54486ec71f9b1aaab7252c67 Mon Sep 17 00:00:00 2001 From: dummy Date: Thu, 10 Jan 2019 12:42:19 -0500 Subject: [PATCH] vim can actually have persistant undo --- .gdbinit.d/gdbdashbard.conf | 2 +- .vimrc | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gdbinit.d/gdbdashbard.conf b/.gdbinit.d/gdbdashbard.conf index f707736..0cb2ac8 100644 --- a/.gdbinit.d/gdbdashbard.conf +++ b/.gdbinit.d/gdbdashbard.conf @@ -3,5 +3,5 @@ dashboard -layout assembly !registers stack memory source expressions !history !threads dashboard -style syntax_highlighting 'rrt' dashboard -style style_low '0;37' -#dashboard source -style context 15 +dashboard source -style context 15 dashboard stack -style arguments False diff --git a/.vimrc b/.vimrc index dcdfbb9..572ebc9 100644 --- a/.vimrc +++ b/.vimrc @@ -37,7 +37,8 @@ syntax on colorscheme deus set hlsearch -set nowrap +set wrap +set mouse+=a " don't clutter directories with backup files set nobackup @@ -46,6 +47,12 @@ set tabstop=4 set shiftwidth=4 " set to same as tabstop for auto-indent set clipboard=unnamedplus +" save undo buffer, make sure directory exists! +set undofile +set undodir=$HOME/.vim/undo +set undolevels=1000 +set undoreload=10000 + " folding set foldmethod=syntax set foldnestmax=1 @@ -123,7 +130,7 @@ augroup END " http://tmux-users.narkive.com/M9tIqoa0/c-pageup-and-c-pagedown-seems-not-to-work-in-tmux if &term =~ '^screen' && exists('$TMUX') " Mouse mode - set mouse+=a + " set mouse+=a set ttymouse=xterm2 " tmux sends xterm-style keys when xterm-keys option is on