Second try on markdown

This commit is contained in:
Martin Potier 2020-04-07 16:38:45 +03:00
parent 57eab85b44
commit a3f54fb6ae
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E

View file

@ -195,7 +195,6 @@ let
\{'path': '~/vimwiki/personal.wiki'}
\]
au BufRead,BufNewFile *.wiki set filetype=vimwiki
au BufRead,BufNewFile *.md set filetype=markdown
:autocmd FileType vimwiki map <leader>d :VimwikiMakeDiaryNote
function! ToggleCalendar()
execute ":Calendar"
@ -212,6 +211,9 @@ let
endfunction
:autocmd FileType vimwiki map <leader>c :call ToggleCalendar()
" Still, edit md as markdown
au BufRead,BufNewFile *.md set filetype=markdown
" Thx Mats for the following
:cnoremap <C-A> <Home>
:cnoremap <C-B> <Left>