From 5bf44e7172bf6856f08ee0baaed4b86dd08476e1 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 26 Sep 2017 21:45:41 -0400 Subject: Added options for javascript --- init.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.vim b/init.vim index 3858def..5ec08f8 100644 --- a/init.vim +++ b/init.vim @@ -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 -- cgit v1.2.3