Vim-pencil: Rethinking Vim as a tool for writing

GitHub – preservim/vim-pencil: Rethinking Vim as a tool for writing Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert preservim / vim-pencil Public Notifications You must be signed in to change notification settings Fork 39 Star 1.7k Rethinking Vim as a tool for writing License View license 1.7k stars 39 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings preservim/vim-pencil master Branches Tags Go to file Code Open more actions menu Folders and files Name Name Last commit message Last commit date Latest commit History 223 Commits 223 Commits .github/ workflows .github/ workflows autoload autoload doc doc plugin plugin screenshots screenshots .vintrc.yaml .vintrc.yaml LICENSE LICENSE README.markdown README.markdown View all files Repository files navigation vim-pencil Rethinking Vim as a tool for writers Features The pencil plugin aspires to make Vim as powerful a tool for writers as it is for coders by focusing narrowly on the handful of tweaks needed to smooth the path to writing prose. For editing prose-oriented file types such as text , markdown , mail , rst , tex , textile , and asciidoc Agnostic on soft line wrap versus hard line breaks, supporting both Auto-detects wrap mode via modeline and sampling Adjusts navigation key mappings to suit the wrap mode Creates undo points on common punctuation during Insert mode, including deletion via line and word Buffer-scoped configuration (with a few minor exceptions, pencil preserves your global settings) Support for Vim’s Conceal feature to hide markup defined by Syntax plugins (e.g., _ and * markup for styled text in _ Markdown _) Support for display of mode indicator ( ␍ and ⤸ , e.g.) in the status line Pure Vimscript with no dependencies In addition, when using hard line break mode: Makes use of Vim’s powerful autoformat while inserting text, except for tables and code blocks where you won’t want it. NEW Optional key mapping to suspend autoformat for the Insert. Need spell-check, distraction-free editing, and other features? Vim is about customization. To complete your editing environment, learn to configure Vim and draw upon its rich ecosystem of plugins. Why use Vim for writing? With plenty of word processing applications available, including those that specifically cater to writers, why use a modal editor like Vim? Several reasons have been offered: Your hands can rest in a neutral ‘home’ position, only rarely straying to reach for mouse, track pad, or arrow keys Minimal chording, with many mnemonic-friendly commands Sophisticated capabilities for navigating and manipulating text Highly configurable, enabling you to build a workflow that suits your needs, with many great plugins available No proprietary format lock-in But while

Source: Hacker News | Original Link