Skip to content

Instantly share code, notes, and snippets.

@fendent
Created April 18, 2013 00:02
Show Gist options
  • Save fendent/5408791 to your computer and use it in GitHub Desktop.
Save fendent/5408791 to your computer and use it in GitHub Desktop.
" Needs to go here to supress NERDTree
set shortmess=lstI
runtime bundle/vim-pathogen/autoload/pathogen.vim
" Bundle: tpope/vim-pathogen
call pathogen#infect()
" ### Miscellaneous
" Bundle: scrooloose/nerdtree
" Bundle: majutsushi/tagbar
" Bundle: int3/vim-taglist-plus
" Bundle: IndexedSearch
" Bundle: AnsiEsc.vim
" Bundle: mattn/zencoding-vim
"
" ### Git
" # Bundle: Gist.vim
" # Bundle: tpope/vim-git
"
" ### Language Bundles
" Bundle: kchmck/vim-coffee-script
" Bundle: tpope/vim-haml
" Bundle: tpope/vim-markdown
" Bundle: vim-ruby/vim-ruby
" Bundle: digitaltoad/vim-jade
" Bundle: elzr/vim-json
"
" ### JS Bundles
" Bundle: walm/jshint.vim
" Bundle: pangloss/vim-javascript
"
" ### Perl Bundles
" Bundle: vim-perl/vim-perl
set nocompatible
set nobackup
set nowritebackup
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set shiftround
set hlsearch
set ignorecase
set noerrorbells
set visualbell
set t_vb=
" Make cursor move as expected with wrapped lines
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
set ff=unix
set showcmd
set scrolloff=5
set ruler
set number
set autoindent
set incsearch
set ignorecase
" Add support for xterm-256 mode
set t_Co=256
colorscheme nazca
set filetype=unix
autocmd BufNewFile,BufRead *.json set ft=javascript
filetype plugin indent on
"filetype plugin indent on
syntax on
"syntax sync fromstart
set matchpairs+=<:>
set backspace=indent,eol,start
"set mouse=a
"nnoremap + ddpkJ
"This will make an empty newline below the line you're editing right now when
"you press return and then move your cursor back to the line you were at
"before.
nnoremap <CR> mpo<ESC>`p
" Turns <C-Space> into a <CR>
nnoremap <Nul> <CR>
" Replace colon for command with semicolon
nnoremap ; :
" sudo if no privileges
cmap w!! w !sudo tee % >/dev/null
" Oops
command Q :q
command W :w
command Wq :wq
" autocmd BufEnter * doautocmd FileType
"NERDTree stuff
map <C-l> :tabn<CR>
map <C-h> :tabp<CR>
map <C-n> :tabnew<CR>
" nmap <C-_> !./%
" autocmd FileType asciidoc set nocindent noautoindent
autocmd BufReadPost * if line("'\"")>0 && line("'\"")<=line("$")|exe "normal g`\""|endif
nmap <C-up> [e
nmap <C-down> ]e
vmap <C-up> [egv
vmap <C-down> ]egv
" NERDTree stuff
" open automatically when vim starts with no file
autocmd vimenter * if !argc() | NERDTree | endif
set listchars=tab:>-
" Javascript stuff
autocmd FileType javascript setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
autocmd FileType html setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
autocmd FileType htmlcheetah setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
let javascript_enable_domhtmlcss=1
let g:JSLintHighlightErrorLine = 0
let g:html_indent_inctags = "html,body,head,tbody"
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
vmap <tab> >gv
vmap <s-tab> <gv
" Perl stuff
let perl_include_pod = 1
let perl_extended_vars = 1 " show extra Perl stuff
"let perl_fold = 1
"let perl_nofold_packages = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment