From 06a50cf8b4861605ec3b48337177d5f7194307b3 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Fri, 12 Jul 2019 10:32:33 +0200 Subject: [PATCH] Add codeline close function --- plugin/codelines.vim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 plugin/codelines.vim diff --git a/plugin/codelines.vim b/plugin/codelines.vim new file mode 100644 index 0000000..d3f4e21 --- /dev/null +++ b/plugin/codelines.vim @@ -0,0 +1,5 @@ +function! codelines#close() + let n_line = search('//>', 'bnW') + return trim(substitute(getline(n_line), '>', '<', '')) +endfunction +inoremap (codelines-close) =codelines#close()