Skip to content

Instantly share code, notes, and snippets.

@seiflotfy
Created November 4, 2017 19:57
Show Gist options
  • Save seiflotfy/12a0eca7ca559b5de0eba2360c733bee to your computer and use it in GitHub Desktop.
Save seiflotfy/12a0eca7ca559b5de0eba2360c733bee to your computer and use it in GitHub Desktop.
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Unmanaged plugin (manually installed and updated)
Plug '~/my-prototype-plugin'
" Nerd tree plugin
Plug 'scrooloose/nerdtree'
" Base 16 color theme
Plug 'chriskempson/base16-vim'
" Syntastic
Plug 'vim-syntastic/syntastic'
" Airline
Plug 'vim-airline/vim-airline'
" Initialize plugin system
call plug#end()
set mouse=a
autocmd VimEnter * NERDTree
set number
"highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
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_aggregate_errors = 1
" vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_build_constraints = 1
let g:go_highlight_operators = 1
let g:go_fmt_command = "goimports"
set wildmode=longest,list,full
filetype plugin on
filetype indent on
let g:airline#extensions#tabline#enabled = 1
"let g:go_metalinter_enabled = ['vet', 'golint', 'deadcode', 'errcheck']
"let g:go_metalinter_command = "gometalinter ./..."
let g:syntastic_go_checkers = ['gometalinter']
let g:syntastic_go_gometalinter_exe = 'gometalinter'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment