arie avatar arie committed 49fd664

Add vim-powerline and vim-virtualenv

Comments (0)

Files changed (3)

 [submodule ".vim/bundle/delmitmate"]
 	path = .vim/bundle/delmitmate
 	url = git://github.com/Raimondi/delimitMate.git
+[submodule ".vim/bundle/vim-virtualenv"]
+	path = .vim/bundle/vim-virtualenv
+	url = git://github.com/jmcantrell/vim-virtualenv.git
+[submodule ".vim/bundle/vim-powerline"]
+	path = .vim/bundle/vim-powerline
+	url = git://github.com/Lokaltog/vim-powerline.git
 " Deactivate quickfix use with pyflakes
 let g:pyflakes_use_quickfix = 0
 
-
 set viminfo=%,'30,/100,:200,<500,f1 "save history
     "% -> save and restore buffer list
     "'30 -> save marks for this many files
     "f1 -> save global marks
 
 " CloseTag
-autocmd FileType html,htmldjango let b:closetag_html_style=1
-autocmd FileType html,xhtml,xml,htmldjango source ~/.vim/bundle/closetag/plugin/closetag.vim
+au FileType html,htmldjango let b:closetag_html_style=1
+au FileType html,xhtml,xml,htmldjango source ~/.vim/bundle/closetag/plugin/closetag.vim
 
+" Filetype specific settings
 au BufRead,BufNewFile *.py  set ai sw=4 sts=4 et tw=72 " Doc strs
 au BufRead,BufNewFile *.js  set ai sw=2 sts=2 et tw=72 " Doc strs
 au BufRead,BufNewFile *.html set ai sw=2 sts=2 et tw=72 " Doc strs
 set ttyfast
 syntax enable
 set t_Co=256
-set guifont=Monospace\ 14
 colorscheme jellybeans
 
 " Tab labels show the filename without path(tail)
     augroup END
 endif
 
+" Fugitive tweaks
+autocmd QuickFixCmdPost *grep* cwindow
+autocmd QuickFixCmdPost *log* cwindow
+
 " Configure syntastic
 let g:syntastic_enable_signs=1
 let g:syntastic_auto_loc_list=1
 let g:syntastic_mode_map = { 'mode': 'passive',
 \ 'active_filetypes' : [],
 \ 'passive_filetypes' : [] }
+
+" Powerline
+set guifont=Consolas\ for\ Powerline\ FixedD:h9
+let g:Powerline_symbols="fancy"
+
+let g:SuperTabDefaultCompletionType = "context"
+set completeopt=menuone,longest,preview
 * http://csslint.net/about.html
 * https://github.com/jshint/node-jshint#readme 
 
+Patched Consolas font for Powerline:
+* http://codejury.com/consolas-font-in-vim-powerline-windows/
+
 Useful articles:
 
 * http://mirnazim.org/writings/vim-plugins-i-use
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.