however none of them worked except the last one. i would really
appreciate if someone could explain to me what was i doing wrong.
here are the solutions that didn't work
my .vimrc contains
set shiftwidth=2
set tabstop=2
solution1:
~/.vim/ftdetect/mine.vim
setlocal shiftwidth=4
setlocal tabstop=4
~/.vimrc
au BufRead,BufNewFile *.mine set filetype=mine
solution2:
~/.vim/after/ftdetect/mine.vim
setlocal shiftwidth=4
setlocal tabstop=4
au BufRead,BufNewFile *.mine set filetype=mine
solution3:
autocmd FileType mine setlocal shiftwidth=4 tabstop=4
the following solution worked
Solution 4:
~/.vim/after/ftplugin/mine.vim
setlocal shiftwidth=4
setlocal tabstop=4
~/.vimrc
au BufRead,BufNewFile *.mine set filetype=mine
any help is appreciated.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment