commit 9cede6593eb60ba35fff83d8d8acd2834d28c7e9
parent febcd35cfd265aa9d51e13cbdc57818ccf1b07f9
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 13 Jan 2020 13:51:39 +0100
vim: fix up errors
Former-commit-id: d7e5d5c7bf785698a282199f190c942eb8aff8ba
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/vim/after/plugin/plugin-map-override.vim b/vim/after/plugin/plugin-map-override.vim
@@ -1,2 +1,4 @@
" get rid of this ANSIEscape mapping
-unmap <leader>swp
+if exists("g:loaded_AnsiEscPlugin")
+ unmap <leader>swp
+endif
diff --git a/vim/vimrc b/vim/vimrc
@@ -354,7 +354,7 @@ set wildignorecase
" Persistent undos (useful for plugins too){{{
if has('persistent_undo')
let myUndoDir = expand('$HOME/.vim' . '/undo')
- silent call mkdir(myUndoDir, 'p')
+ silent! call mkdir(myUndoDir, 'p')
let &undodir = myUndoDir
set undofile
endif
@@ -667,7 +667,10 @@ execute "digraphs z& " . 0x1D503
" So I don't have to mash shift all the time
nnoremap ; :
vnoremap ; :
-tnoremap <C-w>; <C-w>:
+
+if has('terminal')
+ tnoremap <C-w>; <C-w>:
+endif
" To keep the old functionality of ;
nnoremap : ;