From 485e440ee8649c471e9445206ac58c09e35fac53 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 15:52:43 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 56a8381..1299ac5 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -71,6 +71,8 @@ endfunction function! s:makecols(orient, cols) range + let default_orientation = g:makecols_orientation + let default_cols = g:makecols_cols let g:makecols_orientation = a:orient if (v:count > 0) let g:makecols_cols = v:count @@ -89,6 +91,11 @@ function! s:makecols(orient, cols) range let selection = s:get_visual_selection() echo selection let converted_text = s:convert_selection(selection) + + + let g:makecols_orientation = default_orientation + let g:makecols_cols = default_cols + return s:replace_selected_text() endfunction