Skip to content

Instantly share code, notes, and snippets.

@MasonM
Created September 6, 2011 14:06
Show Gist options
  • Save MasonM/1197610 to your computer and use it in GitHub Desktop.
Save MasonM/1197610 to your computer and use it in GitHub Desktop.
set nocompatible
set viminfo='50,<1000,s100,:100
filetype on " recognize filetypes
syntax on
filetype plugin on
filetype indent on
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set smartcase
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set autoindent
set nohls " do not highlight the last used search pattern
set incsearch " do incremental searching
set background=dark
set textwidth=120
set wildmenu
filetype indent on " Enable filetype-specific indenting
set pastetoggle=<C-T>
source ~/.vim/php-doc.vim
inoremap <C-L> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-L> :call PhpDocSingle()<CR>
vnoremap <C-L> :call PhpDocRange()<CR>
vnoremap <C-J> :!fmt -80<CR>
au BufNewFile,BufRead *.phtml set filetype=php
au BufNewFile,BufRead *.less set filetype=less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment