質問

I've seen several bits of documentation on how to do ad-hoc vim key bindings.

Since I'm trying to pitch vim (or, to be more accurate, the idea of free 'nix text editors in general) to a coworker, I'm hoping to make it as painless for them as possible.

In contract to that ad-hoc approach, is there a wholesale block of widely accepted text I can throw into a .vimrc file in order to make most "standard" mac or windows keyboard shortcuts behave roughly the way they would on those systems? (For example, ctrl-s for save, ctrl-f to bring up a search, ctrl-v to "put" a string, ctrl-w to close, ctrl-q to quit, or some subset/superset of those ...)

Thanks for any help. I'm happy to build these on my own if needed, but I figured that if I'm documenting it for future use, I might as well link out instead of rebuilding the wheel.

I did a bit of looking around before asking, but if this is a duplicate, feel free to merge.

役に立ちましたか?

解決

mswin.vim provides many typical Windows keybindings, so that any Notepad user will feel almost comfortable with Vim. You enable that by putting

source $VIMRUNTIME/mswin.vim

into your ~/.vimrc, cp. :help mswin.vim.

:set insertmode

(or starting via evim) almost turns Vim into Notepad by defaulting to insert mode :-)

The downside is similar to training wheels for bikes: It allows for some quick successes, but overall takes longer to become proficient. (I personally started out with mswin.vim, and gradually reduced the mappings.)

他のヒント

There is cream. It's a vim plugin that starts in insert mode and rebinds ctrl-c to copy, ctrl-v to paste etc...

http://cream.sourceforge.net/home.html

It's intended to make things easier for people used to editing in more conventional editors. That said I never used it. I learned vim the hard way and don't regret it.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top