1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
# This patch changes the plugin so that it works in the global runtime directory
# It also adds support for the .vimoutliner directory
Index: vimoutliner-0.3.4/ftdetect/vo_base.vim
===================================================================
--- vimoutliner-0.3.4.orig/ftdetect/vo_base.vim 2009-06-20 09:04:16.000000000 +0200
+++ vimoutliner-0.3.4/ftdetect/vo_base.vim 2009-06-20 09:05:09.000000000 +0200
@@ -74,9 +74,7 @@
"Revision 1.1 2003/02/08 21:11:26 noel
"Initial revision
"
-if exists("did_load_filetypes")
- finish
-endif
+
augroup filetypedetect
au! BufRead,BufNewFile *.otl setfiletype vo_base
au! BufRead,BufNewFile *.oln setfiletype xoutliner
Index: vimoutliner-0.3.4/ftplugin/vo_base.vim
===================================================================
--- vimoutliner-0.3.4.orig/ftplugin/vo_base.vim 2009-06-20 09:05:31.000000000 +0200
+++ vimoutliner-0.3.4/ftplugin/vo_base.vim 2009-06-20 09:10:14.000000000 +0200
@@ -57,10 +57,10 @@
" Load the plugin {{{1
" Prevenet the plugin from being loaded twice
-"if exists("b:did_ftplugin")
-" finish
-"endif
-"let b:did_ftplugin = 1
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
let b:current_syntax = "outliner"
" User Preferences {{{1
@@ -74,6 +74,10 @@
" End User Preferences
+" Personal configuration options files as per Matej Cepl
+setlocal runtimepath+=$HOME/.vimoutliner,$HOME
+runtime! .vimoutlinerrc vimoutlinerrc
+
" VimOutliner Standard Settings {{{1
setlocal autoindent
setlocal backspace=2
@@ -574,7 +578,7 @@
imap <buffer> <localleader>- ----------------------------------------<cr>
" switch document between the two types of bodytext styles
-if use_space_colon == 1
+if g:use_space_colon == 1
" First, convert document to the marker style
map <localleader>b :%s/\(^\t*\) :/\1/e<cr>:%s/\(^\t*\) /\1 : /e<cr>:let @/=""<cr>
" Now, convert document to the space style
@@ -669,7 +673,7 @@
let s:tmp = strpart(s:tmp, s:idx + 1)
let s:idx = stridx(s:tmp, ':')
"exec 'ru! ftplugin/vo_' . part . '.vim'
- exec "runtime! plugins/vo_" . s:part . ".vim"
+ exec "runtime! ftplugin/vo_" . s:part . ".vim"
endwhile
" The End
|