Skip to content
This is a plugin to make easier to import ramda's functions while writing code in vim.
Vim script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ftdetect
ftplugin
LICENSE.md
README.md

README.md

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')
You can’t perform that action at this time.