From 6dcee553ba3bd16d8e1ec4b187f2f3fa6d113947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Fri, 24 Mar 2017 20:50:43 +0100 Subject: [PATCH] Vim with C++ and git --- files/.gitconfig | 1 + files/.vim/ftplugin/cpp.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/.gitconfig b/files/.gitconfig index 5361e0b..763eef0 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -1,5 +1,6 @@ [core] excludesfile = ~/.gitignore + editor = "vim '+normal gg0' +startinsert" [user] email = contact@tobast.fr name = Théophile Bastian diff --git a/files/.vim/ftplugin/cpp.vim b/files/.vim/ftplugin/cpp.vim index 3f97984..b963641 100644 --- a/files/.vim/ftplugin/cpp.vim +++ b/files/.vim/ftplugin/cpp.vim @@ -1 +1 @@ -nnoremap s :A +nnoremap s :w:A