Re:Helix: A Neovim inspired editor, written in Rust
by pigcat on Monday October 10, 2022 @11:25AM
(#33152574)
what does `ci"` do in vim? I'm decent with vim, but it didn't make sense to me - then I tried it and it didn't do anything.
[ Parent
| on HN ]
Re:Helix: A Neovim inspired editor, written in Rust
by torarvid on Monday October 10, 2022 @11:41AM
(#33152809)
Change inside doublequotes. You can also do `ci{` or similar to Change inside curly-braces or `di[` to Delete inside square brackets
Re:Helix: A Neovim inspired editor, written in Rust
by thegeomaster on Monday October 10, 2022 @11:41AM
(#33152799)
Deletes text inside the nearest quotes and puts you in insert mode. You probably tried it without being inside a quoted string, that's why it did nothing.
Re:Helix: A Neovim inspired editor, written in Rust
by exDM69 on Monday October 10, 2022 @11:50AM
(#33152926)
Cursor needs to be between double quotes (e.g. inside string literal) for ci" to work. See `:help text-objects`.
Re:Helix: A Neovim inspired editor, written in Rust
by Agentlien on Monday October 10, 2022 @11:57AM
(#33153025)
ci is "change inner ..."
If we use | to mark our cursor, and you have your cursor inside quote: '"he|re"'
ci" would replace everything inside giving you '"|"' and putting you in insert mode.
cab would aso remove the quotation marks and give you '|'
With ce or cw you'd get '"he"' and cE or cW would give you '"he'