Skip to content

Instantly share code, notes, and snippets.

@onlurking
Created April 7, 2016 18:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onlurking/6997f0fe9b6ae579273233ff14f04baf to your computer and use it in GitHub Desktop.
Save onlurking/6997f0fe9b6ae579273233ff14f04baf to your computer and use it in GitHub Desktop.
My vimrc
"
" ███████████████████████████
" ███████▀▀▀░░░░░░░▀▀▀███████
" ████▀░░░░░░░░░░░░░░░░░▀████
" ███│░░░░░░░░░░░░░░░░░░░│███
" ██▌│░░░░░░░░░░░░░░░░░░░│▐██
" ██░└┐░░░░░░░░░░░░░░░░░┌┘░██
" ██░░└┐░░░░░░░░░░░░░░░┌┘░░██
" ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██
" ██▌░│██████▌░░░▐██████│░▐██
" ███░│▐███▀▀░░▄░░▀▀███▌│░███
" ██▀─┘░░░░░░░▐█▌░░░░░░░└─▀██
" ██▄░░░▄▄▄▓░░▀█▀░░▓▄▄▄░░░▄██
" ████▄─┘██▌░░░░░░░▐██└─▄████
" █████░░▐█─┬┬┬┬┬┬┬─█▌░░█████
" ████▌░░░▀┬┼┼┼┼┼┼┼┬▀░░░▐████
" █████▄░░░└┴┴┴┴┴┴┴┘░░░▄█████
" ███████▄░░░░░░░░░░░▄███████
" ██████████▄▄▄▄▄▄▄██████████
" ███████████████████████████
"
" You are about to experience a potent dosage of Vim. Watch your steps.
"
" ╔══════════════════════════════════════════╗
" ║ ⎋ HERE BE VIMPIRES ⎋ ║
" ╚══════════════════════════════════════════╝
set background=dark
colorscheme Tomorrow-Night-Eighties
filetype plugin indent on " Enable full filetype detection
syntax on " Enable syntax highlighting
set number " View number lines
set expandtab " Always use spaces to indent anyway
set shiftwidth=4 " Indent using 4 spaces
set tabstop=4 " A tab character is 4 spaces wide
set autoindent " On new lines, copy indent from previous line
set smarttab
set backspace=indent,eol,start " Allow backspacing
set laststatus=2 " Always show the status bar
set encoding=utf-8 " Use utf-8
set shortmess+=Ot
call plug#begin('~/.vim/plugged')
" Programming
Plug 'sheerun/vim-polyglot', { 'on': [] }
Plug 'scrooloose/syntastic', { 'on': [] }
Plug 'myint/syntastic-extras', { 'on': [] }
Plug 'tpope/vim-surround'
Plug 'Shougo/deoplete.nvim'
Plug 'benekastah/neomake'
Plug 'ntpeters/vim-better-whitespace'
Plug 'Chiel92/vim-autoformat'
Plug 'rking/ag.vim', {'on': 'Ag'}
Plug 'joonty/vdebug', { 'for': ['php', 'python', 'javascript', 'ruby'] }
Plug 'jaxbot/browserlink.vim', { 'on': 'Preview' }
" <script src='http://127.0.0.1:9001/js/socket.js'></script>
" SCM
Plug 'mhinz/vim-signify'
Plug 'tpope/vim-fugitive', { 'on': [] }
" Writing
Plug 'reedes/vim-pencil'
Plug 'reedes/vim-wordy'
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
Plug 'tpope/vim-abolish'
Plug 'JamshedVesuna/vim-markdown-preview', { 'for': ['markdown'] }
" Snippets
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
Plug 'mattn/emmet-vim', { 'for': ['html','css','javascript','less','scss','markdown' ] }
" Interface
Plug 'mhinz/vim-startify'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Shougo/unite.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'mbbill/undotree', {'on': 'UndotreeToggle'}
" Tmux
Plug 'jpalardy/vim-slime'
" Navigation
Plug 'justinmk/vim-sneak'
Plug 'terryma/vim-multiple-cursors'
Plug 'ctrlpvim/ctrlp.vim'
" Tutorial
Plug 'fmoralesc/vim-tutor-mode'
call plug#end()
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_theme='raven'
" vim-slime with tmux:
let g:slime_target = "tmux"
let g:slime_python_ipython = 1
let g:slime_dont_ask_default = 1
let g:slime_default_config = {"socket_name": "default", "target_pane": "1"}
let g:sneak#streak = 1
" Use deoplete.
let g:deoplete#enable_at_startup = 1
" Syntastic
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_python_exec = '/usr/local/bin/python3'
let g:python_doc = 0
let g:pymode_python = 'python3'
let g:NERDTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ "Unknown" : "?"
\ }
if has("persistent_undo")
set undodir=~/.undodir/
set undofile
endif
let g:startify_custom_header =
\ map(split(system('fortune -s | cowsay -W 80 -w -n -f ren'), '\n'), '" ". v:val') + ['','']
augroup load_on_insert
autocmd!
autocmd InsertEnter * call plug#load('vim-fugitive', 'vim-polyglot',
\'syntastic', 'syntastic-extras') | autocmd! load_on_insert
augroup END
au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null
au FileType h,c,cpp setlocal equalprg=astyle\ --style=allman\ --indent=spaces=4\ --align-pointer=type\ --align-reference=name\ --attach-namespaces\ --attach-classes\ --attach-inlines\ --attach-extern-c\ --indent-cases\ --indent-switches\ --break-blocks=all\ --pad-oper\ --pad-header\ --close-templates\ --add-brackets\ --remove-comment-prefix\ --convert-tabs\ --max-code-length=87\ --break-after-logical\ --max-instatement-indent=40\ --indent-preproc-define\ --indent-preproc-cond\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment