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