From ea5aa0d500fe1aaea8b982e0020b2d26343bcd7a Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Mon, 30 May 2016 15:42:29 +0200 Subject: [PATCH] vue stuff --- ohmyzshrc | 3 ++- vimrc | 16 +++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ohmyzshrc b/ohmyzshrc index 78a34ca..6601a94 100644 --- a/ohmyzshrc +++ b/ohmyzshrc @@ -4,6 +4,7 @@ export ZSH_TMUX_FIXTERM=false # Path to your oh-my-zsh installation. export ZSH=~/.oh-my-zsh +export LC_ALL=en_US.UTF-8 # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ @@ -53,7 +54,7 @@ ZSH_THEME="gentoo" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(tmux virtualenvwrapper ssh-agent extract) +plugins=(tmux virtualenvwrapper ssh-agent extract node npm) zstyle ':completion:*' special-dirs true zstyle :omz:plugins:ssh-agent identities id_rsa diff --git a/vimrc b/vimrc index ace1dab..db7f0bf 100644 --- a/vimrc +++ b/vimrc @@ -10,8 +10,6 @@ filetype off syntax on filetype indent plugin on -set cryptmethod=blowfish2 - "" system set enc=utf-8 set shell=/bin/zsh @@ -34,6 +32,7 @@ set undofile set undodir=~/.backup/ set backup set backupdir=~/.backup/ +set backupcopy=yes "" tabs and stuff set nosmartindent @@ -81,9 +80,6 @@ autocmd BufNewFile,BufReadPost *.md set formatoptions+=t autocmd BufNewFile,BufReadPost Dockerfile set filetype=dockerfile -au BufNewFile,BufRead *.mustache,*.hogan,*.hulk,*.hjs set filetype=html.mustache syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim -au BufNewFile,BufRead *.handlebars,*.hbs set filetype=html.handlebars syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim - "" Vundle " Setting up Vundle - the vim plugin bundler @@ -168,3 +164,13 @@ Bundle 'trevorrjohn/vim-obsidian' colorscheme obsidian Plugin 'othree/html5.vim' +Plugin 'othree/yajs.vim', { 'for': 'html' } +Plugin 'othree/javascript-libraries-syntax.vim' +Plugin 'vim-scripts/SyntaxComplete' +Plugin 'pangloss/vim-javascript' +Plugin 'posva/vim-vue' +au BufNewFile,BufRead *.vue set filetype=html +au BufNewFile,BufReadPost *.vue set shiftwidth=2 +au BufNewFile,BufReadPost *.vue set softtabstop=2 +au BufNewFile,BufReadPost *.js set shiftwidth=2 +au BufNewFile,BufReadPost *.js set softtabstop=2