diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-05-19 17:07:02 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-05-19 17:07:02 +0100 |
commit | a5af0b25926a6b05eb4dd0bd6ffbf95600433e73 (patch) | |
tree | dca922386c8d8c245204c208489dc0326d394878 | |
parent | 240b3c22394c5dcd525c808f1d85eb9fd26ad568 (diff) |
added mapping to save and restore window automatically
-rw-r--r-- | nvimrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -203,8 +203,8 @@ nnoremap <Leader>gd :Gdiff<cr> " Commands nnoremap ym :Neomake!<cr> -nnoremap ys :mksession! tmp.vim<cr> -nnoremap yr :source tmp.vim<cr> +nnoremap <c-w>o :mksession! ~/tmp.vim<cr><c-w>o +nnoremap <c-w>r :source ~/tmp.vim<cr> " Misc nnoremap <tab> <C-^> @@ -225,7 +225,6 @@ vnoremap , : " Neovim specific tmap <C-_> <C-\><C-n><C-^> nnoremap <C-_> :b term<cr>i -" nnoremap <C-_> <C-^>i inoremap <C-_> <Esc><C-^>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 |