From 99fdb2eb73a49eaa6456e3b3e25ed99b9744d14c Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 2 Oct 2019 17:09:13 +0200 Subject: [PATCH] Set leader key and add Gina shortcuts in vim --- vim/.vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vim/.vimrc b/vim/.vimrc index 73ec4c9..49f36e4 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,5 +1,6 @@ ""Basic stuff set number +set ttyfast ""Colors colorscheme synthwave set t_Co=256 @@ -15,7 +16,14 @@ set backupdir=~/.cache set directory=~/.cache ""Keybindings set pastetoggle= -map :noh +let mapleader="\" +nnoremap n :noh +"Move the current line up or down +nnoremap k :m-2== +nnoremap j :m+== +"Gina status and commit shotcuts +nnoremap gs :Gina status +nnoremap gc :Gina commit ""Markdown au FileType markdown Goyo let g:markdown_fenced_languages = ['cpp', 'python', 'java', 'sql']