Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (62 sloc) 3.187 kb
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""
""" Ben Bleything's Vim Setup
""" Based on the work of many others. See README.rdoc for credits.
"""
""" Git Hubs: http://github.com/bleything/dotvim
""" Internet Electronic Mail: ben@bleything.net
"""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" E D I T I N G O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on " turn on syntax highlighting
set number " show line numbers
set showbreak=+ " display a + at the beginning of a wrapped line
set showmatch " flash the matching bracket on inserting a )]} etc
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
""" FIXME: everything works as expected without these, I'm sure
""" that I'm just missing something
"set cindent " c-style language indentation
"set autoindent " automatically indent new lines
"set smartindent " automatically indent new lines
" for most code, use 4 space indents. specific filetypes are overridden
" in filetypes.vimrc
set softtabstop=4 " most of the time, we want a softtabstop of 4
set tabstop=4 " display tabs as 4 characters wide
set shiftwidth=4 " shift by 4 spaces when using >> and <<, etc
set expandtab " no tabs, just spaces kthx.
" Using autocmd for this allows it to be reset every time you open a
" file, which keeps overrides from being persistent
autocmd FileType * set softtabstop=4 tabstop=4 shiftwidth=4 expandtab
set list " show whitespace
set listchars=tab:»·,trail:· " show tabs and trailing spaces
set listchars+=extends:» " show a » when a line goes off the right
" edge of the screen
set listchars+=precedes:« " show a « when a line goes off the left
" edge of the screen
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" F O L D I N G O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set foldenable " enable folding
set foldmethod=indent " use the syntax definitions' folding
set foldlevelstart=99 " start with all folds open when switching buffers
set foldcolumn=3 " adds two columns of fold status on the left-hand
" side of the screen
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" S E A R C H O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set ignorecase " makes search patterns case-insensitive by default
set smartcase " overrides ignorecase when the pattern contains
" upper-case characters
set incsearch " incremental search. 'nuf said
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" S W A P A N D U N D O O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set directory=~/.vim/swapfiles,/var/tmp,/tmp,.
" enable persistent undo
if has("persistent_undo")
set undofile
set undodir=~/.vim/undofiles,/var/tmp,/tmp,.
endif
Jump to Line
Something went wrong with that request. Please try again.