Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow digraphs with i^K #109

Open
Soares opened this issue May 22, 2014 · 6 comments
Open

Allow digraphs with i^K #109

Soares opened this issue May 22, 2014 · 6 comments

Comments

@Soares
Copy link

Soares commented May 22, 2014

^K is used to enter digraphs (and, thus, unicode or otherwise difficult-to-type characters) in insert mode. When searching, ^K may also be used to search for difficult-to-type characters. It would be really cool if I could sneak for such characters as well.

@justinmk
Copy link
Owner

Seems reasonable. Also are you aware of the keymap support? #47

Explained (briefly) here: https://github.com/justinmk/vim-sneak/blob/master/doc/sneak.txt#L107

@Soares
Copy link
Author

Soares commented May 22, 2014

I was not, thanks!

I largely use digraphs for things like em-dashes, ellipses, and
logical/mathematical symbols, so I don't think the keymap support helps me
in particular (unless I misunderstand). It's useful to know of, though.

Also, for reference, note that f and t work with ^K

I'd be happy to try writing a patch that implements ^K if you point me
towards the right place in the code, though it will probably be a little
while before I have time.

On Thu, May 22, 2014 at 2:16 PM, Justin M. Keyes
notifications@github.comwrote:

Seems reasonable. Also are you aware of the keymap support? #47#47


Reply to this email directly or view it on GitHubhttps://github.com//issues/109#issuecomment-43945100
.

@justinmk
Copy link
Owner

keymaps wouldn't be helpful in your case. Digraphs are worth implementing, but I can't find a way to assign the result of ctrl-k to a variable. If you can figure that out, I can implement this feature pretty easily.

@Soares
Copy link
Author

Soares commented May 22, 2014

I have no idea, but I've asked vim_use:
https://groups.google.com/forum/#!topic/vim_use/bgWtZF8I7wI

I expect they will say "not possible" and then I'll start a discussion on
vim_dev and eventually write a patch which will languish for six months,
after which I'll ping this issue and see if you want to add
patch-number-guarded support for this feature, but maybe I'll be pleasantly
surprised :-)

On Thu, May 22, 2014 at 3:25 PM, Justin M. Keyes
notifications@github.comwrote:

keymaps wouldn't be helpful in your case. Digraphs are worth implementing,
but I can't find a way to assign the result of ctrl-k to a variable. If you
can figure that out, I can implement this feature pretty easily.


Reply to this email directly or view it on GitHubhttps://github.com//issues/109#issuecomment-43951683
.

@justinmk
Copy link
Owner

Hahahaha. Thanks for saving me the trouble. Probably the only way is to open some temp buffer and feedkeys("\<C-k>ae") to get the result. Which isn't so bad, but also horrible.

@justinmk
Copy link
Owner

ZyX and John Little gave some great answers! Should have this implemented by next week.

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

No branches or pull requests

2 participants