Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source .vimrc throws exception #181

Closed
jackywu opened this issue Feb 24, 2023 · 1 comment
Closed

source .vimrc throws exception #181

jackywu opened this issue Feb 24, 2023 · 1 comment
Assignees
Labels
bug:report Something does not work as intended / expected.

Comments

@jackywu
Copy link

jackywu commented Feb 24, 2023

OS type:

  • macOS

Vim:

  • MacVIM

Vim version:
Xnip2023-02-24_20-55-58

this is my ~/.vimrc which relative to mkdx plugin:

        Plug 'SidOfc/mkdx'
        " let g:mkdx#settings = { 'map': { 'prefix': '\' }, 'highlight': { 'enable': 1 } }
        let g:mkdx#settings     = {
                                \ 'map': { 'prefix': '\' },
                                \ 'highlight': { 'enable': 1 },
                                \ 'enter': { 'shift': 1 },
                                \ 'links': { 'external': { 'enable': 1 } },
                                \ 'toc': { 'text': 'Table of Contents', 'update_on_write': 1 },
                                \ 'fold': { 'enable': 1 },
                                \ }
        autocmd FileType markdown set nonumber wrap | set foldmethod=manual | GitGutterDisable

Reproduce steps:

  1. open a markdown file, and :vsp .vimrc, change anything , and save
  2. jump back to the markdown file
  3. press 'o' to go into insert mode, vim throws excepiton

Xnip2023-02-24_20-59-28

SidOfc added a commit that referenced this issue Feb 24, 2023
@SidOfc
Copy link
Owner

SidOfc commented Feb 24, 2023

Hello, I just checked some issues and #151 does provide a solution. Since it was rather ugly I decided to make some additional changes so that after updating you should be able to configure mkdx like so in your .vimrc:

call mkdx#configure({
      \ 'map': { 'prefix': '\' },
      \ 'highlight': { 'enable': 1 },
      \ 'enter': { 'shift': 1 },
      \ 'links': { 'external': { 'enable': 1 } },
      \ 'toc': { 'text': 'Table of Contents', 'update_on_write': 1 },
      \ 'fold': { 'enable': 1 },
      \ })

I tested this myself and it resolved the issue (this also happened on regular vim in the terminal). Please let me know if it does not work as intended.

@SidOfc SidOfc closed this as completed Feb 24, 2023
@SidOfc SidOfc self-assigned this Feb 24, 2023
@SidOfc SidOfc added the bug:report Something does not work as intended / expected. label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:report Something does not work as intended / expected.
Projects
None yet
Development

No branches or pull requests

2 participants