diff --git a/.config/vim/vimrc b/.config/vim/vimrc index e45c4f3..8d90420 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -7,23 +7,6 @@ packadd! onedark.vim " Git information packadd! vim-gitgutter -" Keybinds ##################################################################### -" Set leader key -let mapleader = "\" -" 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 @@ -53,6 +36,23 @@ endif " Put new window below/right of current set splitbelow splitright +" Keybinds ##################################################################### +" Set leader key +let mapleader = "\" +" 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 + " Aesthetics ################################################################### " Use 24-bit (true-color) mode if (has('termguicolors'))