Spacemacs vim-mode how to move to last non-blank character of the line

how to move to last non-blank character of the line in spacemacs vim-mode. g_ doesn’t work.

不是$

你需要用这个函数mwim-end-of-code-or-line,可以参考这个layer https://github.com/syl20bnr/spacemacs/blob/develop/layers/+emacs/better-defaults/packages.el#L17