Skip to content

Commit 03e2d76

Browse files
committed
load plugin at startup
1 parent d5508d7 commit 03e2d76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ohmyvim/scripts.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def __init__(self):
307307
'autoload', 'pathogen.vim'))
308308
fd.write('call pathogen#runtime_append_all_bundles()\n')
309309
fd.write('source %s\n' % join(self.ohmyvim, 'theme.vim'))
310+
fd.write('source %s\n' % join(self.runtime, 'oh-my-vim',
311+
'plugin', 'ohmyvim.vim'))
310312

311313
if 'VIRTUAL_ENV' in os.environ:
312314
binary = join(os.getenv('VIRTUAL_ENV'), 'bin', 'oh-my-vim')
@@ -341,7 +343,6 @@ def __init__(self):
341343
with open(self.gvimrc, 'w') as fd:
342344
fd.write(GVIMRC)
343345

344-
345346
def log(self, value, *args):
346347
if args:
347348
value = value % args

plugin/ohmyvim.vim

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
" oh-my-vim related command / tools
33

4+
if exists("g:loaded_oh_my_vim") || &cp
5+
finish
6+
endif
7+
let g:loaded_oh_my_vim = 1
8+
49
command! -complete=custom,OhMyVimCmpl -nargs=+ OhMyVim :call OhMyVim("<args>")
510

611
function! OhMyVim(args)

0 commit comments

Comments
 (0)