Skip to content

Commit

Permalink
Added vim-powerline and associated settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
cordmata committed Jun 28, 2012
1 parent 53947fe commit 20498b4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -40,3 +40,6 @@
[submodule ".vim/bundle/tagbar"]
path = .vim/bundle/tagbar
url = git://github.com/majutsushi/tagbar.git
[submodule ".vim/bundle/vim-powerline"]
path = .vim/bundle/vim-powerline
url = git://github.com/Lokaltog/vim-powerline.git
1 change: 1 addition & 0 deletions .tmux.conf
@@ -1,2 +1,3 @@
setw -g mode-keys vi
set -g status-keys vi
set -g default-terminal "xterm-256color"
1 change: 1 addition & 0 deletions .vim/bundle/vim-powerline
Submodule vim-powerline added at 7f53b5
9 changes: 8 additions & 1 deletion .vimrc
Expand Up @@ -7,9 +7,10 @@ let mapleader = ","

syntax on
colorscheme jellybeans
set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors

highlight clear SpellBad
highlight SpellBad cterm=underline ctermfg=green
highlight SpellBad cterm=underline ctermfg=green

set nocompatible
set autoindent
Expand All @@ -29,6 +30,8 @@ set backupdir=~/.vim/sessions//
set directory=~/.vim/sessions//
set pastetoggle=<F2>
set backspace=indent,eol,start
set encoding=utf-8
set laststatus=2 " Always show the statusline

nmap <silent> <c-h> :noh<CR>
nmap <silent> <c-j> :bn<CR>
Expand All @@ -40,8 +43,12 @@ nmap <leader>s :Gstatus<CR>
nmap <leader>b :LustyJuggler<CR>
autocmd FileType html set ft=htmldjango.html " For SnipMate
autocmd FileType rst set tw=80
autocmd BufWritePre * :%s/\s\+$//e " strip trailing whitespace
au BufNewFile,BufReadPost *.coffee,Cakefile,*.eco setl shiftwidth=2 expandtab softtabstop=2

let g:Powerline_symbols = 'fancy'

" Add the virtualenv's site-packages to vim path
py << EOF
import os.path
Expand Down
5 changes: 3 additions & 2 deletions .zshrc
Expand Up @@ -29,14 +29,15 @@ ZSH_THEME="robbyrussell"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git python pip django compleat node npm redis-cli)
plugins=(git python pip django compleat node npm redis-cli virtualenvwrapper)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...
bindkey -e
export PAGER='less'
export EDITOR='vim'
export TERM="xterm-256color"

export M2_HOME=/usr/local/maven
export M2=$M2_HOME/bin
Expand All @@ -52,4 +53,4 @@ export PIP_RESPECT_VIRTUALENV=true
# source virtualenvwrapper config so it is available at startup
. virtualenvwrapper.sh

alias static="cd /home/mcordial/repo/asurepo/repo/static/src"
alias cdstatic="cd /home/mcordial/repo/asurepo/repo/static/src"

0 comments on commit 20498b4

Please sign in to comment.