Hi,
I am using vim in my recent started Ruby project. I found auto-indentation is not working when I am writing any .rhtml/.html file.
My ~/.vimrc file -
=================================
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
colorscheme zellner
set number
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=2
set autoindent
autocmd FileType ruby nmap <F5> :!ruby %<cr>
" Autoclose pipe in Ruby
autocmd FileType ruby let b:AutoClosePairs = AutoClose#DefaultPairsModified("|", "")
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
set shell=/bin/bash\ -i
Bundle 't9md/vim-ruby-xmpfilter'
Bundle 'Townk/vim-autoclose'
Bundle 'vim-ruby/vim-ruby'
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-rvm'
Bundle 'vim-scripts/Conque-Shell'
Bundle 'hdima/python-syntax'
autocmd FileType ruby nmap <buffer> <M-c> <Plug>(xmpfilter-mark)
autocmd FileType ruby xmap <buffer> <M-c> <Plug>(xmpfilter-mark)
autocmd FileType ruby imap <buffer> <M-c> <Plug>(xmpfilter-mark)
autocmd FileType ruby nmap <buffer> <M-z> <Plug>(xmpfilter-run)
autocmd FileType ruby xmap <buffer> <M-z> <Plug>(xmpfilter-run)
autocmd FileType ruby imap <buffer> <M-z> <Plug>(xmpfilter-run)
============================================================
How to set html auto indentation?
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, March 16, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment