Skip to content

Conversation

@Andrikin
Copy link

@Andrikin Andrikin commented Aug 3, 2020

My first pull request! haha. So, I manage to get capslock disable automatically when leaving cmdline. Vim does not refresh the statusline when entering an ex command (discussed in this link), then I put this in .vimrc to get statusline working:
autocmd CmdlineEnter * redraws
autocmd CmdlineChanged * redraws
Cmap:
cmap <c-l> <plug>CapsLockToggle
And it's working! \o/
Feel free to correct me, I'm adventuring into vimscript and Github!

@tpope
Copy link
Owner

tpope commented Sep 26, 2020

I haven't had a chance to test this so I'm just going to trust that it works, thanks!

@tpope
Copy link
Owner

tpope commented Sep 26, 2020

Actually CmdlineLeave was added in 8.0.1206, this needs a version guard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants