Skip to content

Instantly share code, notes, and snippets.

@lukassup
Created August 9, 2017 19:50
Show Gist options
  • Select an option

  • Save lukassup/9133413b0a5759cbcb87f6d763c059d3 to your computer and use it in GitHub Desktop.

Select an option

Save lukassup/9133413b0a5759cbcb87f6d763c059d3 to your computer and use it in GitHub Desktop.
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
" be cool
colorscheme pablo
" let &background = 'dark'
let &laststatus = 2
let &history = 256
let &number = v:true
set shortmess+=I
" apache.vim
let apache_version = '2.4'
" python.vim
let python_highlight_all = 1
" highlight colors by name
let rgb_file = '/usr/share/X11/rgb.txt'
" ruby.vim
let ruby_operators = 1
let ruby_space_errors = 1
" let ruby_fold = 1
" configure netrw plugin
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 20
augroup ProjectDrawer
autocmd!
autocmd VimEnter * :Lexplore
autocmd VimEnter * :wincmd p
augroup END
" display menu on tab completion
let &wildmenu = v:true
let &wildmode = 'longest:full,full'
" improve searching
set hlsearch!
let &incsearch = v:true
let &ignorecase = v:true
let &smartcase = v:true
" improve indentation
let &autoindent = v:true
let &smartindent = v:true
let &expandtab = v:true
let &tabstop = 8
let &softtabstop = 4
let &shiftwidth = &softtabstop
if has('cindent')
let &cindent = v:true
endif
" configure whitespace display
set nolist
let &listchars = 'eol:¬,tab:▸ ,trail:·'
" use mouse if available
if has('mouse')
let &mouse = 'a'
endif
" use system clipboard if available
if has('clipboard')
if has('xterm_clipboard')
let &clipboard = 'unnamedplus'
else
let &clipboard = 'unnamed'
endif
endif
" use minimal GUI for GVim
if has('gui')
let &guifont = 'Roboto Mono 11'
set guioptions-=t
set guioptions-=T
set guioptions-=r
set guioptions-=l
set guioptions-=b
set guioptions-=m
" save power
let &guicursor .= ',a:blinkon0'
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment