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

Re: Cmdline mode autocomplete

Expand Messages
  • Charles E Campbell Jr
    Hello! This is what I use: Insert Mode Function Keys: {{{2 completion: whole line completion: keywords using current
    Message 1 of 4 , Aug 28, 2007
    • 0 Attachment
      Hello!

      This is what I use:

      " Insert Mode Function Keys: {{{2
      " <F1> <c-x><c-L> completion: whole line
      " <F2> <c-x><c-N> completion: keywords using current file
      " <F3> <c-x><c-K> completion: keywords using dictionary
      " <F4> <c-x><c-T> completion: keywords using thesaurus
      " <F5> <c-x><c-I> completion: keywords in current and included files
      " <F6> <c-x><c-]> completion: tags
      " <F7> <c-x><c-F> completion: file names
      " <F8> <c-x><c-D> completion: definitions or macros
      " <F9> <c-x><c-V> completion: vim command line
      " <F10> <c-x><c-O> completion: omni completion
      ino <silent> <F1> <c-x><c-L>
      ino <silent> <F2> <c-x><c-N>
      ino <silent> <F3> <c-x><c-K>
      ino <silent> <F4> <c-x><c-T>
      ino <silent> <F5> <c-x><c-I>
      ino <silent> <F6> <c-x><c-]>
      ino <silent> <F7> <c-x><c-F>
      ino <silent> <F8> <c-x><c-D>
      ino <silent> <F9> <c-x><c-V>
      ino <silent> <F10> <c-x><c-O>
      ino <silent> <F11> <C-O>ma<C-O>yiw<C-O>:ptag <C-R>"<CR><C-O>`a
      ino <silent> <s-left> <c-x><c-p>
      ino <silent> <s-right> <c-x><c-n>
      ino <silent> <F12> <c-o>:echo 'completes[ F1:line F2:keywrd F3:dict
      F4:thes - F5:fromfile F6:tags F7:fname F8:defns - F9:vimcmd F10:omni ]
      F11:ptag-iw F12:funkey help'<CR>

      (your email client may break that <F12> definition into two lines; it
      should be one line).

      When I want to know what completion to use, I press the <F12> function
      key while still in insert mode and from there pick the completion that I
      want.

      Regards,
      Chip Campbell


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.