]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/ftplugin/go/motion.vim
Move to vim9script
[dotfiles.git] / vim / .vim / ftplugin / go / motion.vim
1 vim9script
2 if exists("*go#jump#Do") | finish | endif
3 nnoremap <silent> <buffer> ]] :call go#jump#Do(':/^\(func\\|type\)')<CR>
4 nnoremap <silent> <buffer> [[ :call go#jump#Do(':?^\(func\\|type\)')<CR>
5 nnoremap <silent> <buffer> ]m :call go#jump#Do(':/^\s*\(func\\|type\)')<CR>
6 nnoremap <silent> <buffer> [m :call go#jump#Do(':?^\s*\(func\\|type\)')<CR>