Skip to content

Instantly share code, notes, and snippets.

@itspriddle
Created April 2, 2012 21:48
Show Gist options
  • Save itspriddle/2287470 to your computer and use it in GitHub Desktop.
Save itspriddle/2287470 to your computer and use it in GitHub Desktop.
if ! has("gui_macvim")
finish
endif
" Window settings {{{
" Hide toolbar and scrollbars
set guioptions-=T
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
" Label/tabbar title
set guitablabel=%t
set title titlestring=%f
" Default window size
set lines=48 columns=150
" }}}
" Other settings {{{
" Highlight column 80
set colorcolumn=80
" Line numbers
set number
" Highlight the current line
set cursorline
" Show fold column
" set foldcolumn=2
" Highlight spelling errors
set spell
" Highlight tabs and eol
set list
" Enable alt key as meta key
set macmeta
" Set window transparency to 20%
"set transparency=2
" HACK: disables audio bell by enabling visual bell which doesnt work in
" macvim right now
set visualbell
" Set default font
set guifont=Monaco:h10
" Disable blinking cursor
set gcr=a:blinkon0
" }}}
" Mappings {{{
" cmd-] to shift right
nmap <D-]> >>
vmap <D-]> >gv
imap <D-]> <C-t>
" cmd-[ to shift left
nmap <D-[> <<
vmap <D-[> <gv
imap <D-[> <C-d>
" opt-backspace: delete word
imap <M-BS> <C-w>
" cmd-backspace: delete line
imap <D-BS> <C-u>
" cmd-/: comment/uncomment
nmap <D-/> <C-_><C-_>
vmap <D-/> <C-_><C-_>gv
imap <D-/> <C-_><C-_>
" }}}
" Include local gvim config {{{
if filereadable(expand("~/.gvimrc.local"))
source ~/.gvimrc.local
endif
" }}}
" vim:ft=vim:fdm=marker:ts=2:sw=2:sts=2:et
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment