nvim/plugin/codelines.vim

6 lines
204 B
VimL
Raw Normal View History

2019-07-12 08:32:33 +00:00
function! codelines#close()
let n_line = search('//>', 'bnW')
return trim(substitute(getline(n_line), '>', '<', ''))
endfunction
inoremap <silent> <Plug>(codelines-close) <c-r>=codelines#close()<cr>