summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-19 17:07:02 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-19 17:07:02 +0100
commita5af0b25926a6b05eb4dd0bd6ffbf95600433e73 (patch)
treedca922386c8d8c245204c208489dc0326d394878
parent240b3c22394c5dcd525c808f1d85eb9fd26ad568 (diff)
added mapping to save and restore window automatically
-rw-r--r--nvimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/nvimrc b/nvimrc
index b96d838..9602bf4 100644
--- a/nvimrc
+++ b/nvimrc
@@ -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