:vimrc.de
โ† Back to showcase
Vim๐Ÿค– AI-generated

Writing & Markdown (distraction-free)

For prose and notes: distraction-free Goyo mode with Limelight focus, spell checking (EN/DE), soft wrapping and movement across visual lines.

by @vimrc.de ยท โ˜… 60 ยท โฌ‡ 0 copies ยท #markdown #writing #prose #goyo #spell

X Reddit HN
install curl -L https://vimrc.de/r/writing-markdown-distraction-free -o ~/.vimrc
vimrc.de/.vimrc
" ============================================================
"  Writing & Markdown โ€” focused, distraction-free
"  Goyo + Limelight, spell check, soft wrapping
" ============================================================

call plug#begin('~/.vim/plugged')
Plug 'junegunn/goyo.vim'        " distraction-free mode
Plug 'junegunn/limelight.vim'   " paragraph focus
Plug 'preservim/vim-pencil'     " comfortable soft-wrap for prose
Plug 'preservim/vim-markdown'
call plug#end()

syntax enable
set encoding=utf-8
set number
set linebreak                   " wrap at word boundaries
set wrap nolist
set spell spelllang=en,de       " spell check EN + DE
let mapleader = " "

" Move across visual lines (important for long paragraphs)
nnoremap j gj
nnoremap k gk

" Toggle Goyo + Limelight together
nnoremap <leader>z :Goyo<CR>
autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight!

" Pencil for text filetypes
augroup pencil
  autocmd!
  autocmd FileType markdown,text,tex call pencil#init()
augroup END
let g:pencil#wrapModeDefault = 'soft'
NORMAL36 linesvim

Comments (0)

No comments yet. Be the first.

Browse more configs on vimrc.de โ†’