syntax on
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" minpac
+" Try to load minimal package manager
silent! packadd minpac
-if exists('*minpac#init')
+if !exists('g:loaded_minpac')
+ " Plugin-less settings
+else
call minpac#init()
call minpac#add('k-takata/minpac', {'type': 'opt'})
" editing
call minpac#add('vim-pandoc/vim-pandoc-syntax', {'type': 'opt'})
" others
call minpac#add('thanthese/Tortoise-Typing', {'type': 'opt'})
+
+" Load plugins right now
+"packloadall
+
+ " Plugin settings
endif
+" Common settings
+
+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Key-mappings
let mapleader = ' '
"silent! packadd! vim-pandoc-syntax
"silent! packadd! vim-javascript
"silent! packadd! vim-markdown
-"silent! packadd! previm
+"silent! packadd! vim-markdown
+silent! packadd! open-browser.vim
+silent! packadd! previm
let g:previm_enable_realtime = 1
nnoremap <silent><Leader>md :PrevimOpen<cr>
nnoremap <silent><Leader>pd :call Pandoc_Preview()<CR>
set encoding=utf-8
let g:deoplete#enable_at_startup = 1
-"packloadall
silent! helptags ALL
" local settings