开发者

vim unmap everything (completely stripped down vim)

Love vim. Tried Janu开发者_开发百科s. Like the idea, but it's too slow, 100 plugins competing for keybindings. I want to actually understand what every vim configuration I make does.

Is there a way to "unmap" all vim keys or as much as possible. Remove most commands, etc. The point of this is an exercise for myself. I want a super small subset of maps, settings, bindings, so I can add things one by one as I need them.

Have you seen efforts like this?


Try to run vim with the following command :

"vim -u NONE"

from man vim

   -u {vimrc}  Use the commands in the file {vimrc}  for  initializations.
               All  the  other  initializations  are skipped.  Use this to
               edit a special kind of files.  It can also be used to  skip
               all  initializations by giving the name "NONE".  See ":help
               initialization" within vim for more details.

It should start vim without any plugin or customisation.


Aside from

:mapclear
:nmapclear
:vmapclear
:xmapclear
:smapclear
:omapclear
:mapclear
:imapclear
:lmapclear
:cmapclear

starting it like

vim -U NONE -C -Z

will start

  • -U without startupfile
  • -C in compatible mode
  • -Z in restricted mode


I tried to do something similar and posted that on reddit post.

I try to restrict the mappings I define in my vimrc and load only some plugins that I find essential.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜