Skip to content

Instantly share code, notes, and snippets.

Created March 3, 2012 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1968754 to your computer and use it in GitHub Desktop.
Save anonymous/1968754 to your computer and use it in GitHub Desktop.
" Configure vim to suck less
let softab = "on"
let tabsize = 2
let arrowkeys = "on"
let gui_font = "Monaco\ 11"
let mapleader = ","
colorscheme sexy-railscasts
" Fix vim defaults
set nocompatible
set lazyredraw
set ttyfast
set backspace=indent,eol,start " backspace works as expected
set nostartofline " Make j/k respect the columns (after all, this is not a freaking typewriter)
set modeline " Respect modeline of the file (the famous "vi:noai:sw=3 ts=6" on the beginning of the files)
set hidden " Avoid asking to save before hiding
set enc=utf-8
filetype plugin indent on
" Basic UI
set visualbell
set shm=atIWswxrnmlf
set ruler
set title
set titlestring=%f%(\ [%M]%) " Show file name at the title
set numberwidth=1
set report=2
set laststatus=2
set statusline=%f
set showcmd
set showmode
set winminheight=0
set number
syntax on
" Format
set formatprg=par
" GUI Options
if has("mouse")
set mouse=a
set mousefocus
endif
if has("gui_running")
set cursorline
let &guifont=gui_font
set go-=T to
set go-=m
set guioptions-=L
set guioptions-=r
if !exists("g:vimrcloaded")
winpos 935 560
if !&diff
winsize 81 24
else
winsize 27 20
endif
let g:vimrcloaded = 1
endif
else
colorscheme solarized
:silent !echo -ne "\033]12;orange\007"
let &t_SI = "\033]12;green\007"
let &t_EI = "\033]12;orange\007"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment