Skip to content

Instantly share code, notes, and snippets.

@iboard
Last active September 13, 2019 12:20
Show Gist options
  • Save iboard/9f634aa50aecec94dbd19046a9b67dce to your computer and use it in GitHub Desktop.
Save iboard/9f634aa50aecec94dbd19046a9b67dce to your computer and use it in GitHub Desktop.
my .vimrc.plugins file
"
" Vundle Plug-in Manager
"
" To verify the settings are loaded uncomment the next line and start vim
" echo "Loading Vundle Plug-in Manager"
set nocompatible
filetype off " required!
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" ESSENTIAL
Plugin 'VundleVim/Vundle.vim'
" FzF
Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plugin 'junegunn/fzf.vim'
" COMMON TOOLS
Plugin 'godlygeek/tabular'
" COLORS
Plugin 'danilo-augusto/vim-afterglow'
Plugin 'endel/vim-github-colorscheme'
"Plugin 'YorickPeterse/happy_hacking.vim'
"Plugin 'NLKNguyen/papercolor-theme'
"Plugin 'keith/parsec.vim'
"Plugin 'kristijanhusak/vim-hybrid-material'
Plugin 'AlessandroYorba/Sierra'
Plugin 'ayu-theme/ayu-vim'
let ayucolor="mirage"
Plugin 'altercation/vim-colors-solarized'
Plugin 'arcticicestudio/nord-vim'
Plugin 'rakr/vim-one'
Plugin 'dracula/vim', { 'as': 'dracula' }
Plugin 'haishanh/night-owl.vim'
Plugin 'cormacrelf/vim-colors-github'
Plugin 'whatyouhide/vim-gotham'
Plugin 'jacoborus/tender.vim'
" PROGRAMMING
Plugin 'elixir-editors/vim-elixir'
Plugin 'rizzatti/dash.vim'
call vundle#end()
filetype plugin indent on
"
" Andi Altendorfer's VIM Setup
" For macbook 'craftsman', started from scratch, 2019-05-03
" ---------------------------------------------------------
if filereadable(expand("~/.vimrc.plugins"))
source ~/.vimrc.plugins
endif
"
" BASIC SETUP
" -----------------------------------------------"
"
set path+=**
let mapleader = ","
set number
set relativenumber
filetype on
let g:netrw_list_hide= '.*\.swp$'
" Set colorscheme
let g:enable_bold_font = 1
let g:enable_italic_font = 1
let g:hybrid_transparent_background = 1
let g:sierra_Pitch = 1
colorscheme tender
" KEY MAPPING
" -----------------------------------------------"
nmap <leader>b :b#<cr>
nmap <leader>f :Vex<cr>
nmap <leader>q :q<cr>
"
" CODING SETUP
" -----------------------------------------------"
"
" General coding
syntax on
set wildignore+=**/node_modules/**,**/_build/**,**/.git/**,**/deps/**
set foldmethod=syntax
" Set filetype on new and read buffers
au BufNewFile,BufRead *.md set filetype=markdown
au BufNewFile,BufRead *.html.eex set filetype=html
au BufNewFile,BufRead *.ex set filetype=elixir
au BufNewFile,BufRead *.exs set filetype=elixir
" Elixir
function! RunFormatter()
exec '!mix format %'
endfunction
function! RunCTags()
exec '!ctags -R --exclude=.git --exclude=node_modules --exclude=_build --exclude=deps --exclude=priv % &'
endfunction
set autoread
autocmd! BufWritePost *.{ex,exs} silent call RunCTags()
autocmd BufWritePost *.{ex,exs} silent call RunFormatter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment