Add codeline close function
This commit is contained in:
parent
19b5de920e
commit
06a50cf8b4
5
plugin/codelines.vim
Normal file
5
plugin/codelines.vim
Normal 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>
|
Loading…
Reference in a new issue