Skip to content

Instantly share code, notes, and snippets.

@y0ug
Created March 8, 2015 01:23
Show Gist options
  • Save y0ug/3ba80e3ea9edaed3c572 to your computer and use it in GitHub Desktop.
Save y0ug/3ba80e3ea9edaed3c572 to your computer and use it in GitHub Desktop.
" Color
"colo evening
" Enable syntax
syntax on
" Enable smarttab
filetype plugin indent on
" Tab settings
au BufRead,BufNewFile *.ps1 set filetype=powershell
au BufRead,BufNewFile Vagrantfile set filetype=ruby
autocmd Filetype html setlocal ts=2 sw=2 noexpandtab smarttab
autocmd Filetype ruby setlocal ts=2 sw=2 expandtab smarttab
autocmd Filetype python setlocal ts=4 sw=4 expandtab smarttab
autocmd Filetype json setlocal ts=2 sw=2 expandtab smarttab
autocmd Filetype xml setlocal ts=4 sw=4 expandtab smarttab
autocmd Filetype yml setlocal ts=2 sw=2 expandtab smarttab
autocmd Filetype javascript setlocal ts=4 sw=4 noexpandtab smarttab
autocmd Filetype powershell setlocal ts=4 sw=4 expandtab smarttab
" Format XML with gg=G
au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null
" Keep text selected after shifting it left or right.
vmap < <gv
vmap > >gv
" Spell
set spelllang=en,fr
execute pathogen#infect()
let g:ansible_options = {'ignore_blank_lines': 0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment