diff --git a/.config/vim/vimrc b/.config/vim/vimrc index b40f190..d83221b 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -1,4 +1,6 @@ " Keybinds ########################################################################## +" Set leader key +let mapleader = "\" " Disable arrow keys noremap "" noremap! @@ -11,6 +13,17 @@ noremap! " Stop highlighting search result when pressing Return nnoremap :nohlsearch +" Indentation jump +" https://vim.fandom.com/wiki/Move_to_next/previous_line_with_same_indentation +noremap :call search('^'. matchstr(getline('.'), '\(^\s*\)') .'\%<' . line('.') . 'l\S', 'be') +noremap :call search('^'. matchstr(getline('.'), '\(^\s*\)') .'\%>' . line('.') . 'l\S', 'e') + +" Split view navigation +nnoremap h +nnoremap j +nnoremap k +nnoremap l + " Settings ########################################################################## " hybrid linenumbers set number relativenumber