michaeljsmith / vim-indent-object

Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.
http://www.vim.org/scripts/script.php?script_id=3037
MIT License
747 stars 59 forks source link

Bug: vai is not indenting the last line #20

Open rjshrjndrn opened 5 years ago

rjshrjndrn commented 5 years ago

Hi, Thanks for this awesome plugin

I am facing one wierd issue, regarding vai and vaI Below is an excerpt of Vagrant file.

    end

    # starting provisionig only after all nodes are up
    if i == node_count
        config.vm.provision "ansible" do |ansible|
            ansible.playbook = "prereq.yaml"
            ansible.limit = "all"
            ansible.verbose = "v"
            ansible.groups = {
                "dp-yarn-master" => ["master"],
                "dp-yarn-slave" => ["node-[1:#{node_count}]"],
                "[dp-yarn:children]" => ["dp-yarn-master", "dp-yarn-slave"]
                }
            }
        end
    end

if I do vai from line number 15, isn't it supposed to select line number 16 also? But vaI is working as expected.

jsit commented 3 years ago

vai isn't supposed to select the line below the indent. Only vaI is: https://github.com/michaeljsmith/vim-indent-object#usage