From: codybuell Date: Wed, 17 Jan 2018 20:09:58 +0000 (-0500) Subject: Add documentation for changing file extensions X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b8d99c7fd8712697f4627d7f93f91dc5283d50a6?ds=inline;pf=etc Add documentation for changing file extensions --- diff --git a/README.md b/README.md index ca7eef2..67d473c 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,14 @@ If you follow a link like this `[link text](link-url)` using the `ge` shortcut, let g:vim_markdown_autowrite = 1 ``` +### Change default file extension + +If you would like to use a file extension other than `.md` you may do so using the `vim_markdown_auto_extension_ext` variable: + +```vim +let g:vim_markdown_auto_extension_ext = 'txt' +``` + ## Mappings The following work on normal and visual modes: diff --git a/doc/vim-markdown.txt b/doc/vim-markdown.txt index 109ffdc..714d3a9 100644 --- a/doc/vim-markdown.txt +++ b/doc/vim-markdown.txt @@ -26,6 +26,7 @@ Contents ~ |vim-markdown-do-not-require-.md-extensions-for-markdown-links| 13. Auto-write when following link |vim-markdown-auto-write-when-following-link| + 14. Change default file extension |vim-markdown-auto-extension-ext| 4. Mappings |vim-markdown-mappings| 5. Commands |vim-markdown-commands| 6. Credits |vim-markdown-credits| @@ -309,6 +310,15 @@ this option will automatically save any edits you made before moving you: > let g:vim_markdown_autowrite = 1 < +------------------------------------------------------------------------------- + *vim-markdown-auto-extension-ext* +Change default file extension ~ + +If you would like to use a file extension other than '.md' you may do so using +the 'vim_markdown_auto_extension_ext' variable: +> + let g:vim_markdown_auto_extension_ext = 'txt' +< =============================================================================== *vim-markdown-mappings* Mappings ~