diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-09-26 21:45:41 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-09-26 21:45:41 -0400 |
| commit | 5bf44e7172bf6856f08ee0baaed4b86dd08476e1 (patch) | |
| tree | e3831d5b470288b972246f4e66c51ddb9d88b9ed | |
| parent | cc40149e62b8c767658e85f580bff4fff3e084e1 (diff) | |
| download | vim-cfg-5bf44e7172bf6856f08ee0baaed4b86dd08476e1.tar.gz vim-cfg-5bf44e7172bf6856f08ee0baaed4b86dd08476e1.tar.xz | |
Added options for javascript
| -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 |
