Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (85 sloc) 2.2 KB
" automatically install Vundle and plugins if not present
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
let iCanHazVundle=0
endif
"set up vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'The-NERD-tree'
"Bundle 'Syntastic'
Bundle 'Zenburn'
Bundle 'ctrlp.vim'
"Bundle 'rails.vim'
"Bundle 'ack.vim'
"Bundle 'NERD_Tree-and-ack'
"Bundle 'fugitive.vim'
if iCanHazVundle == 0
echo "Installing Bundles, please ignore key map error messages"
echo ""
:BundleInstall
endif
" end Vundle setup
filetype plugin indent on
let mapleader = ","
let g:mapleader = ","
filetype plugin indent on
map <Leader>n :NERDTreeToggle<CR>
imap <Leader>n <ESC>:NERDTreeToggle<CR>
nnoremap <Leader>b :buffers<CR>:buffer<Space>
"map <Leader>b :FufBuffer<CR>
"imap <Leader>b <ESC>:FufBuffer<CR>
noremap ,1 :1b<Esc>
noremap ,2 :2b<Esc>
noremap ,3 :3b<Esc>
noremap ,4 :4b<Esc>
noremap ,5 :5b<Esc>
noremap ,6 :6b<Esc>
noremap ,7 :7b<Esc>
noremap ,8 :8b<Esc>
noremap ,9 :9b<Esc>
noremap ,0 :0b<Esc>
" remember 700 lines"
set history=700
" automatically reload files on change"
set autoread
set ruler
set ignorecase " ignore case when searching
set hlsearch " highlight search results
set incsearch " make search act like browser search
set showmatch " highlight matching braces
syntax enable " enable syntax highlighting
set background=dark
set encoding=utf-8
set wb
set noswapfile
set expandtab " use spaces instead of tabs
set shiftwidth=2 " width of indent
set tabstop=2
set smarttab
set ai " Auto indent
set si " smart indent
set wrap " wrap lines
set nospell
" set paste " trips up neocomplcache
set cursorline
set cursorcolumn
colorscheme zenburn
let g:ctrlp_max_files=50000
let g:ctrlp_clear_cache_on_exit = 0
let g:neocomplcache_enable_at_startup = 1
nnoremap <Leader>nt :NeoComplCacheToggle<CR>
" ack-grep for word under cursor (depends on ack.vim plugin)
noremap <Leader>a :Ack<space><C-r><C-w><CR>