Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 81b43bbd81
Fetching contributors…

Cannot retrieve contributors at this time

92 lines (63 sloc) 1.3 KB
if ! has("gui_macvim")
" 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=70 columns=220
" }}}
" Other settings {{{
" Highlight column 80
set colorcolumn=80
" Line numbers
set number
" Highlight the current line
set cursorline
" 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
" }}}
" vim:ft=vim:fdm=marker:ts=2:sw=2:sts=2:et
Jump to Line
Something went wrong with that request. Please try again.