mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Use esc to stop vim search highlight
This commit is contained in:
parent
32a22db8a8
commit
b09912c42c
|
@ -4,8 +4,8 @@ nnoremap <Left> <nop>
|
|||
nnoremap <Right> <nop>
|
||||
nnoremap <Up> <nop>
|
||||
|
||||
" Stop search highlight on Ctrl+l (until next search)
|
||||
map <silent> <C-l> :noh<CR>
|
||||
" Stop search highlight with Esc in normal mode (until next search)
|
||||
nnoremap <silent> <esc> :noh<CR>
|
||||
|
||||
" System clipboard interactions
|
||||
map <C-c> "+y
|
||||
|
@ -63,3 +63,10 @@ nnoremap <A-c> :w \| !comp <c-r>%<CR>
|
|||
" Shell check
|
||||
nnoremap <leader>p :!shellcheck %<CR>
|
||||
|
||||
" Redefine the incredibely annoying mappings that trigger
|
||||
" dynamic SQL completion with dbext and keeps on freezing
|
||||
" vim whenever pressed with a message saying that
|
||||
" dbext plugin isn't installed...
|
||||
" See :h ft-sql.txt
|
||||
let g:omni_sql_no_default_maps = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue