Add codeline close function

This commit is contained in:
Alexander Gehrke 2019-07-12 10:32:33 +02:00
parent 19b5de920e
commit 06a50cf8b4

5
plugin/codelines.vim Normal file
View file

@ -0,0 +1,5 @@
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>