mirror of
https://github.com/amix/vimrc
synced 2025-06-23 06:35:01 +08:00
Updated plugins
This commit is contained in:
@ -7,6 +7,14 @@ zenroom for Vim: Focusing only on the essential](http://amix.dk/blog/post/19744#
|
||||
|
||||
Please note that this might not work perfectly with your colorscheme. Patches are welcome to fix this :-)
|
||||
|
||||
## Installaion and usage
|
||||
|
||||
* Install [goyo.vim](https://github.com/junegunn/goyo.vim)
|
||||
* In command mode type :Goyo
|
||||
|
||||
Additionally you may want to have a shortcut. Add this to your vimrc:
|
||||
|
||||
nnoremap <silent> <leader>z :Goyo<cr>
|
||||
|
||||
## Inspirations/Similar
|
||||
* [Writing Markdown With Style in Vim](http://astrails.com/blog/2013/8/12/writing-markdown-with-style-in-vim)
|
||||
|
@ -23,16 +23,9 @@ if exists( "&background" )
|
||||
let s:save_background = &background
|
||||
endif
|
||||
|
||||
" Save the current `textwidth'` value for reset later
|
||||
let s:save_textwidth = ""
|
||||
if exists( "&textwidth'" )
|
||||
let s:save_textwidth' = &textwidth'
|
||||
endif
|
||||
|
||||
function! s:markdown_room()
|
||||
set background=light
|
||||
set linespace=8
|
||||
set textwidth=80
|
||||
|
||||
hi Normal guibg=gray95
|
||||
hi NonText guifg=gray95
|
||||
@ -88,10 +81,6 @@ function! g:zenroom_goyo_after()
|
||||
if is_mark_or_rst
|
||||
set linespace=0
|
||||
|
||||
if s:save_textwidth != ""
|
||||
exec( "set textwidth=" . s:save_textwidth )
|
||||
endif
|
||||
|
||||
if s:save_background != ""
|
||||
exec( "set background=" . s:save_background )
|
||||
endif
|
||||
|
Reference in New Issue
Block a user