Writer Colorscheme for Vim
This is a minimal distraction-free theme for writing in Vim. There are many like it, but this one is mine.
" Add to .vimrc Plugin 'nathanlong/vim-colors-writer'
git clone https://github.com/nathanlong/vim-colors-writer.git ~/.vim/bundle/colors-writer
If you roll your Vim setup manually, clone the repo and split the files into their respetive directories (colors/writer.vim -> .vim/colors/writer.vim and so on).
I've built some simple commands into the plugin, all of these can be remapped:
||Toggles writer on and off in fullscreen mode.|
||Loads writer into your current buffer with no fullscreen|
||Creates a new dated journal file (format: YYMMDD.md) in your specified journal directory.|
||Creates a new dated journal file (format: YYMMDD.md) but does not launch writer.|
||Switches between dark and light themes while in fullscreen mode|
||Closes writer and reapplies your defaults|
||Toggle between hard and soft text wrapping.|
nnoremap <D-R> :WriterToggle<CR>
There are a few options you can place in your
.vimrc to control default behavior:
||Controls where the journal function saves files. Accepts a path.||
||Choose which theme to load by default. Accepts 'light' or 'dark'||'light'|
||Picks hard wrap (forces line breaks) or soft wrap (no breaks)||'hard'|
||Allows GUI font and size to be set, same format as
let g:writer_theme = 'dark' let g:writer_font = 'Consolas:h18'