~gpanders/dotfiles

51c569e46b4b85edd6833d9f018e679bdf08ad7e — Greg Anders 2 years ago 25b80c1
Improve man ftplugin tag search
1 files changed, 2 insertions(+), 2 deletions(-)

M vim/.vim/after/ftplugin/man.vim
M vim/.vim/after/ftplugin/man.vim => vim/.vim/after/ftplugin/man.vim +2 -2
@@ 5,7 5,7 @@ if &filetype !=# 'man'
  finish
endif

nnoremap <buffer> <silent> <C-J> /\<\w\+(\d\+)<CR>:<C-U>nohlsearch<CR>
nnoremap <buffer> <silent> <C-K> ?\<\w\+(\d\+)<CR>:<C-U>nohlsearch<CR>
nnoremap <buffer> <silent> <C-J> /\C\%>1l\f\+([1-9][a-z]\=)\ze\_.\+\%$<CR>:<C-U>nohlsearch<CR>
nnoremap <buffer> <silent> <C-K> ?\C\%>1l\f\+([1-9][a-z]\=)\ze\_.\+\%$<CR>:<C-U>nohlsearch<CR>

let b:undo_ftplugin .= '|nun <buffer> <C-J>|nun <buffer> <C-K>'