preservim / vim-markdown

Markdown Vim Mode
4.69k stars 523 forks source link

`ge` does not scroll, opens a file instead. #441

Open rnmhdn opened 5 years ago

rnmhdn commented 5 years ago

my Toc:

        - [The project structure](#the-project-structure)
            + [public](#public)
            + [src](#src)
                * [assets](#assets)
                * [components](#components-1)
                * [views](#views)
                * [App.vue](#appvue)
                * [main.js](#mainjs)
                * [router.js](#routerjs)
                * [store.js](#storejs)

when I go on one of the links and press ge in normal mode I get something like: "#the-project-structure.md" [New File] but I expect to get scrolled to the corresponding tag in the current document.

VIM 8.1 Installed latest vim-markdown with vim-Plug right now. My vimrc:

if empty(glob('~/.vim/autoload/plug.vim'))
    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
                \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdcommenter'         " Code commenter
Plug 'vim-syntastic/syntastic'          " Syntax checker + pep8
Plug 'ambv/black'                       " Python autoformat
Plug 'prettier/vim-prettier', { 'do': 'npm install' , 'for': ['javascript', 'css', 'json', 'markdown', 'vue', 'yaml', 'html'] }
" Plug 'beautify-web/js-beautify'         " JS autoformat
" Plug 'w0rp/ale'                         " async language engine
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
Plug 'emmetio/emmet'                    " zen html. css shorthand expands to html
Plug 'tpope/vim-surround'               " wrap things
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'posva/vim-vue'
Plug 'plasticboy/vim-markdown'
Plug 'godlygeek/tabular'
Plug 'mzlogin/vim-markdown-toc'
call plug#end()

" vim-markdown
" folding:
let g:vim_markdown_folding_level = 3

" vim-markdown-toc
" custom fence
let g:vmt_fence_text = 'TOC' 
let g:vmt_fence_closing_text = '/TOC'
" default style
let g:vmt_fence_hidden_markdown_style = 'GFM'
let g:vmt_cycle_list_item_markers = 1
let g:vmt_include_headings_before = 0
let g:vim_markdown_no_extensions_in_markdown = 1
let g:vim_markdown_edit_url_in = 'tab'
rnmhdn commented 5 years ago

Also the folding is working so bad for me. When I enter insert mode all the foldings expand, when I press ESC twice they collapse all kinds of weird random things happen. also sometime all folds randomly collapse or expand, I expect that's due to some other plugin that I'm using. like maybe some plugin reads the whole file and then vim-markdown thinks it should expand :-/

rnmhdn commented 5 years ago

Also Strikethrough is not working even tho I have added: let g:vim_markdown_strikethrough = 1 when I have something like ~~strike~~ I expect to get ~~ strike ~~ but I get a purple ~~strike~~