Created
June 18, 2019 22:31
-
-
Save AWinterman/e72afe89a026ee4fdd9b4c37072195b1 to your computer and use it in GitHub Desktop.
June 2019 my vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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