From 2cdaeadc9eb68762b801dec68996e26131035642 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 15:49:14 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 956c768..56a8381 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -2,6 +2,14 @@ " Author: Levi Olson " Version: 1.0 +if !exists("g:makecols_orientation") || ! g:makecols_orientation + let g:makecols_orientation = "horz" +endif +if !exists("g:makecols_cols") || ! g:makecols_cols + let g:makecols_cols = "5" +endif + + function! s:beep() exe "norm! \" return "" @@ -89,13 +97,6 @@ vnoremap mc :call makecols(g:makecols_orientation, g:makecols vnoremap mch :call makecols("horz", g:makecols_cols) vnoremap mcv :call makecols("vert", g:makecols_cols) -if !exists("g:makecols_orientation") || ! g:makecols_orientation - let g:makecols_orientation = "horz" -endif -if !exists("g:makecols_cols") || ! g:makecols_cols - let g:makecols_cols = "5" -endif -