Skip to content

Indentation broken within lists #991

@ranebrown

Description

@ranebrown

@tinmarino it looks like commit 21c5a7f broke the correct indentation within lists. It also disables the correct insertion of a new list character when pressing enter using :inoremap <silent><buffer> <CR> <C-]><Esc>:VimwikiReturn 3 5<CR>.

Expected:

- one two three four five six seven eight nine ten eleven twelve thirteen
  fourteen fifteen <-- press <CR> here should result in new marker
- 

Actual:

- one two three four five six seven eight nine ten eleven twelve thirteen
fourteen fifteen <-- <CR> here no new marker

Minimal vimrc:

set nocompatible
filetype plugin on
syntax on
set runtimepath+=~/vimwiki_dev

set textwidth=80
set linebreak
if has('patch-7.4.338')
  set breakindent
endif

augroup VimwikiKeyMap
    autocmd!
    autocmd FileType vimwiki inoremap <silent><buffer> <CR>
                \ <C-]><Esc>:VimwikiReturn 3 5<CR>
augroup END


let g:vimwiki_list = [
    \    {
    \      'path': '~/testwiki',
    \      'syntax': 'markdown',
    \      'ext': '.md',
    \    },]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions