set nocompatible " Powerline configs let g:powerline_pycmd = 'py3' set laststatus=2 " Plugin 'python.vim' " Plugin 'python.vim--Vasiliev' " Plugin 'pyflakes.vim' " Plugin 'pydoc.vim' " Plugin 'mako.vim' " Plugin 'mako.vim--Torborg' " Plugin 'pep8' " Plugin 'The-NERD-tree' " Plugin 'taglist.vim' " Plugin 'Solarized' " Plugin 'jwalton512/vim-blade' " Plugin 'noahfrederick/vim-laravel' " Plugin 'tpope/vim-fugitive' " Plugin 'tpope/vim-surround' " Plugin 'scrooloose/syntastic' filetype plugin indent on " required for vundle set number set nowrap set noerrorbells set title set hidden set novisualbell set showmatch set history=1000 set autoread set title set ttyfast " Indentation settings set tabstop=4 set softtabstop=4 set shiftwidth=4 set textwidth=0 set expandtab set autoindent set smartindent set smarttab " file-specific autocommands if has("autocmd") au BufNewFile,BufRead *.ctp setfiletype php au FileType helpfile set nonumber au BufWritePost *.sh !chmod +x % au BufRead,BufNewFile *.php,*.js,*.css,*.html set tw=78 endif set backspace=indent,eol,start " UI Setings set cursorline set list set listchars=tab:->,trail:- " show tabs and trailing space " Colour setup set bg=dark silent! colorscheme solarized syntax on " Search set hls set ic set infercase set smartcase set incsearch " WildMenu settings set wildmenu set wildignore=*.o,*.obj,*.so,*.png,*.jpg,*.gif,*.pyc set wildmode=list:longest " Backspace set bs=indent,eol,start " Status line set ls=2 set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] " Key mappings let mapleader = "," nnoremap :TlistToggle noremap b :NERDTreeToggle \| :NERDTreeMirror noremap B :NERDTreeFind map v :sp ~/.vimrc map w :w! map x :tabclose map n :tabnew set notimeout if has("autocmd") au BufRead,BufNewFile *.html inoremap ;d
i au BufRead,BufNewFile *.html inoremap ;a F"i au BufRead,BufNewFile *.html inoremap ;i 3F"i endif " Syntastic Settings set statusline+=%#warningmsg# " set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_php_checkers = ['php', 'phpcs'] let g:syntastic_python_checkers = ['pylint']