Set ledger filetype for .ledger files via autocmd
This commit is contained in:
parent
0bd49aaa56
commit
900d07bfb3
1 changed files with 2 additions and 0 deletions
2
vimrc
2
vimrc
|
@ -189,6 +189,8 @@ if has('autocmd')
|
||||||
" don't show tabs in html and xml
|
" don't show tabs in html and xml
|
||||||
autocmd filetype html,xml set listchars-=tab:▸\
|
autocmd filetype html,xml set listchars-=tab:▸\
|
||||||
|
|
||||||
|
autocmd BufNewFile,BufRead *.ledger setf ledger | comp ledger
|
||||||
|
|
||||||
" Jump to last known cursor position unless it's the first line, or past the
|
" Jump to last known cursor position unless it's the first line, or past the
|
||||||
" end of the file
|
" end of the file
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue