Browse Source

Remove enter bind to clear search

master
Taylor Bockman 9 years ago
parent
commit
a2e894f96f
  1. 8
      dotfiles/config/nvim/init.vim

8
dotfiles/config/nvim/init.vim

@ -131,9 +131,6 @@ let g:rust_recommended_style=0
" Note noremap is a normal mode non-recursive mapping " Note noremap is a normal mode non-recursive mapping
" nnoremap and nmap make the bind only work in normal mode " nnoremap and nmap make the bind only work in normal mode
"map C-l to clear last search
:noremap <silent> <c-l> :nohls<cr><c-l>
let mapleader=" " let mapleader=" "
map <silent> <Leader>t :NERDTreeToggle<CR> map <silent> <Leader>t :NERDTreeToggle<CR>
nnoremap <silent> <Leader>r :call NumberToggle()<CR> nnoremap <silent> <Leader>r :call NumberToggle()<CR>
@ -141,9 +138,8 @@ nnoremap <silent> <Leader>r :call NumberToggle()<CR>
" This one maps F5 to delete all trailing whitespace " This one maps F5 to delete all trailing whitespace
nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR> nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
" Pressing enter in command mode clears the current search highlighting until "Bind C-l to clear last search
" the next search. :noremap <silent> <c-l> :nohls<cr><c-l>
nnoremap <silent> <CR> :noh<CR><CR>
" ctrlp hotkeys " ctrlp hotkeys
let g:ctrlp_map='<c-p>' let g:ctrlp_map='<c-p>'

Loading…
Cancel
Save