Neovim:在 Rust 中更改垂直线之间的内容

问题描述 投票:0回答:0

在 Neovim 中,我通常会执行“更改内部”操作 - 键:ci + <char> - 更改某些括号或引号内的内容。但它不适用于生锈封闭中的垂直线。

    // ---------------- v cursor here ---------
    let spawn_worker = |nonce: u32| {
        let tx = nonce_tx.clone();
        thread::spawn(move || {
            // Do the CPU work
            let _ = make_block(nonce).hash();

            // Send the result
            let _ = tx.send(());
        })
    };

例如,我把光标放在这里,然后按ci + |但是没有用

有谁知道在 Rust 中不选择闭包内容最直观的方法吗?

rust neovim
© www.soinside.com 2019 - 2024. All rights reserved.