Skip to content

Instantly share code, notes, and snippets.

@firetix
Created October 29, 2018 19:49
Show Gist options
  • Select an option

  • Save firetix/2b20735785460514b3fc4d06caf9359e to your computer and use it in GitHub Desktop.

Select an option

Save firetix/2b20735785460514b3fc4d06caf9359e to your computer and use it in GitHub Desktop.
"install vim-plug if we don't already have it
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
" Colorschemes
Plug 'captbaritone/molokai'
Plug 'altercation/vim-colors-solarized'
Plug 'ajh17/spacegray.vim'
" Syntax
Plug 'tpope/vim-git', { 'for': 'git' }
Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' }
Plug 'qrps/lilypond-vim', { 'for': 'lilypond' }
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'mxw/vim-jsx'
Plug 'kchmck/vim-coffee-script'
" Completion
Plug 'mattn/emmet-vim', { 'for': 'html' }
Plug 'terryma/vim-multiple-cursors'
" Make % match xml tags
Plug 'adelarsq/vim-matchit', { 'for': ['html', 'xml'] }
" Make tab handle all completions
Plug 'ervandew/supertab'
" Syntastic: Code linting errors
Plug 'scrooloose/syntastic'
" Pairs of handy bracket mappings
Plug 'tpope/vim-unimpaired'
" Fancy statusline
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Fuzzy file opener
Plug 'ctrlpvim/ctrlp.vim'
" Open from quick-fix-list in new split
Plug 'yssl/QFEnter'
" Respect .editorconfig files. (http://editorconfig.org/)
Plug 'editorconfig/editorconfig-vim'
" Search files using Silver Searcher
Plug 'rking/ag.vim'
" Make Ag searches of selected text
Plug 'Chun-Yang/vim-action-ag'
" Rename/remove files from within vim
Plug 'tpope/vim-eunuch'
" Make commenting easier
Plug 'tpope/vim-commentary'
" Navigate files in a sidebar
Plug 'scrooloose/nerdtree'
" CamelCase motions through words
Plug 'bkad/CamelCaseMotion'
" Split and join lines of code intelligently
Plug 'AndrewRadev/splitjoin.vim'
" Only show cursorline in the current window
Plug 'vim-scripts/CursorLineCurrentWindow'
" Split navigation that works with tmux
Plug 'christoomey/vim-tmux-navigator'
" Change brackets and quotes
Plug 'tpope/vim-surround'
" Make vim-surround repeatable with .
Plug 'tpope/vim-repeat'
" Custom motions
" Indent object
Plug 'michaeljsmith/vim-indent-object'
" Camel Case object
Plug 'bkad/CamelCaseMotion'
"
" Argument object
Plug 'vim-scripts/argtextobj.vim'
" Fugitive: Git from within Vim
Plug 'tpope/vim-fugitive'
" Show git status in the gutter
Plug 'airblade/vim-gitgutter'
" Python completion and tag navigation
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
" Wrap and upwrap argument lists
Plug 'FooSoft/vim-argwrap'
" Take notes and keep todo lists in vim
Plug 'vimwiki/vimwiki'
" Visualize undo tree
Plug 'mbbill/undotree'
Plug 'parkr/vim-jekyll'
" configure expanding of tabs for various file types
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile *.c set noexpandtab
au BufRead,BufNewFile *.h set noexpandtab
au BufRead,BufNewFile Makefile* set noexpandtab
"
" "
" --------------------------------------------------------------------------------
" " configure editor with tabs and nice stuff...
" "
" --------------------------------------------------------------------------------
set expandtab " enter spaces when tab is pressed
set textwidth=120 " break lines when line length increases
set tabstop=4 " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4 " number of spaces to use for auto indent
set autoindent " copy indent from current line when starting a new line
"
" " make backspaces more powerfull
set backspace=indent,eol,start
"
set ruler " show line and column number
syntax on " syntax highlighting
set showcmd " show (partial) command in status line
" Other plugins require curl
if executable("curl")
" Webapi: Dependency of Gist-vim
Plug 'mattn/webapi-vim'
" Gist: Post text to gist.github
Plug 'mattn/gist-vim'
endif
filetype plugin indent on " required!
call plug#end()
" For mouse click in NERDTree
set mouse=a
let g:NERDTreeMouseMode=3
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
set shell=/bin/bash
Plug 'davidhalter/jedi-vim'
Plug 'lambdalisue/vim-pyenv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment