Skip to content

Instantly share code, notes, and snippets.

@indigo423
Created December 7, 2016 10:34
Show Gist options
  • Save indigo423/fcd8c9fa73c89dcecaa00afcaf88524d to your computer and use it in GitHub Desktop.
Save indigo423/fcd8c9fa73c89dcecaa00afcaf88524d to your computer and use it in GitHub Desktop.
set hlsearch
au WinLeave * set nocursorline nocursorcolumn
au WinEnter * set cursorline cursorcolumn
set cursorline
set encoding=utf-8 " The encoding displayed.
set fileencoding=utf-8 " The encoding written to file.
"FIXME: why do I have both of these lines? must investigate them:
syntax on
syntax enable
"------------------------------------------------------------------
"Solarized Colorscheme Config
"------------------------------------------------------------------
"set background=light
"set background=dark
"colorscheme solarized
"set tabs to 4 spaces.
set tabstop=4
set expandtab
set shiftwidth=4
"ruby and yaml files are indented by two
autocmd FileType ruby,rdoc,cucumber,yaml set softtabstop=2 tabstop=2 shiftwidth=2
"automatically indent
set smartindent
set cindent
"show line numbers on the left
set number
"case insensitive search
set ignorecase
set smartcase
"search the whole build tree for ctags
set tags=tags;/
"give me that nice little gutter so i don't make stuff too wide
set formatoptions=qrn1
set colorcolumn=120
" smartcase makes it so:
" /copyright " Case insensitive
" /Copyright " Case sensitive
" /copyright\C " Case sensitive
" /Copyright\c " Case insensitive
set smartcase
" Do some sweet status line magic!
set statusline=\b%n%m\:\ %f "buffer/filename /modified, e.g. `b3[+]: ~/.vimrc`
set statusline+=\ (%v\,%l/%L) "column/line/total lines, e.g. `(41,144/145)`
set statusline+=%{exists('g:loaded_fugitive')?fugitive#statusline():''}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment