diff options
| author | Teddy Wing | 2019-06-03 22:18:36 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2019-06-03 22:18:36 +0200 | 
| commit | 0254acfd71877910ce19ec3404cd8e25c1b13e6b (patch) | |
| tree | ce22a0af11e2781e5f5cf1da592c48b5b5489262 /bundle/diff-corrections/autoload | |
| parent | cea8855836335942886b4e2a3fea4a3d7d549b3c (diff) | |
| download | dotvim-0254acfd71877910ce19ec3404cd8e25c1b13e6b.tar.bz2 | |
diff_corrections: Set 'wrap'
Soft wrap in diffs. Recently encountered diffs with super long lines and
thought it would be nice to be able to see everything on one page
without having to scroll horizontally.
Diffstat (limited to 'bundle/diff-corrections/autoload')
| -rw-r--r-- | bundle/diff-corrections/autoload/diff_corrections.vim | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/bundle/diff-corrections/autoload/diff_corrections.vim b/bundle/diff-corrections/autoload/diff_corrections.vim index c3003e9..bdb28b3 100644 --- a/bundle/diff-corrections/autoload/diff_corrections.vim +++ b/bundle/diff-corrections/autoload/diff_corrections.vim @@ -1,4 +1,5 @@  let s:old_cursorline = &cursorline +let s:old_wrap = &wrap  let s:restore_cx_mapping = '' @@ -9,6 +10,7 @@ function! diff_corrections#Run()  		endif  		set nocursorline +		set wrap  		nnoremap cx :<C-u>tabclose<CR>  	else @@ -17,6 +19,7 @@ function! diff_corrections#Run()  		endif  		let &cursorline = s:old_cursorline +		let &wrap = s:old_wrap  		if strlen(s:restore_cx_mapping) > 0  			execute s:restore_cx_mapping | 
