2019-07-12 08:32:33 +00:00
|
|
|
function! codelines#close()
|
|
|
|
let n_line = search('//>', 'bnW')
|
|
|
|
return trim(substitute(getline(n_line), '>', '<', ''))
|
|
|
|
endfunction
|
2019-09-23 07:37:48 +00:00
|
|
|
|
2019-07-12 08:32:33 +00:00
|
|
|
inoremap <silent> <Plug>(codelines-close) <c-r>=codelines#close()<cr>
|
2019-09-23 07:37:48 +00:00
|
|
|
noremap <silent> <Plug>(codelines-go-to-def) :exec "vimgrep #//>" . strpart(expand('<cword>'), 3) . "# code/*"<cr>
|