my-mappings.vim


Ⅰ. 插件描述

my general vim mappings

Ⅱ. 基本信息

创建日期:  2017-04-24
使用用户:  1
Github星:  1
插件作者:  Javier López

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'javier-lopez/my-mappings-vim-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'javier-lopez/my-mappings-vim-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'javier-lopez/my-mappings-vim-may-fear-less'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/javier-lopez/my-mappings.vim

Ⅳ. 文档说明

my-mappings.vim is a global plugin who set mappings according to they way I use vim. It sets highly opinionated settings. Probably not something you would like to use straight ahead. Some of the features are:

  • Ctrl-[hjkl] to move between panes
  • , as map leader
  • <backspace> for deleting visual selections
  • make Y consistent with D and C
  • SS to use sudo on current file to force overwrite
  • avoid common mistakes, Q,W,QW, wq, etc.
  • etc.

Requirements

  • Vim 7.0+

Installation

  • Vundle way (recommended), add the following to your $HOME/.vimrc file:

    Bundle 'javier-lopez/my-mappings.vim'

    And run inside of vim:
    

    :BundleInstall

  • Pathogen way:

    $ git clone https://github.com/javier-lopez/my-mappings.vim.git ~/.vim/bundle/my-mappings.vim

  • Manual (simplest if you've never heard of vundle or pathogen), download the zip file generated from github and extract it to $HOME/.vim

    mv my-mappings.vim*.zip $HOME/.vim
    cd $HOME/.vim && unzip my-mappings.vim*.zip

    Update the help tags from vim:
    

    :helpt ~/.vim/doc/

添加新评论