Skip to content

Instantly share code, notes, and snippets.

@thecompyoda
Last active August 21, 2016 20:34
Show Gist options
  • Save thecompyoda/074cdb6c04c52198b2ab9165ed93e828 to your computer and use it in GitHub Desktop.
Save thecompyoda/074cdb6c04c52198b2ab9165ed93e828 to your computer and use it in GitHub Desktop.
Mac OSX Vim Settings
"---------------------
" 1. vim options
"---------------------
"{{{
syntax enable " enable syntax processing
set background=dark " set the background for the colorscheme below
set number " show line numbers
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set showcmd " show command in bottom bar
set cursorline " highlight current line
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when its needed
set showmatch " highlight matching [{()}]
set incsearch " search as characters are entered
set hlsearch " highlight search matches
set modelines=1 " look at the very last line of a file for file specific vim settings
" set list " show trailing special characters e.g. whitespace, tabs, newline etc...
"}}}
"---------------------
" 2. Key Mapping - WIP
"---------------------
"{{{
nnoremap <Space> za " space open/closes folds
"}}}
"---------------------
" 3. Color Options
"---------------------
"{{{
let g:solarized_termcolors=256 " 16|256 - number of colors to use
let g:solarized_termtrans=1 " 1|0 - toggle transparne background
let g:solarized_bold=1 " 1|0 - show/hide bold typefaces
let g:solarized_underline=1 " 1|0 - show/hide underlined typefaces
let g:solarized_italic=1 " 1|0 - show/hide italic typefaces
let g:solarized_contrast="normal" " normal|high|low - set contrast level
let g:solarized_visibility="normal" " normal|high|low - set intensity of 'set list' above
colorscheme solarized " load the solarized colorscheme
"}}}
"---------------------
" 4. Notes & To-Do's
"---------------------
"{{{
" Add gundo from https://github.com/sjl/gundo.vim.git
" Add ctrlp from https://github.com/kien/ctrlp.vim.git
" Add Launch Config, ctrlp bindings, gundo bindings,
" autogroups, & custom functions
" from http://dougblack.io/words/a-good-vimrc.html
"}}}
" vim:foldenable:foldlevel=0:foldmethod=marker:foldnestmax=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment