Git Product home page Git Product logo

byte-of-vim's Issues

The macro in the "Scripting" chapter doesn't apply to all lines

I started reading the "Scripting" chapter of your nice book, and arrived at the Macro section. I tried out the macro proposed there across all lines and found out that it doesn't work in one of them. In particular, it doesn't work on the abul fazl is the historian line, because in step 4 of the macro when moving by one word, in most other lines the cursor would now be on the word is, but on this line it is on fazl instead, which means the macro for this particular line results in something like Abul was a the historian in Akbar's court., not at all what should have happened. And because this section is meant to showcase the power of macros, having the macro fail like that could confuse newcomers to Vim, leading them to think they did something wrong.
The most obvious solution for this would probably be to remove the abul fazl line altogether, since the other 3 lines are proof enough that the macro works well on a predictable context.
Thanks in advance for understanding.

P.S. Another step you could add to ensure the reproduction of the macro doesn't fail under different circumstances could be to add 0 at the beginning of the macro to ensure that the cursor is at the beginning of the line, because moving downwards lines by j often puts the cursor elsewhere than on the first character of the line, and when the macro is triggered from anywhere but the beginning of the line it obviously doesn't result in the desired outcome.

Error in Introduction

Introduction.md line 28.
In table comparing Vim with other editor:
There is: How to find and replace only in lines 50-100? Run :50,10s/old/new/g
Supposed to be: How to find and replace only in lines 50-100? Run :50,100s/old/new/g

create a list of things to work on

I'd be happy to do some small chunks of work on this - but it isn't clear what I can do to help.
If there were a list of issues, like "port chapter X to markdown" or "extract images from chapter y", I think these are things that people could help out with a little bit at a time. As is, I'm not sure how to assist. I got here by seeing the note welcoming contributions.

Even a section of the doc listing that incomplete parts would be helpful as we could submit pull requests with a part completed and that section removed from the list...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.