Before trying these courses , Please try vimtutor that comes bundled with vim . After practicing with vimtutor , you can try these additional courses.
first vimtutor and then :help user-manual
Show HN: I built an online interactive course that helps you learn Vim faster
271–280 of 283 posts
Re: Show HN: I built an online interactive course that helps you learn Vim faster
#272Re: Show HN: I built an online interactive course that helps you learn Vim faster
#273Re: Show HN: I built an online interactive course that helps you learn Vim faster
#274Earlier quoted context omitted.
ysiwb yank-surround-in-word-brackets also does it. If you have https://github.com/tpope/vim-surround/ installed.
Could you please explain why we use Yank here? From what I understand yank puts the surround-in-word in a register. But there is nothing surrounding the word! I thought yank was for copying and pasting stuff. I can't understand why ysiwb works :(
Re: Show HN: I built an online interactive course that helps you learn Vim faster
#275Re: Show HN: I built an online interactive course that helps you learn Vim faster
#276Nice trial exercise on the front page. While trying it out, I wanted to use the backspace key, which in Vim moves to the last character on the previous line (when used on the beginning of a line, that is), but that didn't work - backspace on the start of the line doesn't seem to move the cursor at all. I was pleasantly surprised that cw and D are implemented correctly though, so props on that!
AFAIK that's controlled by "set backspace=" and thus will vary based on one's .vimrc (or the system vimrc, installed by the package manager): https://stackoverflow.com/questions/18777705/vim-whats-the-d...
One can see the current value of the backspace setting via
:echo &backspaceRe: Show HN: I built an online interactive course that helps you learn Vim faster
#277Earlier quoted context omitted.
Could you please explain why we use Yank here? From what I understand yank puts the surround-in-word in a register. But there is nothing surrounding the word! I thought yank was for copying and pasting stuff. I can't understand why ysiwb works :(
I believe that this is just an arbitrary choice that doesn't collide with other keys and is fairly consistent with the other keybindings — cs for changing delimiters, ds for deleting delimiters, and ys for creating delimiters.
They should not overload y for yank. Choose anything else that's not used.
Re: Show HN: I built an online interactive course that helps you learn Vim faster
#278Re: Show HN: I built an online interactive course that helps you learn Vim faster
#279Re: Show HN: I built an online interactive course that helps you learn Vim faster
#280Nice trial exercise on the front page. While trying it out, I wanted to use the backspace key, which in Vim moves to the last character on the previous line (when used on the beginning of a line, that is), but that didn't work - backspace on the start of the line doesn't seem to move the cursor at all. I was pleasantly surprised that cw and D are implemented correctly though, so props on that!
> backspace on the start of the line doesn't seem to move the cursor at all. AFAIK that's controlled by "set backspace=" and thus will vary based on one's .vimrc (or the system vimrc, installed by the package manager): https://stackoverflow.com/questions/18777705/vim-whats-the-d... One can see the current value of the backspace setting via :echo &backspace