aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mappings.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/mappings.vim b/mappings.vim
index b699801..13c6b70 100644
--- a/mappings.vim
+++ b/mappings.vim
@@ -167,4 +167,9 @@ nnoremap <silent> <leader><Space> :call utils#StripTrailingWhitespaces()<CR>
" check the syntax group of current cursor position
nnoremap <silent> <leader>st :call utils#SynGroup()<CR>
+
+" Clear highlighting
+if maparg('<C-L>', 'n') ==# ''
+ nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
+endif
"}