junegunn / vim-easy-align

:sunflower: A Vim alignment plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

delimiter set for c

junhyeokahn opened this issue · comments

Hello,
First of all, I appreciate for your nice plugins!
I am trying to follow delimiter set in my vimrc,

let g:easy_align_delimiters['d'] = {
\ 'pattern': ' \ze\S\+\s*[;=]',
\ 'left_margin': 0, 'right_margin': 0
\ }

And I got return as below,

E121: Undefined variable: g:easy_align_delimiters

The dictionary should be defined beforehand. Does this work?

let g:easy_align_delimiters = {}
let g:easy_align_delimiters['d'] = {
\ 'pattern': ' \ze\S\+\s*[;=]',
\ 'left_margin': 0, 'right_margin': 0
\ }