Skip to content

Instantly share code, notes, and snippets.

@AWinterman
Created June 18, 2019 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AWinterman/523d218745e862c9efc69c3ebf50fa10 to your computer and use it in GitHub Desktop.
Save AWinterman/523d218745e862c9efc69c3ebf50fa10 to your computer and use it in GitHub Desktop.
June 2019 my vimrc
call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
Plug 'https://github.com/sjl/gundo.vim.git'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'https://github.com/lifepillar/pgsql.vim.git'
Plug 'https://github.com/lifepillar/vim-solarized8'
Plug 'https://github.com/tpope/vim-fugitive'
Plug 'https://github.com/tpope/vim-commentary'
Plug 'terryma/vim-multiple-cursors'
Plug 'https://github.com/editorconfig/editorconfig-vim'
Plug 'https://github.com/mattn/emmet-vim'
Plug 'https://github.com/w0rp/ale'
Plug 'https://github.com/airblade/vim-gitgutter'
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
let g:deoplete#enable_at_startup = 1
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'fatih/vim-go', { 'tag': '*' }
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
Plug 'yuttie/comfortable-motion.vim'
Plug 'wincent/command-t'
call plug#end()
let g:comfortable_motion_scroll_down_key = "j"
let g:comfortable_motion_scroll_up_key = "k"
set t_Co=256
set background=dark
noremap <leader>e :Explore<CR>
set noswapfile
autocmd CursorHold,CursorHoldI * update
" Autosave only when there is something to save. Always saving makes build
" watchers crazy
function! SaveIfUnsaved()
if &modified
:silent! w
endif
endfunction
au FocusLost,BufLeave * :call SaveIfUnsaved()
" Read the file on focus/buffer enter
au FocusGained,BufEnter * :silent! !
set autowrite
set autoread
set noerrorbells
set vb t_vb=
set visualbell
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
set clipboard=unnamed
autocmd CursorHold,CursorHoldI * update
set mouse=a
map <ScrollWheelUp> <C-Y>
map <ScrollWheelDown> <C-E>
let g:gundo_prefer_python3 = 1
colorscheme solarized8
map <Leader>p :Files<CR>
let g:netrw_liststyle = 3
let g:netrw_banner = 0
" Where do files get opened?
" 1 - open files in a new horizontal split
" 2 - open files in a new vertical split
" 3 - open files in a new tab
" 4 - open in previous window
" let g:netrw_browse_split = 0
let g:netrw_preview = 1
let g:netrw_menu = 1
let g:wildmenu=1
" deoplete
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
inoremap <expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment