From af55d03e147396d57e1d6359de796b8854e83d66 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 7 May 2013 14:45:16 +0200 Subject: [PATCH 1/2] Adhere to common conventions --- after/plugin/table-mode.vim | 4 ++-- autoload/tablemode.vim | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/after/plugin/table-mode.vim b/after/plugin/table-mode.vim index a5c37b4..4ff9834 100644 --- a/after/plugin/table-mode.vim +++ b/after/plugin/table-mode.vim @@ -20,10 +20,10 @@ " ============================================================================= " Finish if already loaded {{{1 -if exists('g:table_mode_loaded') +if exists('g:loaded_table_mode') finish endif -let g:table_mode_loaded = 1 +let g:loaded_table_mode = 1 "}}}1 " " Finish if Tabularize plugin is not available {{{1 diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index 3a2e074..5d816bd 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -21,6 +21,11 @@ " Private Functions {{{1 +if exists('g:autoloaded_table_mode') + finish +endif +let g:autoloaded_table_mode = 1 + function! s:SetBufferOptDefault(opt, val) "{{{2 if !exists('b:' . a:opt) let b:{a:opt} = a:val From 57a49efe7e34eecd62b2b510be2e303fa7eebd86 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 7 May 2013 14:47:56 +0200 Subject: [PATCH 2/2] Improve modeline settings --- after/plugin/table-mode.vim | 2 +- autoload/tablemode.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/after/plugin/table-mode.vim b/after/plugin/table-mode.vim index 4ff9834..6e7afd1 100644 --- a/after/plugin/table-mode.vim +++ b/after/plugin/table-mode.vim @@ -109,4 +109,4 @@ let &cpo = s:save_cpo " }}}1 " ModeLine {{{ -" vim:fdl=0 fdm=marker +" vim: sw=2 sts=2 fdl=0 fdm=marker diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index 5d816bd..4442fbe 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -493,4 +493,4 @@ function! tablemode#DeleteRow() "{{{2 endfunction " }}}2 -" }}}1 +" vim: sw=2 sts=2 fdl=0 fdm=marker