Permalink
Browse files

html,js,css用設定の追加

  • Loading branch information...
1 parent bacc691 commit abfc74c75b5ba10b4cf019b6ff20c196c684f6c4 @tomoh1r committed Apr 29, 2012
Showing with 18 additions and 1 deletion.
  1. +18 −1 files/.vimrc
View
@@ -12,6 +12,7 @@ endif
NeoBundle 'The-NERD-tree'
NeoBundle 'The-NERD-Commenter'
NeoBundle 'nvie/vim-flake8'
+NeoBundle 'hallettj/jslint.vim'
filetype plugin indent on
@@ -176,7 +177,9 @@ let g:NERDTreeIgnore=['\.svn', '\.pyc']
autocmd FileType python call SettingForPython()
autocmd FileType ini call SettingForPython()
autocmd FileType cfg call SettingForPython()
-autocmd FileType html call SettingForPython()
+autocmd FileType html call SettingForHTML()
+autocmd FileType js call SettingForHTML()
+autocmd FileType css call SettingForHTML()
autocmd FileType rst call SettingForRST()
function SettingForPython()
@@ -199,6 +202,20 @@ function SettingForPython()
autocmd BufWritePre * :%s/\s\+$//ge
endfunction
+function SettingForHTML()
+ setl autoindent
+ setl tabstop=2
+ setl softtabstop=2
+ setl shiftwidth=2
+ setl smarttab
+ setl expandtab
+ setl autoindent
+ setl nosmartindent
+ setl encoding=utf-8
+ setl fileencoding=utf-8
+ setl fileformat=unix
+endfunction
+
function SettingForRST()
setl autoindent
setl tabstop=3 expandtab shiftwidth=3 softtabstop=3

0 comments on commit abfc74c

Please sign in to comment.