diff options
Diffstat (limited to 'init.vim')
| -rw-r--r-- | init.vim | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,7 +1,12 @@ +scriptencoding utf-8 +set encoding=utf-8 + execute pathogen#infect('bundle/{}', 'themes/{}') " My old standard theme colorscheme distinguished +" colorscheme solarized +set background=dark " Love hate relationship with this thing. I guess it's back @@ -108,6 +113,7 @@ set nocompatible autocmd Filetype python call SetPythonOptions() autocmd Filetype htmldjango call SethtmldjangoOptions() autocmd Filetype json call SetJsonOptions() +autocmd Filetype javascript call SetjavascriptOptions() autocmd Filetype php call SetPHPOptions() autocmd Filetype html call SetHTMLOptions() autocmd Filetype sh call SetShellOptions() @@ -121,6 +127,13 @@ function SetPythonOptions() filetype indent on set smartindent endfunction +function SetjavascriptOptions() + set tabstop=2 + set shiftwidth=2 + set expandtab + filetype indent on + set smartindent +endfunction function SetJsonOptions() set tabstop=3 set shiftwidth=3 |
