From a5af0b25926a6b05eb4dd0bd6ffbf95600433e73 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 19 May 2015 17:07:02 +0100 Subject: added mapping to save and restore window automatically --- nvimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvimrc b/nvimrc index b96d838..9602bf4 100644 --- a/nvimrc +++ b/nvimrc @@ -203,8 +203,8 @@ nnoremap gd :Gdiff " Commands nnoremap ym :Neomake! -nnoremap ys :mksession! tmp.vim -nnoremap yr :source tmp.vim +nnoremap o :mksession! ~/tmp.vimo +nnoremap r :source ~/tmp.vim " Misc nnoremap @@ -225,7 +225,6 @@ vnoremap , : " Neovim specific tmap nnoremap :b termi -" nnoremap i inoremap i "" Restore cursor position @@ -235,4 +234,5 @@ augroup cursorPosition \ if line("'\"") > 1 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif + autocmd! BufWritePost *.cpp Neomake! augroup END -- cgit v1.2.3