From 0d5804a6ac6211705002f6f4a3f53d6a83d72261 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 7 Apr 2023 22:48:21 +0200 Subject: [PATCH] Update mappings --- .vimrc | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/.vimrc b/.vimrc index ae7d35e..ef7d4a9 100644 --- a/.vimrc +++ b/.vimrc @@ -62,28 +62,35 @@ augroup END " }}} -" Keybindings -""""""""""""" +" Mappings {{{ +" " Leader keys -nn + +nn let mapleader = " " let maplocalleader = ";" + " Splits & navigation -nm ss :spw| " Split horizontal -nm sv :vsw| " Split vertical -nn sw w| " Navigate splits -nn sh h| " " -nn sj j| " " -nn sk k| " " -nn sl l| " " -nn sH 8<| " Resize splits -nn sJ 8-| " " -nn sK 8+| " " -nn sL 8>| " " -nn s= =| " Equalize splits + +nm s " Split horizontal +nm ss :spw| " Split horizontal +nm sv :vsw| " Split vertical +nn sw w| " Navigate splits +nn sh h| " +nn sj j| " +nn sk k| " +nn sl l| " +nn sH 8<| " Resize splits +nn sJ 8-| " +nn sK 8+| " +nn sL 8>| " +nn s= =| " Equalize splits + " Open + nn sb :Lex| " File tree +nn :noh |" nn t :term| " Open terminal nn o :!xdg-open http://localhost:8080/%:t:r.html & " Remaps @@ -97,12 +104,14 @@ ino | " " ino | " " ino | " " " Search -nn / :noh +nn :noh| " map 'ctrl + /' +" Use `the_silver_searcher` to find results (for selection if selection) nn f :Ag +vm f y:Ag " " Toggle line numbers nn n :set nu! rnu! " Vim configuration -nn ec :split $MYVIMRC +nn ec :vs $MYVIMRC nn so :so % " Plugins