Monday, November 23, 2015

Re: Go to Japanese character

On 2015-11-23, bob beckett <sealbeam01@gmail.com> wrote:
> Thank you for your suggestion. Unfortunately, it finds all non-ASCII
> characters in the entire file, and it does not move the cursor to the first
> Japanese (i.e. non-ASCII) character in the current line.

And does what with them, highlights them? Also, It should move the cursor to
the next Japanese character after the cursor, whether it is on the current line
or not. If the highlighting is the only problem, you can run :nohls to clear
it.

Since even the original command was long enough that you would probably want to
put it in a mapping, this can easily be added:

nnoremap f<C-x> /[^ -~]<CR>:nohls<CR>

Obviously if there are none on the current line after the cursor it won't act
exactly like 'f', but it's not clear why you are trying to do this in that
case.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: