summaryrefslogtreecommitdiff
path: root/nvimrc
diff options
context:
space:
mode:
Diffstat (limited to 'nvimrc')
-rw-r--r--nvimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/nvimrc b/nvimrc
index 1b347d5..b72d2eb 100644
--- a/nvimrc
+++ b/nvimrc
@@ -230,10 +230,11 @@ vnoremap , :
" Neovim specific
tmap <C-_> <C-\><C-n><C-^>
nnoremap <C-_> :b term<cr>i
-inoremap <C-_> <Esc><C-^>i
+inoremap <C-_> <Esc>:b term<cr>i
"" Restore cursor position
augroup autocommands
+ au!
autocmd BufWritePost *.cpp Neomake!
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |