Set filetypes with autocmds (I think these will be fixed by some syntax scripts)
This commit is contained in:
parent
cd8896326e
commit
8fbbca85f4
1 changed files with 4 additions and 1 deletions
5
vimrc
5
vimrc
|
@ -194,7 +194,10 @@ if has('autocmd')
|
|||
filetype plugin indent on
|
||||
|
||||
" Markdown files can also have the .md extension
|
||||
autocmd BufAdd,BufEnter,BufFilePost *.md :setlocal ft=markdown
|
||||
autocmd BufAdd,BufEnter,BufFilePost *.md :setf markdown
|
||||
" SConstruct and SConscript files are Python
|
||||
autocmd BufAdd,BufEnter,BufFilePost SConstruct :setf python
|
||||
autocmd BufAdd,BufEnter,BufFilePost SConscript :setf python
|
||||
|
||||
" Jump to last known cursor position unless it's the first line, or past the
|
||||
" end of the file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue