call plug#begin('~/.config/vim-plugins') Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' Plug 'mhinz/vim-signify' Plug 'rodjek/vim-puppet' Plug 'junegunn/goyo.vim' Plug 'dense-analysis/ale' Plug 'jiangmiao/auto-pairs' Plug 'frazrepo/vim-rainbow' Plug 'itchyny/lightline.vim' Plug 'airblade/vim-gitgutter' Plug 'junegunn/limelight.vim' Plug 'hashivim/vim-terraform' Plug 'bitc/vim-bad-whitespace' Plug 'ashfinal/vim-colors-paper' call plug#end() set title set number set gdefault set nobackup set expandtab set smartcase set splitbelow set splitright set ignorecase set nohlsearch set noshowmode set shiftround set cursorline set cursorcolumn set nojoinspaces set nowritebackup set bs=2 set tabstop=2 set scrolloff=5 set shiftwidth=2 set showtabline=2 set softtabstop=2 set winminheight=0 set matchpairs+=(:),{:},[:],<:>,':',":" nmap w nmap :wq! nmap :Files ~ nmap :term nmap :tabnew nmap :tabclose nmap :tabprev nmap :tabnext map b :set cc=79 map nb :set cc=0 map n :set nonumber! map p :set paste! map f :Goyo map t :NERDTreeToggle colorscheme paper set t_ZH= set t_ZR= hi Comment cterm=italic gui=italic hi BadWhitespace ctermbg=lightblue guibg=lightblue autocmd! User GoyoEnter Limelight autocmd! User GoyoLeave Limelight! command! -bang -nargs=? -complete=dir Files \ call fzf#vim#files(, {'options': ['-e', '--layout=reverse', '--info=inline', '--preview', 'bat --color=always --tabs=2 --style=plain --theme="Monokai Extended" {}']}, 0) let g:rainbow_active = 1 let g:terraform_fmt_on_save=1 let g:lightline = { \ 'colorscheme': 'powerlineish', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], \ [ 'readonly', 'filename' ] ], \ 'right': [ [ 'lineinfo' ], \ [ 'percent' ], \ [ 'filetype' ] ] \ }, \ 'component_function': { \ 'fugitive': 'FugitiveHead', \ 'readonly': 'LightLineReadonly'}, \ } function! LightLineReadonly() return &readonly && &filetype !=# 'help' ? 'RO' : '' endfunction