summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-09-12 17:21:17 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-09-12 17:21:17 +0100
commit4b3aa74d4844d5d8393051c8088728fd6c4fadd0 (patch)
tree18b0409f7f31590fbfb9fffcad50396815f2ea30
parent481bb2c26f2d9aa52e5c8dec8dfc64af7bbff049 (diff)
[vim] Add mappings to add whitespace before/after cursor
-rw-r--r--Xresources/.Xresources/nord2
-rw-r--r--vim/.vimrc6
2 files changed, 8 insertions, 0 deletions
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 <silent> <Plug>AddWhiteSpaceAfter a <Esc>h:silent call repeat#set("\<Plug>AddWhiteSpaceAfter")<cr>
+nnoremap <silent> <Plug>AddWhiteSpaceBefore i <Esc>l:silent call repeat#set("\<Plug>AddWhiteSpaceBefore")<cr>
+
+nmap ]w <Plug>AddWhiteSpaceAfter
+nmap [w <Plug>AddWhiteSpaceBefore
+
nnoremap <Leader>w :update<cr>
nnoremap <Leader>q :q!<cr>
nnoremap <Leader>d :bd!<cr>