![]() Inoremap pumvisible() ? tabdecrease(). Inoremap pumvisible() ? tabincrease()."\" : "\" "Map custom keys for scrolling through the menu Inoremap pumvisible() ? "\\".tabreset() : "\" "Map custom keys for confirming/cancelling a menu selection Inoremap pumvisible() ? "\".tabreset() : "\" "Map the default keys for navigating completion popup menu Return "" "returns empty string so can be used inside įunction! s:tabdecrease() "use this inside remapsįunction! s:tabreset() "use this inside remaps "Reset the counter with autocmds where possibleįunction! s:tabincrease() "use this inside remaps I personally just use / and / but included some other remaps for people who prefer different keys. Note these were developed with the neocomplete plugin with the option let g:neocomplete#enable_auto_select=0. If the counter is zero, we will insert a newline instead of "confirming" our choice in the popup menu. I just remap the keys I want to use for scrolling the popup menu to also increment/decrement a counter as the menu is scrolled. ![]() Nick Gammon Australia (22,881 posts) bio Forum AdministratorĪmended on Mon 02:41 AM (UTC) by Nick GammonI solved this with a fairly hacky solution. ![]() The amended line is in bold (return "") and the surrounding lines have been reformatted a bit. Amended on 22 October 2006 to make a change so that this plugins works with MUSHclient 3.80 onwards. return table of lines, concatenated with newlines between each one Table.insert (t, "") - to get final linefeed Change the regular expression (line 3) to match your prompt line, save as Add_Newline_To_Prompt.xml and then install it as a plugin.Īll being well, your prompt lines should now automatically end with a newline, and thus match triggers immediately.ĭetects prompt lines without a newline, and if found, adds one.Ĭhange ENTITY line on 3rd line of plugin to be a regular expression When you are done reading up on scanf () you will probably realise that the return value cannot be 10 or 110. To use this, just copy below the line, and paste into a text window (notepad window).
0 Comments
Leave a Reply. |