Created
February 28, 2012 10:40
-
-
Save saimonmoore/1931823 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" | |
" original repos on github | |
" Bundle 'mrtazz/molokai.vim' | |
" Bundle 'tpope/vim-fugitive' | |
" Bundle 'tpope/vim-rails.git' | |
" Bundle 'tpope/vim-endwise' | |
" Bundle 'tpope/vim-commentary' | |
" Bundle 'mileszs/ack.vim' | |
" Bundle 'tpope/vim-surround' | |
" Bundle 'msanders/snipmate.vim' | |
" Bundle 'tsaleh/vim-align' | |
" Bundle 'tpope/vim-unimpaired' | |
" Bundle 'scrooloose/syntastic' | |
" Bundle 'tpope/vim-fugitive' | |
" Bundle 'tpope/vim-rails.git' | |
" Bundle 'Townk/vim-autoclose.git' | |
" Bundle 'duff/vim-scratch.git' | |
" Bundle 'michaeljsmith/vim-indent-object' | |
" Bundle 'pangloss/vim-javascript' | |
" Bundle 'manalang/jshint.vim.git' | |
" Bundle 'taq/vim-rspec' | |
" Bundle 'digitaltoad/vim-jade.git' | |
" Bundle 'tpope/vim-haml' | |
" Bundle 'kana/vim-textobj-user.git' | |
" Bundle 'nelstrom/vim-textobj-rubyblock.git' | |
" Bundle 'tsaleh/vim-matchit' | |
" Bundle 'Lokaltog/vim-powerline' | |
" Bundle 'ervandew/supertab' | |
" Bundle 'tpope/vim-repeat' | |
" vim-scripts repos | |
" non github repos | |
Bundle 'git://git.wincent.com/command-t.git' | |
set number | |
set ruler | |
syntax on | |
" Set encoding | |
set encoding=utf-8 | |
" Whitespace stuff | |
set nowrap | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set list listchars=tab:\ \ ,trail:· | |
" Searching | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
" Tab completion | |
set wildmode=list:longest,list:full | |
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/* | |
" Status bar | |
set laststatus=2 | |
let mapleader = "," | |
" mappings | |
" Switch between the last two files | |
nnoremap <leader><leader> <c-^> | |
" Edit or view files in same directory as current file | |
cnoremap %% <C-R>=expand('%:h').'/'<cr> | |
map <leader>e :edit %% | |
map <leader>v :view %% | |
" ============== Command-T ================================== | |
let g:CommandTMaxHeight=20 | |
" Command-T tweaks for terminal vim | |
set ttimeoutlen=50 | |
if &term =~ "xterm" | |
let g:CommandTCancelMap = ['<ESC>', '<C-c>'] | |
let g:CommandTSelectNextMap = ['<C-n>', '<C-j>', '<ESC>OB'] | |
let g:CommandTSelectPrevMap = ['<C-p>', '<C-k>', '<ESC>OA'] | |
endif | |
" Custom CommandT mappings | |
map <leader>f :CommandTFlush<cr>\|:CommandT<cr> | |
map <leader>gf :CommandTFlush<cr>\|:CommandT %%<cr> | |
map <leader>ga :CommandTFlush<cr>\|:CommandT app<cr> | |
map <leader>gj :CommandTFlush<cr>\|:CommandT app/assets/javascripts<cr> | |
map <leader>gs :CommandTFlush<cr>\|:CommandT spec<cr> | |
map <leader>gv :CommandTFlush<cr>\|:CommandT vendor<cr> | |
map <leader>gc :CommandTFlush<cr>\|:CommandT app/controllers<cr> | |
map <leader>gm :CommandTFlush<cr>\|:CommandT app/models<cr> | |
map <leader>gh :CommandTFlush<cr>\|:CommandT app/helpers<cr> | |
map <leader>gl :CommandTFlush<cr>\|:CommandT lib<cr> | |
map <leader>go :CommandTFlush<cr>\|:CommandT config<cr> | |
" CommandTBuffer mapping | |
nmap <Leader>. :CommandTFlush<cr>\|:CommandTBuffer<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment