Can you have file type-specific key bindings in Vim?

后端 未结 6 1662
攒了一身酷
攒了一身酷 2020-12-04 10:54

In my .vimrc file, I have a key binding for commenting out that inserts double slashes (//) at the start of a line:

" the mappi         


        
6条回答
  •  没有蜡笔的小新
    2020-12-04 11:28

    Btw... if your primary problem is about commenting... you should check out 'nerdcommenter' plugin, its the fastest way to comment/uncomment your code in java/c/c++/python/dos_batch_file/etc etc.

提交回复
热议问题