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 --- Xresources/.Xresources/nord | 2 ++ vim/.vimrc | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Xresources/.Xresources/nord b/Xresources/.Xresources/nord index 55ede75..682b8d8 100644 --- a/Xresources/.Xresources/nord +++ b/Xresources/.Xresources/nord @@ -1,5 +1,7 @@ #include "/home/urbain/.Xresources/base" +URxvt.borderColor: #2E3440 + *.foreground: #D8DEE9 *.background: #2E3440 *.cursorColor: #D8DEE9 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