-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Tue, May 26, 2009 at 04:18:16PM +0900, Hunt Jon wrote: > I would like to use Markdown and found > http://plasticboy.com/markdown-vim-mode/ > > I need to have file extensions as ".mdown", ".markdown" and ".md", > which are supported in > GitHub and TextMate. > > Can anybody help me how I can set up the files to be recognized as > Markdown files? > > Jon
Add this to ~/.vim/ftdetect/markdown.vim (create the directory if necessary): autocmd BufRead,BufNewFile *.\(md\|mdown\|markdown\) set filetype=mkd Simon - -- + privacy is necessary + using http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJKG50GAAoJEJL+/bfkTDL5PpcQAJ6yOP/JEIXiAfkYDVjstq6O qwE9YtCxlWO3Z5W+BS8dBKS1K50JvnVTxfQzsYjnbnqemvq4u5cmWUv/Qkc1cDa3 TU8qyzL+Xc3qcTLdeaup0vVMYy3Y1f7QPOUQ21WipDEU6+hIVnFcjv96IJSiK8GD 9CP3Ok9HXOHO4juSU/1fWNviJgQVPeuosHYEBYqmaS0xaDJlvPldVIxbKUcuJSzI tSLQtaYpwnNogDrP2AXKdNA4xFI5joW2nrLZgDc60uAO4RlmSMQ08Gkbfb+83si5 u5JZB3yhI2jJclBSKYcc+LdSA1m4luv6qZWNS/7v5x018MWgyfIi7qf1M4EQBl45 YvWDqpxhZJSmJGqRMvmeprYcHeJ/QAT4dGE514/iX/3gZFKcLQMUVsv0yPEeBmro JqpdMYCNXJUfL36P6dGtzthk1fx/JDtyotdlCA/iOayc+6/Wx5RUO/PCJGpDcRpY pIcAbG5MhOthpK7DDKdASjsNWh56Z+3juYYT51VwYxDFC5n5T0GOiIkYWvJaRyN5 /RsTRgNenhlcmDli1HNVKBkGzGTmIG8fCm690rQTZ5ckXfwr6UyF52rXbMQXCB2U sQBcWQSjnzPIJOwoD5VY7DEmVv3btrPkoNwYuRYvN0+XbexNmSC5xYxi62bBqb40 JowiuHyeMaLNGNMzTqg/ =MMz/ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---