Update mappings
parent
ba34edd8ae
commit
0d5804a6ac
43
.vimrc
43
.vimrc
|
@ -62,28 +62,35 @@ augroup END
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Keybindings
|
" Mappings {{{
|
||||||
"""""""""""""
|
"
|
||||||
|
|
||||||
" Leader keys
|
" Leader keys
|
||||||
nn <space> <nop>
|
|
||||||
|
nn <space><nop>
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
let maplocalleader = ";"
|
let maplocalleader = ";"
|
||||||
|
|
||||||
" Splits & navigation
|
" Splits & navigation
|
||||||
nm ss :sp<CR><c-w>w| " Split horizontal
|
|
||||||
nm sv :vs<CR><c-w>w| " Split vertical
|
nm s <c-w> " Split horizontal
|
||||||
nn sw <c-w>w| " Navigate splits
|
nm ss :sp<CR><c-w>w| " Split horizontal
|
||||||
nn sh <c-w>h| " "
|
nm sv :vs<CR><c-w>w| " Split vertical
|
||||||
nn sj <c-w>j| " "
|
nn sw <c-w>w| " Navigate splits
|
||||||
nn sk <c-w>k| " "
|
nn sh <c-w>h| "
|
||||||
nn sl <c-w>l| " "
|
nn sj <c-w>j| "
|
||||||
nn sH <c-w>8<| " Resize splits
|
nn sk <c-w>k| "
|
||||||
nn sJ <c-w>8-| " "
|
nn sl <c-w>l| "
|
||||||
nn sK <c-w>8+| " "
|
nn sH <c-w>8<| " Resize splits
|
||||||
nn sL <c-w>8>| " "
|
nn sJ <c-w>8-| "
|
||||||
nn s= <c-w>=| " Equalize splits
|
nn sK <c-w>8+| "
|
||||||
|
nn sL <c-w>8>| "
|
||||||
|
nn s= <c-w>=| " Equalize splits
|
||||||
|
|
||||||
" Open
|
" Open
|
||||||
|
|
||||||
nn sb :Lex<cr>| " File tree
|
nn sb :Lex<cr>| " File tree
|
||||||
|
nn <leader><leader> :noh<cr> |"
|
||||||
nn <leader>t :term<cr>| " Open terminal
|
nn <leader>t :term<cr>| " Open terminal
|
||||||
nn <leader>o :!xdg-open http://localhost:8080/%:t:r.html & <cr>
|
nn <leader>o :!xdg-open http://localhost:8080/%:t:r.html & <cr>
|
||||||
" Remaps
|
" Remaps
|
||||||
|
@ -97,12 +104,14 @@ ino <down> <nop>| " "
|
||||||
ino <up> <nop>| " "
|
ino <up> <nop>| " "
|
||||||
ino <right> <nop>| " "
|
ino <right> <nop>| " "
|
||||||
" Search
|
" Search
|
||||||
nn <leader>/ :noh<cr>
|
nn <c-_> :noh<cr>| " map 'ctrl + /'
|
||||||
|
" Use `the_silver_searcher` to find results (for selection if selection)
|
||||||
nn <leader>f :Ag <cr>
|
nn <leader>f :Ag <cr>
|
||||||
|
vm <leader>f y:Ag <C-r>"<cr>
|
||||||
" Toggle line numbers
|
" Toggle line numbers
|
||||||
nn <leader>n :set nu! rnu!<cr>
|
nn <leader>n :set nu! rnu!<cr>
|
||||||
" Vim configuration
|
" Vim configuration
|
||||||
nn <leader>ec :split $MYVIMRC<cr>
|
nn <leader>ec :vs $MYVIMRC<cr>
|
||||||
nn <leader>so :so %<cr>
|
nn <leader>so :so %<cr>
|
||||||
|
|
||||||
" Plugins
|
" Plugins
|
||||||
|
|
Loading…
Reference in New Issue