Loading ...
Sorry, an error occurred while loading the content.

[vim-multibyte] re-define gq command

Expand Messages
  • Takuhiro Nishioka
    Hi. I want to re-define gq command for Japanese folding by vim scripts. So, I made mappings for each {motion}. nmap gq} :call JP_gq( } ) nmap gq{ :call
    Message 1 of 1 , Feb 17, 2000
    • 0 Attachment
      Hi.

      I want to re-define gq command for Japanese folding by vim
      scripts. So, I made mappings for each {motion}.
      nmap gq} :call JP_gq("}")<CR>
      nmap gq{ :call JP_gq("{")<CR>
      nmap gqip :call JP_gq("ip")<CR>
      nmap gqap :call JP_gq("ap")<CR>
      nmap gqgq :call JP_gq("gq")<CR>
      nmap gqq :call JP_gq("gq")<CR>
      nmap gq'a :call JP_gq("'a")<CR>
      nmap gq`a :call JP_gq("`a")<CR>
      ...
      If {motion} is search command, like /pattern/, how can I
      do this? And is there any way to do this more simple?

      --
      Takuhiro Nishioka mailto:takuhiro@...
    Your message has been successfully submitted and would be delivered to recipients shortly.