Skip to content

Instantly share code, notes, and snippets.

@geastwood
Created April 30, 2014 21:02
Show Gist options
  • Save geastwood/11438344 to your computer and use it in GitHub Desktop.
Save geastwood/11438344 to your computer and use it in GitHub Desktop.
set nocompatible
filetype on
filetype indent on
filetype plugin on
syntax enable
set ignorecase
set hlsearch
set autoindent
set encoding=utf-8
set fileencoding=utf-8
syntax on
set number
set fileformat=unix
set expandtab
set shiftwidth=4
set smartindent
set tabstop=4
set linebreak
let mapleader = ","
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'L9'
Bundle 'altercation/vim-colors-solarized'
Bundle 'mattn/emmet-vim'
Bundle 'scrooloose/nerdtree'
Bundle 'pangloss/vim-javascript'
Bundle 'msanders/snipmate.vim'
Bundle 'tpope/vim-surround'
Bundle 'scrooloose/syntastic'
Bundle 'tpope/vim-unimpaired'
Bundle 'tpope/vim-fugitive'
Bundle 'bling/vim-airline'
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
set winwidth=84
set winheight=5
set winminheight=5
set smartcase
set incsearch
set showmatch
set noswapfile
set cursorline
set visualbell
set cc=120
set path=$PWD/**
set nohidden
autocmd BufWritePre * :%s/\s\+$//e
"set grepprg=ack
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
set laststatus=2
"map / <Plug>(easymotion-sn)
"omap / <Plug>(easymotion-tn)
"map n <Plug>(easymotion-next)
"map N <Plug>(easymotion-prev)
au FileType php setl ofu=phpcomplete#CompletePHP
nnoremap <leader>w :w<cr
nnoremap <leader>q :q<cr>
nnoremap <leader>l <C-w>10>
nnoremap <leader>L <C-w>10<
nnoremap <Space> za
vnoremap <Space> za
" Textingle lines
nmap <C-k> [e
nmap <C-j> ]e
" Bubble multiple lines
vmap <C-k> [egv
vmap <C-j> ]egv
map <C-n> :NERDTreeToggle<CR>
let g:NERDTreeShowBookmarks=1
autocmd Filetype smarty nnoremap <buffer> <leader>c I{* <esc>A *}<esc>
augroup PHP
autocmd!
autocmd Filetype php nnoremap <buffer> <leader>c I//<esc><cr>
augroup END
augroup JavaScriptCmds
autocmd!
autocmd Filetype javascript nnoremap <buffer> <leader>r :!node %<cr>
autocmd Filetype javascript nnoremap <buffer> <leader>c I//<esc>
autocmd Filetype javascript nnoremap <buffer> <leader>C I<esc>lxx<esc>
autocmd Filetype javascript setlocal nowrap
augroup END
set scrolloff=5
set wildmenu
let g:airline_section_y = 'BN: %{bufnr("%")}'
let g:airline_theme = 'bubblegum'
let g:user_emmet_install_global = 0
autocmd FileType html,css,tpl EmmetInstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment