Move autocmds per FileType to ftdetect scripts
This commit is contained in:
parent
9fc695b273
commit
fccef0454c
1 changed files with 0 additions and 9 deletions
9
vimrc
9
vimrc
|
@ -190,15 +190,6 @@ nmap <leader>sn :e ~/.vim/bundle/snipmate/snippets/<C-r>=&filetype<CR>.snippets<
|
|||
|
||||
if has('autocmd')
|
||||
filetype plugin indent on
|
||||
" spelling for text files
|
||||
autocmd FileType text set spell
|
||||
" spaces as tabs for python
|
||||
autocmd FileType python setlocal expandtab
|
||||
" don't show tabs in html and xml
|
||||
autocmd FileType html,htmldjango,xml set sw=2 sts=2 listchars-=tab:▸\
|
||||
|
||||
autocmd BufNewFile,BufRead *.ledger setf ledger | comp ledger
|
||||
autocmd FileType ledger normal zR
|
||||
|
||||
" 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