Subj : Re: 2wk vim challenge To : Nelgin From : candycane Date : Fri Aug 18 2023 20:42:16 Re: 2wk vim challenge By: Nelgin to candycane on Thu Aug 17 2023 10:58 pm Ne> Most of those you can prefix with a number for example Yea I knew Ne> 80i. will insert 80 dots. This is really useful if you have a wide Ne> terminal but want to make something that's 80 columns. Pretty neat Ne> CTRL-V CTRL-whatever. For example ^V^A will insert a CTRL-A (ascii 1) into Ne> your file. CTRL Vx followed by two hex characters will insert that hex Ne> value. Found that out by accident :) Ne> :%s/this/that/g will replace eveything in the file. Use ^ to match the Ne> start of line so Ne> :%s/^abc/def/g will replace all entries on all lines that start with abc Ne> with def. Knew that, simple ed carryover Ne> You can use :set hlsearch or :set nohlsearch so when you use / to search, Ne> it'll highlight any matches or not. Ne> One last time, if you are using a dark background terminal and can't see Ne> blue on black, try :set bg=dark and it'll change the colors to make them Ne> easier to see. Pretty neat switches! Ne> To make some of these permanent, you can create a .vimrc file in your home Ne> directory with a list of comamnds like Been too lazy to :D Ne> vi file +nn where nn is a line number, it'll take you right to that line. Ne> You can use :nn to jump to a line number so :65 will take you to line 65. Ne> :5-10w newfile So cool! candycane === user is generated from /dev/urandom ....The government solution to a problem is usually as bad as the problem. --- SBBSecho 3.20-Win32 * Origin: -=[conchaos.synchro.net | ConstructiveChaos BBS]=- (1337:3/150) .