Skip to content

Commit de66798

Browse files
committed
Make vim startup without error message when python isn't present
1 parent e42a2f4 commit de66798

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.vimrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@
413413
nnoremap <silent> <leader>tt :TagbarToggle<CR>
414414
"}
415415

416+
" PythonMode {
417+
" Disable if python support not present
418+
if !has('python')
419+
let g:pymode = 1
420+
endif
421+
" }
422+
416423
" Fugitive {
417424
nnoremap <silent> <leader>gs :Gstatus<CR>
418425
nnoremap <silent> <leader>gd :Gdiff<CR>

0 commit comments

Comments
 (0)