From 09a45405008715f27513832925fbb42629b9a92f Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 4 Mar 2019 23:43:34 +0100 Subject: [PATCH] remove duplicate mapping --- vim/.vimrc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 0d78784..388a59e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -240,12 +240,7 @@ let g:sessions_dir = '~/.vim/sessions' exec 'nnoremap ss :mks! ' . g:sessions_dir . '/*.vim' exec 'nnoremap sr :so ' . g:sessions_dir. '/*.vim' -"" session management -let g:sessions_dir = '~/.vim/sessions' -exec 'nnoremap ss :mks! ' . g:sessions_dir . '/*.vim' -exec 'nnoremap sr :so ' . g:sessions_dir. '/*.vim' - -"" fast editing of the .vimrc +"" fast editing of config nnoremap ev :e $MYVIMRC "" cheatsheet @@ -282,12 +277,12 @@ augroup END "" txt, mail, tex augroup text autocmd! - autocmd FileType text,markdown,mail,tex set wrap wm=2 nocindent spell textwidth=79 colorcolumn=80 + autocmd FileType text,markdown,mail,tex set wrap wm=2 nocindent spell textwidth=79 augroup END augroup markdown autocmd! - autocmd FileType markdown set wrap wm=2 nocindent spell textwidth=79 colorcolumn=80 + autocmd FileType markdown set wrap wm=2 nocindent spell textwidth=79 augroup END "" Web @@ -315,6 +310,7 @@ endfunction " Reloading vim augroup VimReload autocmd! + autocmd BufRead $MYVIMRC :lcd fnamemodify(resolve($MYVIMRC), ':h:p') autocmd BufWritePost $MYVIMRC source $MYVIMRC | call LightlineReload() augroup END