Paul Isambert wrote:
Sam Roberts <[email protected]> a écrit:
On Fri, Oct 25, 2013 at 10:46 AM, Charles Campbell
<[email protected]> wrote:
Do you have a comment character? Use modelines. Assuming % kicks off a
comment, put the following at the bottom of the file:
json does not, infamously, support comments
But even if it did, I want ALL *.json to be not recognized as javascript.
Delete the autocommand defined in filetype.vim:
:au! filetypedetect BufNewFile,BufRead *.json
Modifying a file such as filetype.vim that came with vim (ie. a system
file) is a Bad Idea. After the next update, the changes (long
forgotten) will "disappear".
I was thinking that you wanted to change only "some" json files. To do
all *.json files:
In your $HOME/.vim/filetype.vim (create it if you don't have one): put
in the following line,
au BufNewFile,BufReadPost *.json setl ft=
This command will override the system-assigned filetype of json with:
nothing!
Regards,
Chip Campbell
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.