From 275f3cd2d2bb0f40861e9f51ecb41fd12ae43bf7 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 16 May 2022 13:48:45 +0400 Subject: [PATCH] Set textwidth Close #7 --- ftplugin/markdown.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 828ff3c..c141eff 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -2,10 +2,16 @@ " File: ftplugin/markdown.vim " Maintainer: Andrew Nechaev " Version: 0.1.0 -" Modified: 2022-05-16 13:14+0400 +" Modified: 2022-05-16 13:48+0400 " License: MIT """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +set textwidth=120 +set formatoptions+=t +set colorcolumn=-1 +set wm=0 +set wrap linebreak + nnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w! vnoremap t :call winrestview(toggle({' ': 'x', 'x': '-', '-': ' '})):w!