Created
June 8, 2012 22:39
-
-
Save seanhess/2898492 to your computer and use it in GitHub Desktop.
sean vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "\<space>" | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
filetype plugin on | |
set expandtab | |
set ts=2 | |
set shiftwidth=2 | |
set number | |
set nolist | |
if has("gui_running") | |
set guioptions=egmrt | |
endif | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,node_modules,*.hi | |
"set wrap | |
"set textwidth=10 | |
"set wrapmargin=0 | |
"set formatoptions+=l | |
"set nowrap | |
"set tw=0 | |
" | |
" Disable annoying auto line break | |
fu! local:disableBr() | |
set wrap | |
set linebreak | |
set nolist " list disables linebreak | |
set textwidth=0 | |
set wrapmargin=0 | |
set fo-=t | |
endfu | |
" Case insensitive | |
set smartcase | |
set ignorecase | |
" disable swp files | |
"set nobackup | |
"set nowritebackup | |
set noswapfile | |
" Haskell Mode Instructions | |
"syntax on | |
"filetype plugin on | |
"au BufEnter *.hs compiler ghc | |
"let g:haddock_browser = "open -a Safari" | |
"let g:ghc = "/usr/bin/ghc" | |
" Disable line breaks for all file types | |
:au BufNewFile,BufRead *.* call local:disableBr() | |
" automatically compile coffeescript files after saving (buggy!) | |
"au BufWritePost *.coffee silent CoffeeMake! -b | cwindow " | redraw! | |
" automatically reload files when they've been changed | |
:set autoread | |
" run node files | |
" makeprg | |
au filetype javascript setlocal mp=node\ % | |
"au filetype coffee-script setlocal mp=coffee\ % | |
" disable auto-insertion of comments | |
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o | |
" ignore files | |
" Tree stuff | |
nmap <D-J> :NERDTreeFind<CR> | |
nmap <D-E> :NERDTreeToggle<CR> | |
" ack | |
nmap <D-F> :Ack<space> | |
" run coffeescript | |
nnoremap <D-r> :!coffee %<CR> | |
" forward and back buffers | |
nmap <D-h> :BufSurfBack<CR> | |
nmap <D-l> :BufSurfForward<CR> | |
" comments | |
map <D-/> <plug>NERDCommenterToggle | |
imap <D-/> <Esc><plug>NERDCommenterToggle i | |
" remap control p - using PEEPOpen instead | |
nmap <D-p> :CtrlP<CR> | |
nmap <D-P> :CtrlP<CR> | |
" PEEP OPEN | |
if has("gui_macvim") | |
" macmenu &File.New\ Tab key=<nop> | |
map <D-o> <Plug>PeepOpen | |
map <D-O> <Plug>PeepOpen | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment