dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5e95a9e7c1346189be383b49f0eef121368597ee
parent fe79a76ad8cdc0c563deaa275348c80ea3b8edec
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue,  9 Mar 2021 11:12:59 +0100

vim: mappings to highlight specific lines

Diffstat:
Mvim/vimrc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -915,6 +915,13 @@ nnoremap <leader>p "0p vnoremap <leader>p "0p nnoremap <leader>P "0P vnoremap <leader>P "0P + +" Highlight one or more lines +highlight LineHighlight ctermbg=darkgray guibg=darkgray cterm=bold +nnoremap <silent> <leader>hl :call matchadd('LineHighlight', '\%'.line('.').'l')<CR> +vnoremap <silent> <leader>hl :call matchadd('LineHighlight', '\%'.line('.').'l')<CR> +nnoremap <silent> <leader>hc :call clearmatches()<CR> +vnoremap <silent> <leader>hc :call clearmatches()<CR> " Autocommands {{{1 if has('autocmd') augroup vimrc_sets