From 1fcd27f230eb34820ae745dd9b9cb879340d7f05 Mon Sep 17 00:00:00 2001 From: ziro Date: Fri, 6 Nov 2020 09:58:51 +0700 Subject: [PATCH] + Set leader to space, remap comment shortcut to ctrl+/ + Added shortcut to clear search result + Added shortcut to navigate splits --- .config/vim/vim_uni | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.config/vim/vim_uni b/.config/vim/vim_uni index a8fea31..e6fe5ec 100644 --- a/.config/vim/vim_uni +++ b/.config/vim/vim_uni @@ -4,6 +4,7 @@ " ============================== " ----- Vim Initial Config +let mapleader=" " set encoding=UTF-8 set hls set number @@ -34,9 +35,13 @@ noremap "+y noremap "+P " NERDComment thing -map gcc -vmap gc -imap gc +" means ctrl+/ for vim, for some reason... +map gcc +vmap gc +imap gc + +" Clear last search result +map c :noh " TwiddleCase function! TwiddleCase(str) @@ -87,3 +92,12 @@ let g:vimsence_editing_details = 'Editing {}' let g:vimsence_editing_state = 'Workspace: {}' let g:vimsence_file_explorer_text = 'In NERDTree' let g:vimsence_file_explorer_details = 'Looking for files' + +" Split opens at the bottom and right +set splitbelow splitright + +" Split navigation shortcuts +map h +map j +map k +map l