From f9b450f36bed83c18905d48c7f667f8ab7d5682c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 2 Dec 2013 13:01:35 +0900 Subject: [PATCH] g:goyo_linenr --- README.md | 1 + plugin/goyo.vim | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4769463..03db559 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Configuration - `g:goyo_width` (default: 80) - `g:goyo_margin_top` (default: 4) - `g:goyo_margin_bottom` (default: 4) +- `g:goyo_linenr` (default: 0) Inspiration ----------- diff --git a/plugin/goyo.vim b/plugin/goyo.vim index 5d82c86..b7be534 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -132,7 +132,9 @@ function! s:goyo_on(width) GitGutterDisable endif - set nonu nornu + if !get(g:, 'goyo_linenr', 0) + set nonu nornu + endif set colorcolumn= set winwidth=1 set winheight=1