Git Product home page Git Product logo

vim-textobj-indent's People

Contributors

kana avatar

Stargazers

André Ligné avatar  avatar Anton Olifir avatar Teddy Hartanto avatar Max Schillinger avatar Nicolas Paul avatar Terence Caesar avatar H avatar Jason Jones avatar FightingOrz avatar Ambady Anand S avatar  avatar Donie Leigh avatar Yuka Kato avatar iwataka avatar  avatar Korneel avatar Dmytro Meleshko avatar Benoit de Chezelles avatar  avatar  avatar  avatar Sophie Dawson avatar IK avatar  avatar Jonas Mühlmann avatar Sanchayan Maity avatar tamago324 avatar Maddison Hellstrom avatar Tyler Arrigoni avatar cSan avatar Siddhartha Kasivajhula avatar  avatar Pranshu Srivastava avatar Mauricio Trajano avatar C.D. MacEachern avatar Harry Collins avatar Rick Price avatar Russell Tepper avatar Paul Yeo avatar Ken Powers avatar Kidman avatar ^_^ avatar NAKAMURA Mitsuhiro avatar Robert Annewandter avatar Kei Ohtani avatar milvi avatar Ivan D Vasin avatar theans avatar Ardhika avatar toruta39 avatar Olexander Popov avatar Nick Johnson avatar Florent avatar Bob Peterson avatar Anton Styagun avatar  avatar Adam Wagner avatar Shadowfacts avatar Chris Coleman avatar Jose R. avatar elig0n avatar  avatar Emerson MX avatar kuator avatar  avatar Kinkalow avatar  avatar Xiaofeng Wang avatar richardwong avatar Yuta Katayama avatar Tsuyoshi CHO avatar  avatar  avatar Mahbub Alam avatar Diego Nogueira avatar Michael Anhari avatar  avatar Nisal avatar ym555 avatar John Shea, Ed.D. avatar hyhttop5 avatar aiya000 avatar Rodrigo Figueroa avatar Mitchell Garvin avatar Yatao Li avatar  avatar  avatar Mike^e avatar Eric Davis avatar Eric Wong avatar  avatar tricarte avatar rapan931 avatar Eduardo Bellido Bellido avatar Asheq Imran avatar Yaroslav Mazuryk avatar  avatar Toru Hoyano avatar Sandeep Tuniki avatar

Watchers

 avatar Luca Pette avatar Akinori Hattori avatar James Cloos avatar JINNOUCHI Yasushi avatar Benoit de Chezelles avatar  avatar

vim-textobj-indent's Issues

textobj#user#plugin not found

After installing vim-textobj-indent plugin under bundle/, vim began to complain

Error detected while processing /home/akira/dotfiles/.vim/bundle/vim-textobj-indent/plugin/textobj/indent.vim:
line 48:
E117: Unknown function: textobj#user#plugin

so, where is the definition of textobj#user#plugin? I couldn't find it. Isn't it implemented yet?

インデントブロック末尾部での aiについて

[A]位置にカーソルがあるときに
vaiでforブロックの中が選択されるのを期待していたのですが、
その外のインデントが選択されていまいます。
[B]位置であれば、forブロックの中が選択されます。

色々試してみたところインデントブロックの最後部が空行だと一つ外のインデントが
範囲になるように思います。
これはそういうものでしょうか?
よろしくお願いします。

#include <iostream>

int main()
{
    for (auto i = 0; i != 100; ++i) {

[B]     std::cout << "hello" << i << std::endl;
[A]
    }

    return 0;
}

Visual ai is based on start of selection instead of cursor position

With the following code:

def foo():
    pass

@decorator               # visual select this line
def bar():               # and this line
    print("some code")   # and this line, cursor should be left on this line
    print("some other code")

    print("here we are doing real things!")
    print("some more other code...")

def other_foo():
    pass

So we're in visual mode, the cursor is on an indented line inside function bar.

Now if I do ai I'd expect to select the rest (or maybe only the inside?) of the function bar, instead it select the whole file..

It looks like it considers the start of the visual search as the indentation to use, but I think it should take the current cursor position for this, no?

NOTE: when we're in normal mode, and the cursor is on a print in function bar, vai does select only the inside of the function, so that works.

vai bug

Here's my input (| is the cursor position)

group :api do
  |gem 'sinatra'
  gem 'slim'
end

vai now selects

group :api do
  gem 'sinatra'
  gem 'slim'

That can't be right can it?

Making textobj extendable (eg. viii...)

As noted in the docs:

  • The current selection is not extended like |aw| nor |ip|
    whenever |(textobj-indent-a)| or |(textobj-indent-i)| is
    repeated in Visual mode.

Is there any change that the behavior of extending indent level could be achieved (e.g. viii...)?

Thank you.

Holger

Smarter ii

Given code sample below:

>def hello
  output = "hello!"

  output.upcase
end

def bye
  "bye!"
end

when I run vii, I get

|def hello
| output = "hello!"

  output.upcase
end

def bye
  "bye!"
end

while vai gives me

|def hello
| output = "hello!"
|  
| output.upcase
|end
|
|def bye
| "bye!"
|end

I see current logic here, but with vii I'd rather have

|def hello
| output = "hello!"
|  
| output.upcase
|end

def bye
  "bye!"
end

i. e. do not give up on an empty line if the following line is more indented than current one.

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.