Skip to content

Instantly share code, notes, and snippets.

@ox
Created April 13, 2015 15:45
Show Gist options
  • Select an option

  • Save ox/f00df5aa5d79e1b75261 to your computer and use it in GitHub Desktop.

Select an option

Save ox/f00df5aa5d79e1b75261 to your computer and use it in GitHub Desktop.
Minimal vimrc, need to install pathogen plugins
set nocompatible " be iMproved, required
" use bash as the shell instead of fish
set shell=/bin/bash
" launch pathogen
execute pathogen#infect()
""
"" General Settings
""
syntax on
filetype plugin indent on
set backspace=2 " make backspace work like most other apps
set scrolloff=6 " context lines to show around a search result
set laststatus=2 " show status line
set tabstop=4 " A tab is 4 spaces
set expandtab " Always uses spaces instead of tabs
set softtabstop=4 " Insert 4 spaces when tab is pressed
set shiftwidth=4 " An indent is 4 spaces
set shiftround " Round indent to nearest shiftwidth multiple
colorscheme flatlandia
" MacVim settings
if has("gui_macvim")
let macvim_hig_shift_movement = 1
endif
""
"" PLugin Settings
""
"" Mutliple Cursors
" nothing yet
"" Syntastic
" recommended settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"" CtrlP
let g:ctrlp_custom_ignore = '\v[\/]((dist|exp|ios)|\.(git|hg|svn|a|o))$'
"" Airline
" nothing yet
"" hdevtools
au FileType haskell nnoremap <buffer> <F1> :HdevtoolsType<CR>
au FileType haskell nnoremap <buffer> <silent> <F2> :HdevtoolsClear<CR>
au FileType haskell nnoremap <buffer> <silent> <F3> :HdevtoolsInfo<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment