Skip to content

Instantly share code, notes, and snippets.

@jenciso
Last active May 9, 2021 00:23
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 jenciso/46b78ef6de6817e8f0b6055c5518a132 to your computer and use it in GitHub Desktop.
Save jenciso/46b78ef6de6817e8f0b6055c5518a132 to your computer and use it in GitHub Desktop.
dot-vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cat << 'EOF' > ~/.vimrc
syntax on
filetype plugin indent on
call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'sainnhe/gruvbox-material'
Plug 'junegunn/vim-easy-align'
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
Plug 'sainnhe/artify.vim'
Plug 'itchyny/vim-gitbranch'
Plug 'rmolin88/pomodoro.vim'
Plug 'dense-analysis/ale'
Plug 'tpope/vim-markdown'
call plug#end()
autocmd VimEnter *
\ if !empty(filter(copy(g:plugs), '!isdirectory(v:val.dir)'))
\ | PlugInstall | q
\ | endif
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
set pastetoggle=<F3>
set nu
set termguicolors
set background=dark
nnoremap <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
let g:gruvbox_material_palette = 'material'
let g:gruvbox_material_transparent_background = 1
let g:gruvbox_material_background = 'hard'
let g:gruvbox_italic=1
let g:gruvbox_material_enable_italic = 1
let g:airline_theme = 'gruvbox_material'
let g:ale_yaml_yamllint_options = '-d "{extends: relaxed, rules: {line-length: disable}}"'
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
colorscheme gruvbox-material
let g:lightline = {}
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'gruvbox_material',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'gitbranch#name'
\ },
\ }
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
EOF
@jenciso
Copy link
Author

jenciso commented May 8, 2021

curl -s https://gist.githubusercontent.com/jenciso/46b78ef6de6817e8f0b6055c5518a132/raw/8d117f0b017f16eb3658ffb3f73e03e3ac6d4e69/gistfile1.txt | bash - 
vim -c ":PlugInstall"

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment