Skip to content

Instantly share code, notes, and snippets.

@ubermuda
Created August 21, 2013 12:55
Show Gist options
  • Save ubermuda/6294108 to your computer and use it in GitHub Desktop.
Save ubermuda/6294108 to your computer and use it in GitHub Desktop.
set nocompatible
filetype on
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle 'ctrlp.vim'
Bundle 'Lokaltog/vim-powerline'
Bundle 'fugitive.vim'
Bundle 'jistr/vim-nerdtree-tabs'
Bundle 'epmatsw/ag.vim'
Bundle 'Tagbar'
Bundle 'evidens/vim-twig'
" Bundle 'bling/vim-airline'
" ignore all build files in ctrlp
set wildignore+=*/build/*
filetype plugin indent on
set laststatus=2
set encoding=utf-8
set t_Co=256
let g:Powerline_symbols = 'fancy'
set autoindent
set hlsearch
set incsearch
set number
set mouse=a
set showcmd
set nowrap
set smarttab
set shiftround
set ruler
set tabstop=4
set shiftwidth=4
set expandtab
set cursorline
set title
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif
syntax on
colorscheme desert
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': [],
\ 'AcceptSelection("t")': ['<cr>', '<c-m>'],
\ }
map <Leader>t <plug>NERDTreeTabsToggle<CR>
map <Leader>a <plug>Ag<CR>
map <F6> :!php bin/phpunit %<CR>
map <F7> :!php bin/phpunit<CR>
nmap <F8> :TagbarToggle<CR>
"nnoremap <C-n> :set paste!<CR>
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <C-n> :call NumberToggle()<cr>
au FocusLost * :set number
au FocusGained * :set relativenumber
autocmd InsertEnter * :set number
autocmd InsertLeave * :set relativenumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment