Skip to content

Instantly share code, notes, and snippets.

@khafatech
Created May 24, 2014 04:56
Show Gist options
  • Select an option

  • Save khafatech/6ce229fcda79677cccaf to your computer and use it in GitHub Desktop.

Select an option

Save khafatech/6ce229fcda79677cccaf to your computer and use it in GitHub Desktop.
" GENERAL OPTIONS
behave xterm
set viminfo='20,\"500,%
set history=500 " keep {number} lines of command line history
set wrap " whether to wrap lines
set linebreak
" commands
" set number " number lines
set nocompatible
set incsearch
set showmatch
" set cinoptions=:0,p0,t0
set cinwords=if,unless,else,while,until,do,for,switch,case
set formatoptions=tcqr
"set cindent
" VIM DISPLAY OPTIONS
set showmode " show which mode (insert, replace, visual)
" set ruler
set title
" set showcmd " show commands in status line when typing
" set wildmenu
" my options
set ai
" backspace deletes over lines
set backspace=2
" fixdel
set tabstop=4 " ts, number of spaces that a tab is equivalent to sdf df sd
set shiftwidth=4 " sw, number of spaces shifted left and righ when issuing << and >>
" set textwidth=80
" typing tab puts spaces
set expandtab
" treat spaces as tabs
set softtabstop=4
" set mouse=a
" a vim plugin for plugins (see github repo)
call pathogen#infect()
syntax on
colors desert
filetype on
filetype indent on
filetype plugin on
if has("autocmd")
" au BufReadPost *.rkt,*.rktl set filetype=scheme
" au BufReadPost *.rkt,*.rktl set filetype=racket
au filetype racket set lisp
au filetype racket set autoindent
endif
autocmd BufRead,BufNewFile *.rb,*.erb set tabstop=2
autocmd BufRead,BufNewFile *.rb,*.erb set sw=2
autocmd BufRead,BufNewFile *.rb,*.erb set softtabstop=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment