Skip to content

the => are not aligned #157

@Dan33l

Description

@Dan33l

Expected Behavior

The => used in one resource are all aligned.

Steps to Reproduce

  1. Write into pp document
file { '/tmp/foo':
  ensure => directory,
  mode =
  1. With cursor at end of line 3, hit the key >.
  2. The two => are aligned.

Environment

  • Version 1.0.0 in directory ~/.vim/pack/plugins/start/
  • Platform Ubuntu 24.04, vim 9.1 (from deb package)
  • Installed plugins : vim-airline, vim-json, vim-puppet, vim-ruby, yaml-vim, coc
  • ~/.vimrc (but an empty file change nothing)
syntax on

" don't care for concealing with json files
let g:vim_json_syntax_conceal = 0

" To ensure that warning and error messages show in the status line
set statusline+=%{coc#status()}

set autoindent
set smartindent

" Update title of window or terminal
set title

" Enable line numbers
set number

" Max memory to use for pattern matching
set maxmempattern=40000

" Highlight non-ASCII characters
" https://stackoverflow.com/a/26209681
highlight NonASCII ctermbg=DarkRed guibg=DarkRed
call matchadd('NonASCII', '[^\u0000-\u007F]')

" Highlight Literal Tabs
highlight LiteralTab ctermbg=Yellow guibg=Yellow
call matchadd('LiteralTab', '\t')

" Highlight Trailing Whitespace
highlight TrailingWhitespace ctermbg=White guibg=White
call matchadd('TrailingWhitespace', '\s\+$')

autocmd BufNewFile,BufRead *.pp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.rb setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.erb setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.epp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.json setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 conceallevel=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions