aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 14:34:19 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 14:34:19 +1300
commit71acc00c5b688cc42e3d13881d1c6c9436335066 (patch)
tree1d41dd2d07c16f0cf3fc4e35f12bba95044d8066 /vim/ftplugin/html.vim
parentUse consistent long-line indent (diff)
downloaddotfiles-71acc00c5b688cc42e3d13881d1c6c9436335066.tar.gz
dotfiles-71acc00c5b688cc42e3d13881d1c6c9436335066.zip
Use :setfiletype in lieu of :setlocal filetype=
Use this recommended syntax in the custom ftplugin settings. Seems to be the recommended way to set filetype idempotently, and is present even in very old Vim (6.2 tested). From the Vim documentation for :setfiletype: >Set the 'filetype' option to {filetype}, but only if not done yet in a >sequence of (nested) autocommands. This is short for: > :if !did_filetype() > : setlocal filetype={filetype} > :endif >This command is used in a filetype.vim file to avoid setting the >'filetype' option twice, causing different settings and syntax files to >be loaded.
Diffstat (limited to 'vim/ftplugin/html.vim')
0 files changed, 0 insertions, 0 deletions