[{"data":1,"prerenderedAt":85},["ShallowReactive",2],{"post:override-indentation-settings-for-specific-filetype":3},{"id":4,"title":5,"body":6,"date":72,"description":73,"draft":74,"extension":75,"meta":76,"navigation":77,"path":78,"seo":79,"stem":80,"tags":81,"__hash__":84},"posts\u002Fposts\u002Foverride-indentation-settings-for-specific-filetype.md","TIL: Override Vim Indentation Settings for a Specific Filetype",{"type":7,"value":8,"toc":69},"minimark",[9,22,37,47,54],[10,11,12,13,17,18,21],"p",{},"I'm working on a project which has thousands of lines of Coldfusion written with tabs. (Now's not the time to start that argument again!) I'm obviously not keen on throwing 2 spaces in the mix for indentation, so I looked up a way to override indentation for ",[14,15,16],"code",{},".cfm"," and ",[14,19,20],{},".cfc"," files only.",[10,23,24,25,32,33,36],{},"It sounds like there are a few ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fstackoverflow.com\u002Fa\u002F159066\u002F1525594",[30],"nofollow","different"," ways to do this, but the easiest way is adding this line at the bottom of your ",[14,34,35],{},"~\u002F.vimrc\u002F",".",[38,39,44],"pre",{"className":40,"code":42,"language":43},[41],"language-text","autocmd FileType cfml setlocal tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab\n","text",[14,45,42],{"__ignoreMap":46},"",[10,48,49,50,53],{},"You may want to run ",[14,51,52],{},":h tabstop"," in vim and read the notes about best practices for indentation. I did. :)",[10,55,56,57,62,63,68],{},"Here's the ",[26,58,61],{"href":59,"rel":60},"https:\u002F\u002Fstackoverflow.com\u002Fa\u002F30114038\u002F1525594",[30],"ubiquitious SO answer",", and here's the ",[26,64,67],{"href":65,"rel":66},"https:\u002F\u002Fgithub.com\u002Fernstvanderlinden\u002Fvim-coldfusion",[30],"Coldfusion syntax highlighter vim plugin"," I'm using.",{"title":46,"searchDepth":70,"depth":70,"links":71},2,[],"2018-06-16T20:06:57-04:00","I'm working on a project which has thousands of lines of Coldfusion written with tabs. (Now's not the time to start that argument again!) I'm obviously not keen on throwing 2 spaces in the mix for indentation, so I looked up a way to override indentation for .cfm and .cfc files only.",false,"md",{},true,"\u002Fposts\u002Foverride-indentation-settings-for-specific-filetype",{"title":5,"description":73},"posts\u002Foverride-indentation-settings-for-specific-filetype",[82,83],"vim","til","DPIA84nYh1l1mI2bdseUZ5xRR8H1V3gyRT0IVvT_6S4",1790471528124]