Something went wrong. Try again.
nix
Something went wrong. Try again.
736 B · 33 lines
at main
12345678910111213141516171819202122232425262728293031323334let mapleader=' 'set cmdheight=1set cursorlineset encoding=utf8set noerrorbellsset hlsearch " Highlight search resultsset lazyredraw " Don't redraw during macrosset showcmdset noshowmodeset termguicolorsset novisualbellset whichwrap+=<,>,h,lnmap <leader>- :source ~/.vimrc<CR>:redraw!<CR>:echo "~/.vimrc reloaded"<CR>" Disable movement with arrow keys" Enforce use of hjklnoremap <Left> <Nop>noremap <Right> <Nop>noremap <Up> <Nop>noremap <Down> <Nop>inoremap <Left> <Nop>inoremap <Right> <Nop>inoremap <Up> <Nop>inoremap <Down> <Nop>augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter * set norelativenumberaugroup END