Created
October 19, 2020 09:38
-
-
Save remi6397/5a31e77fba1efd0c89cebc389f572699 to your computer and use it in GitHub Desktop.
remi's .vimrc (2)
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
" vim: fdm=marker : | |
" This source code form is part of ``remi's dotfiles'' | |
" | |
" Any copyright is dedicated to the Public Domain. | |
" https://creativecommons.org/publicdomain/zero/1.0/ | |
" | |
" Authored by: Jeremiasz Nelz <remi6397 {at} gmail.com> | |
call plug#begin() " {{{ | |
" Themes {{{ | |
Plug 'franbach/miramare' | |
Plug 'nightsense/cosmic_latte' | |
" }}} | |
" Augmentations {{{ | |
Plug 'dense-analysis/ale' | |
" }}} | |
" Keystroke savers {{{ | |
Plug 'tpope/vim-surround' | |
Plug 'mattn/emmet-vim' | |
" }}} | |
" VCS support {{{ | |
Plug 'mhinz/vim-signify' | |
" }}} | |
" Syntax support packages {{{ | |
Plug 'timcharper/textile.vim' | |
Plug 'OmniSharp/Omnisharp-vim' | |
" }}} | |
call plug#end() " }}} | |
" colors {{{ | |
syntax on | |
set termguicolors | |
let g:miramare_cursor = 'purple' | |
let g:dark_theme = 'miramare' | |
let g:dark_theme_name = g:dark_theme " result of `:echo g:colors_name` | |
let g:light_theme = 'cosmic_latte' | |
let g:light_theme_name = g:light_theme | |
" }}} | |
" miscellaneous {{{ | |
set number relativenumber | |
set modeline modelines=5 | |
set ruler | |
set updatetime=100 " vim-signify async update | |
" }}} | |
" netrw {{{ | |
let g:netrw_banner = 0 | |
let g:netrw_liststyle = 3 | |
let g:netrw_browse_split = 4 | |
let g:netrw_altv = 1 | |
let g:netrw_winsize = 25 | |
" }}} | |
" ale {{{ | |
let g:ale_completion_enabled = 1 | |
let g:ale_completion_autoimport = 1 | |
let g:ale_java_eclipselsp_path = '/Users/remi/Projects/eclipse.jdt.ls/' | |
let g:ale_linters = { | |
\ 'java': [ 'eclipselsp' ], | |
\ 'python': [ 'pyls', 'pyre', 'pylint', 'flake8' ], | |
\} | |
let g:ale_fixers = { | |
\ 'python': [ 'black', 'isort' ], | |
\} | |
set omnifunc=ale#completion#OmniFunc | |
" }}} | |
" sunset/sunrise {{{ | |
set background=dark | |
execute 'colorscheme ' . g:dark_theme | |
fun! s:set_bg() | |
if v:os_appearance % 2 | |
if g:colors_name is# g:light_theme_name | |
set background=dark | |
execute 'colorscheme ' . g:dark_theme | |
redraw! | |
endif | |
else | |
if g:colors_name is# g:dark_theme_name | |
set background=light | |
execute 'colorscheme ' . g:light_theme | |
redraw! | |
endif | |
endif | |
endfun | |
autocmd OSAppearanceChanged * call s:set_bg() | |
call s:set_bg() | |
" }}} | |
augroup PythonConstants " {{{ | |
autocmd! | |
autocmd FileType python syn keyword pythonTodo contained | |
\ MILESTONE MLSTN | |
\ DONE | |
\ YAGNI | |
\ TBD | |
\ TOBEDONE | |
\ DEBUG | |
\ BROKEN | |
\ REFACTOR REFACT RFCTR | |
\ OOPS SMELL NEEDSWORK | |
\ INSPECT | |
\ BUG BUGFIX | |
\ NOBUG NOFIX WONTFIX DONTFIX | |
\ NEVERFIX UNFIXABLE CANTFIX | |
\ FETCH | |
\ NYI | |
\ FR FTRQ FTR | |
\ SEE | |
\ HACK | |
\ ALERT | |
\ REQ RFE | |
\ IDEA | |
\ QUESTION QUEST QSTN WFT | |
\ ALERT | |
\ HACK CLEVER MAGIC | |
\ PORT PORTABILITY WKRD | |
\ CAVEAT CAV CAVT WARNING CAUTION | |
\ HELP | |
\ FAQ | |
\ TODOC DOCDO DODOC NEEDSDOC EXPLAIN DOCUMENT | |
\ CRED CREDIT THANKS | |
\ STAT STATUS | |
\ RVD REVIEW REVIEWED | |
\ GLOSS GLOSSARY | |
\ REF REFERENCE | |
" \ '!!!' '???' | |
augroup END " }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment