<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>> <code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">zf5j</code> folds the next 5 lines (<code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">zo</code> = open/expand, <code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">zc</code> = close, <code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">zd</code> = delete)<br></div><div><br></div><div>I had no idea you could do this. Nice.<br></div><div><br></div><div>> <code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">:ab LR Linux Rocks</code> when you type LR in INSERT MODE, replaces with Linux Rocks - this can be put into your .vimrc or .exrc file too!<br></div><div><br></div><div>You can define this globally by adding the following line to ~/.XCompose<br></div><div><br></div><div>> <Multi_key> <L><R> : "<code style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204, 204, 204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204, 204, 204);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(246, 246, 246);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;font-family:menlo, consolas, monospace;font-size:90%;padding-top:1px;padding-right:3px;padding-bottom:1px;padding-left:3px;">Linux Rocks</code>"<br></div><div><br></div><div>Now you can type <Compose>LR in any application, and it will expand to Linux Rocks. Note that you are generally limited to 2 character abbreviations.<br></div><div><br></div><div>You first need to configure the location of the <Compose> key on your keyboard. On Mint, the Keyboard settings app supports this in Layouts>Options>Position of Compose Key.<br></div><div><br></div><div>Doug.<br></div><div><br></div><div>On Sat, Dec 7, 2024, at 5:47 PM, Jason Eckert wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr">I guess I should chime in here and share the vi tutorial I made: <a href="https://jasoneckert.github.io/myblog/how-to-learn-vi-vim/">https://jasoneckert.github.io/myblog/how-to-learn-vi-vim/</a><br></div><div><br></div><div class="qt-gmail_quote qt-gmail_quote_container"><div dir="ltr" class="qt-gmail_attr">On Sat, 7 Dec 2024 at 10:34, John Van Ostrand <<a href="mailto:john@vanostrand.com">john@vanostrand.com</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="ltr"><div dir="ltr">On Fri, Dec 6, 2024 at 7:37 PM Nickle, Brian <<a href="mailto:brian@nickle.ca" target="_blank">brian@nickle.ca</a>> wrote:<br></div><div class="qt-gmail_quote"><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div dir="auto"><div>I'm just a baby unix'er I thought PINE and PICO were from the 70s but they are a 90s invention.<br></div><div dir="auto"><br></div><div dir="auto">Still gotta know some vi to do initial configs on OS without nano installed by default.<br></div></div></blockquote><div><br></div><div>There isn't a question there. I agree. I started with Unix 30 years ago taking care of company and customer servers. I could have installed other software on it, but 30 years ago I would have had to use UUCP to transfer programs (companies rarely had Internet back then.) So vi was the way to get things done, guaranteed.<br></div><div><br></div><div>I suggest you keep a cheat sheet handy, like <a href="https://www.reddit.com/r/vim/comments/32r85c/this_is_my_favorite_vim_cheat_sheet_does_anyone/#lightbox" target="_blank">https://www.reddit.com/r/vim/comments/32r85c/this_is_my_favorite_vim_cheat_sheet_does_anyone/#lightbox</a> (I picked it randomly.)<br></div><div><br></div><div>You don't need to know much to be proficient at simple modifications. Various edit modes (insert, append, replace), saving files, searching for text, jumping to lines, deleting characters and lines.<br></div></div><div><br></div><div><span class="qt-gmail_signature_prefix">--</span><br></div><div dir="ltr" class="qt-gmail_signature"><div dir="ltr"><div>John Van Ostrand<br></div><div>At large on sabbatical<br></div><div><br></div></div></div></div><div>_______________________________________________<br></div><div> kwlug-disc mailing list<br></div><div> To unsubscribe, send an email to <a href="mailto:kwlug-disc-leave@kwlug.org" target="_blank">kwlug-disc-leave@kwlug.org</a><br></div><div> with the subject "unsubscribe", or email<br></div><div> <a href="mailto:kwlug-disc-owner@kwlug.org" target="_blank">kwlug-disc-owner@kwlug.org</a> to contact a human being.<br></div></blockquote></div><div>_______________________________________________<br></div><div>kwlug-disc mailing list<br></div><div>To unsubscribe, send an email to <a href="mailto:kwlug-disc-leave@kwlug.org">kwlug-disc-leave@kwlug.org</a><br></div><div>with the subject "unsubscribe", or email<br></div><div><a href="mailto:kwlug-disc-owner@kwlug.org">kwlug-disc-owner@kwlug.org</a> to contact a human being.<br></div><div><br></div></blockquote><div><br></div></body></html>