aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-09-26 21:45:41 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-09-26 21:45:41 -0400
commit5bf44e7172bf6856f08ee0baaed4b86dd08476e1 (patch)
treee3831d5b470288b972246f4e66c51ddb9d88b9ed
parentcc40149e62b8c767658e85f580bff4fff3e084e1 (diff)
downloadvim-cfg-5bf44e7172bf6856f08ee0baaed4b86dd08476e1.tar.gz
vim-cfg-5bf44e7172bf6856f08ee0baaed4b86dd08476e1.tar.xz
Added options for javascript
-rw-r--r--init.vim13
1 files changed, 13 insertions, 0 deletions
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