Skip to content

Instantly share code, notes, and snippets.

@robertsosinski
Created January 18, 2010 15:09
Show Gist options
  • Save robertsosinski/280080 to your computer and use it in GitHub Desktop.
Save robertsosinski/280080 to your computer and use it in GitHub Desktop.
MacVim config file
syntax on
"font
color github
set cursorline
set guifont=Monaco:h12
set guioptions-=T
set linespace=1
set vb
"indents
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
set autoindent
"features
set number
set ruler
set ignorecase
"invisibles
set list
set listchars=eol:¬,tab:\ \
"tabs
map <S-Tab> :tabn<CR>
map <C-t> :tabnew<CR>
map <C-i> :tabp<CR>
map <C-o> :tabn<CR>
"splits
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-h> <C-w>h
map <C-l> <C-w>l
map + <C-w>+
map - <C-w>-
map = <C-w>=
map _ <C-w>_
"folding
set foldmethod=syntax
set nofoldenable
"temp
set directory=~/.vim/temp//
set backupdir=~/.vim/temp//
"fullscreen
if has("gui_macvim")
set fuopt=maxhorz,maxvert
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment