Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions plugin/interestingwords.vim
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ function! WordNavigation(direction)
else
normal! N
endif
catch /E486/
echohl WarningMsg | echomsg "E486: Pattern not found: " . @/
catch /^Vim\%((\a\+)\)\=:\%(E486\|E385\|E384\)/
if v:exception =~ 'E486'
echohl WarningMsg | echomsg "E486: Pattern not found: " . @/
elseif v:exception =~ 'E385'
echohl MoreMsg | echomsg "Search hit BOTTOM"
elseif v:exception =~ 'E384'
echohl MoreMsg | echomsg "Search hit TOP"
endif
endtry
endif
endfunction
Expand Down