Skip to content

Instantly share code, notes, and snippets.

@evilchili
Created May 7, 2025 15:49
Show Gist options
  • Save evilchili/23113142c501d88000e0be6f3aeea2eb to your computer and use it in GitHub Desktop.
Save evilchili/23113142c501d88000e0be6f3aeea2eb to your computer and use it in GitHub Desktop.
.vimrc for prose
" ======= PROSE ======= "
plugin 'reedes/vim-pencil' " writing mode
Plugin 'reedes/vim-colors-pencil' " colors
Plugin 'tpope/vim-abolish' " Fancy abbreviation replacements
Plugin 'junegunn/limelight.vim' " Highlights only active paragraph
Plugin 'junegunn/goyo.vim' " Full screen writing mode
Plugin 'reedes/vim-lexical' " Better spellcheck mappings
Plugin 'reedes/vim-thematic' " Themes
Plugin 'reedes/vim-litecorrect' " Better autocorrections
Plugin 'reedes/vim-textobj-sentence' " Treat sentences as text objects
Plugin 'reedes/vim-wordy' " Weasel words and passive voice
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-markdown'
augroup pencil
autocmd!
autocmd filetype markdown,mkd call pencil#init()
\ | Thematic dali_gold_pencil
\ | Goyo
\ | call lexical#init()
\ | call litecorrect#init()
\ | set spell spl=en_us fdl=4 noru nonu nornu
\ | set fdo+=search
\ | set ft=markdown
augroup END
let g:pencil#wrapModeDefault = 'soft'
let g:pencil#textwidth = 74
let g:pencil#joinspaces = 0
let g:pencil#cursorwrap = 1
let g:pencil#conceallevel = 3
let g:pencil#concealcursor = 'c'
let g:pencil#softDetectSample = 20
let g:pencil#softDetectThreshold = 130
let g:pencil_spell_undercurl = 1
let g:pencil_higher_contrast_ui = 1
syn match myExCapitalWords +\<\w*[A-Z]\K*\>\|'s+ contains=@NoSpell
let g:wordy#ring = [
\ 'weak',
\ ['being', 'passive-voice', ],
\ 'weasel',
\ ['problematic', 'redundant', ],
\ ['colloquial', 'idiomatic', 'similies', ],
\ 'art-jargon',
\ ['contractions', 'opinion', 'vague-time', 'said-synonyms', ],
\ 'adjectives',
\ 'adverbs',
\ ]
autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment