PHSix / faster.nvim

A neovim plugin to accelerate j or k moving.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

faster.nvim

A neovim plugin to accelerate j or k moving.

Screenshot

use accelerate normal

Usage

2021-10-24 upgrade: Now support map gk or gj for user who has set wrap.

2021-11-21 upgrade: Add visual mode support. It only testing with the packer(one of the neovim plugins manager).

use{
  "PHSix/faster.nvim",
  event = {"VimEnter *"},
  config = function()
    vim.api.nvim_set_keymap('n', 'j', '<Plug>(faster_move_j)', {noremap=false, silent=true})
    vim.api.nvim_set_keymap('n', 'k', '<Plug>(faster_move_k)', {noremap=false, silent=true})
    -- or 
    -- vim.api.nvim_set_keymap('n', 'j', '<Plug>(faster_move_gj)', {noremap=false, silent=true})
    -- vim.api.nvim_set_keymap('n', 'k', '<Plug>(faster_move_gk)', {noremap=false, silent=true})
    -- if you need map in visual mode
    -- vim.api.nvim_set_keymap('v', 'j', '<Plug>(faster_vmove_j)', {noremap=false, silent=true})
    -- vim.api.nvim_set_keymap('v', 'k', '<Plug>(faster_vmove_k)', {noremap=false, silent=true})
  end
}

Inspiration

rhysd/accelerated-jk

About

A neovim plugin to accelerate j or k moving.


Languages

Language:Lua 68.4%Language:Vim Script 31.6%