Vim: underscore(_) automatically converted to (<-)

前端 未结 4 741
长情又很酷
长情又很酷 2021-01-14 11:45

I have been writing R scripts in Vim for some time now. Starting an hour ago, I began facing an issue that every time I type an underscore (_), it gets automati

4条回答
  •  春和景丽
    2021-01-14 12:13

    It may be also worthwhile to add that a convenient setting may involve re-assigning the operator, for instance the .vimrc setting:

    " Nvim-R extra settings
    "" Change assignment operator
    let R_assign_map = "|"
    

    Would assign the r assignment operator <- to Shift+|. This feature is described ithe provided documentation. In the R_assign section.

提交回复
热议问题