gabrielelana / vim-markdown

Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!
MIT License
741 stars 58 forks source link

url highlight and linebreak option clash #79

Open petobens opened 5 years ago

petobens commented 5 years ago

Consider the following minimal vimrc:

set nocompatible

let $DOTVIM = expand('$HOME/.config/nvim')

if has('vim_starting')
    execute 'set runtimepath+=' . expand(
                \ '$DOTVIM/bundle/repos/github.com/Shougo/dein.vim')
endif
let g:dein#enable_name_conversion = 1
if dein#load_state(expand('$DOTVIM/bundle/'))
    call dein#begin(expand('$DOTVIM/bundle/'))
    call dein#add('gabrielelana/vim-markdown', {'on_ft' : 'markdown'})
    call dein#end()
    call dein#save_state()
endif

filetype plugin indent on
syntax enable
set linebreak

let g:markdown_enable_spell_checking = 0

When opening a split window then urls are wrongly highlighted: screenshot_2018-11-24_17 45 34

Removing the set linebreak option fixes the problem but I want to keep that option. Thanks in advance for looking into this.