Skip to content
Browse files

Moar vim conf.

  • Loading branch information...
1 parent ff98b6d commit 4aaac6761754346ff75ed5ee1220add82ae07dee @olav committed Aug 14, 2012
Showing with 9 additions and 5 deletions.
  1. +8 −5 vimrc
  2. +1 −0 zshrc
View
13 vimrc
@@ -9,9 +9,12 @@ call pathogen#helptags()
" Colors
set ruler
-syntax on
+syntax enable
set background=dark
-colorscheme solarized
+"colorscheme molokai
+"let g:molokai_original = 1
+filetype on
+filetype plugin indent on
" Leader
let mapleader = ","
@@ -45,6 +48,7 @@ set scrolloff=3
" Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby
+au BufRead,BufNewFile *.js set filetype=javascript
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
@@ -53,8 +57,6 @@ set backspace=indent,eol,start
set autoindent
set nocindent
set nosmartindent
-filetype on
-filetype plugin indent on
" Use modeline overrides
set modeline
@@ -76,11 +78,12 @@ vmap <S-Tab> <gv
" CtrlP
-set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.jar,*.swp,*.zip,*.exe,*/target/*,*/wro/*,*/\.settings/*
+set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.jar,*.swp,*.zip,*.exe,*.xml,*.tc,*.png,*.jpg,*.jpeg,*.gif,*.psd,*.pdf,*.log,*.kdb,*/logs/*,*/target/*,*/wro/*,*/node_modules/*
let g:ctrlp_max_height = 20
let g:ctrlp_by_filename = 1
let g:ctrlp_switch_buffer = 2
let g:ctrlp_dotfiles = 0
+let g:ctrlp_working_path_mode = 'c'
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$',
View
1 zshrc
@@ -82,6 +82,7 @@ alias "gdc"="git diff --cached"
alias "pull"="git pull"
alias "push"="git push"
alias "m"="gvim"
+alias "v"="vim"
alias "top"="htop"
alias "rr"="source $HOME/.zshrc"
alias "ss"="screen -D -R"

0 comments on commit 4aaac67

Please sign in to comment.
Something went wrong with that request. Please try again.