| pjd | exec 'inoremap '.a:key." \<C-O>".cmd endfunction along with command -nargs=+ MapToggle call MapToggle(<f-args>), it lets you say "MapToggle <F1> hls", and so on i use it for wrap, list, ignorecase, paste, and so on :) |
| Flat_ | Hi, is there a way I can copy the character / word / line that the cursor is on to the search prompt? |
| trez | pjd: thanks, will try that out :) |
| thumbs | you can add it to the buffer with ve |
| pjd | Flat_: see :h c_<C-R>_<C-W> |
| Flat_ | pjd: Exactly. Thanks. pjd: Thanks also for your above function. Very helpful. |
| pjd | :) |
| thumbs | i discovered ve and vw recently |
| pjd | do you know text objects? :) vaw, and so ow "so on", even |
| thumbs | I don't, I am afraid I shall explore them |
| pjd | you can say for example "daw" to delete a word |
| thumbs | nice. |
| pjd | ca( changes the current () block, and so on |
| thumbs | wow. this is nice stuff |
| pjd | yi", yanks the contents of the current "-string and so on |
| thumbs | what help page can I look for to read all about that? |
| pjd | :h text-objects |
| thumbs | thanks a bunch |
| pjd | that's the referenc; to see the user manual's tutorial, see :h 04.8 "reference", even |
| thumbs | much appreaciated |
| pjd | if you haven't already, it's a good idea to skim through the user manual (:h toc) |
| thumbs | i do, but not often enough I have to resort to finding specific commands that I need at the moment |
| roshanpv | hi any body out there |
| Zathrus | no |
| roshanpv | i want to have full windows like configuration on suse 10.2 what should i do WINDOWS LIKE CONFIGURATION MEANS FULL SHORTCUTS EVERY THING |
| Zathrus | what do you mean "windows like" ? |