"nnoremap <silent><leader>php :-1read ~/.vim/template/php<CR>2ja
"" Visual Mode
-vnoremap jk <esc>
+"vnoremap jk <esc>
vmap < <gv
vmap > >gv
" Insert Mode
-inoremap jk <esc>
+"inoremap jk <esc>
inoremap <C-U> <C-G>u<C-U>
" Command Mode
autocmd FileType python setlocal expandtab softtabstop=4 shiftwidth=4
\ formatoptions+=croq colorcolumn=79
\ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
+ autocmd FileType netrw setlocal bufhidden=wipe
augroup end
augroup filetypes
" Pandoc
packadd vim-pandoc
packadd vim-pandoc-syntax
+function! Markdown_Preview()
+ let b:curr_file = expand('%:p')
+ call system('pandoc --standalone "' . b:curr_file . '" > markdown-preview.html')
+ call system('xdg-open markdown-preview.html 1>/dev/null 2>/dev/null &')
+endfunction
+nnoremap <Leader>md :call Markdown_Preview()<CR>
" Pick
packadd pick.vim