Skip to content

Instantly share code, notes, and snippets.

@braidn
Created September 28, 2010 17:20
Show Gist options
  • Save braidn/601382 to your computer and use it in GitHub Desktop.
Save braidn/601382 to your computer and use it in GitHub Desktop.
set langmenu=none
" turning off the gui in macvim
if has("gui_running")
set guioptions=egmrt
endif
" time change causes color change
let currentHour = strftime ("%H") echo "currentHour is " currentHour if currentHour < 6 + 0
colorscheme darkblue
echo "setting colorscheme elseif currentHour < 12 + 0
colorscheme morning
echo "setting colorscheme elseif currentHour < 18 + 0
colorscheme shine
echo "setting colorscheme else
colorscheme evening
echo "setting colorscheme endif
to darkblue" to morning" to shine" to evening"
" Font and size
set guifont=AnonymousPro:h12
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
set modelines=0
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set undofile
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
nnoremap j gj
nnoremap k gk
au FocusLost * :wa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment