Last active
May 9, 2021 00:23
-
-
Save jenciso/46b78ef6de6817e8f0b6055c5518a132 to your computer and use it in GitHub Desktop.
dot-vimrc
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
References: