From 81424f8f951f9030db76d7f77cf9c7413e551ffa Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 27 Oct 2015 14:46:13 +0100 Subject: [PATCH] =?UTF-8?q?template=20f=C3=BCr=20cpp=20+=20ein=20paar=20ne?= =?UTF-8?q?ue=20leader=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vim/.vim/templates/cpp | 9 +++++++++ vim/.vimrc | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 vim/.vim/templates/cpp diff --git a/vim/.vim/templates/cpp b/vim/.vim/templates/cpp new file mode 100644 index 0000000..b296ce2 --- /dev/null +++ b/vim/.vim/templates/cpp @@ -0,0 +1,9 @@ +#include + +using namespace std; + +int main( int argc, char *argv[] ) { + + return 0; +} +# cursor: 6 del diff --git a/vim/.vimrc b/vim/.vimrc index a775972..a36858d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -79,8 +79,8 @@ nnoremap :noh nnoremap c :%s/\s\+$//e nnoremap v :%s/\n\{3,}/\r\r/e nnoremap p :set invpaste paste? -nnoremap a= :Tabularise /= -vnoremap a= :'<,'>Tabularize /= +nnoremap a :Tabularize / +vnoremap a :'<,'>Tabularize / nnoremap w vl nmap :tabp