vim-endwise implementation in vim-smartinput