Getting Vim to tab correctly when editing HTML, CSS, PHP, & Javascript

by | Nov 27, 2020 | 0 comments

Getting Vim to tab correctly when editing HTML, CSS, PHP, & Javascript

by | Nov 27, 2020 | CSS Tips and Tricks | 0 comments



I usually edit a .html or .php file and do HTML, PHP, CSS and JavaScript coding inside that filetype. Vim, as far as I can tell, just doesn’t get it when it comes to tabbing/indentation (especially with PHP). Vim ships with indenting files built in $VIMRUNTIME/indent. Even when I downloaded scripts that help support the indention built it, it still didn’t work. All I really wanted was for Vim to keep the indention of the previous line. Once I figured it out it solved all my tabbing/indention woes.

Read more @ http://enethrie.com/2011/06/14/vim-tabbing-aw…script-css-php/

source