From 4b3aa74d4844d5d8393051c8088728fd6c4fadd0 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 12 Sep 2017 17:21:17 +0100 Subject: [vim] Add mappings to add whitespace before/after cursor --- vim/.vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index 42e06c9..a97b547 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -286,6 +286,12 @@ endif "" Mappings +nnoremap AddWhiteSpaceAfter a h:silent call repeat#set("\AddWhiteSpaceAfter") +nnoremap AddWhiteSpaceBefore i l:silent call repeat#set("\AddWhiteSpaceBefore") + +nmap ]w AddWhiteSpaceAfter +nmap [w AddWhiteSpaceBefore + nnoremap w :update nnoremap q :q! nnoremap d :bd! -- cgit v1.2.3