vim-ramda-import


Ⅰ. 插件描述

This is a plugin to make easier to import ramda's functions while writing code in vim.

Ⅱ. 基本信息

创建日期:  2019-09-04
使用用户:  1
Github星:  4
插件作者:  Philipe Gouveia Paixão

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'piiih/vim-ramda-import'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'piiih/vim-ramda-import'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'piiih/vim-ramda-import'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/piiih/vim-ramda-import

Ⅳ. 文档说明

# vim-ramda-import

This is a plugin to make easier to import ramda's functions while writing code.

Install

Plug

Plug 'piiih/vim-ramda-import'

Usage

It's really simple to use this plugin, just add a mapping to the function ImportFunction to your .vimrc, like this:

nnoremap <C-i> :call ImportFunction()<CR>

The code above will map the automatic import to the CTRL+i, so when you press it with cursor under the function's name
that function will be imported.

Customization

The function import is based on a list to know what are the ramda's functions. If you need for some reason to add a function
that doesn't exist in that list, you can edit the g:ramdaFunctionsList like this:

" This will add `merge` (that is a deprecated function) to the functions list
let g:ramdaFunctionsList = add(g:ramdaFunctionsList, 'merge')

添加新评论