Rasukarusan/nvim-select-multi-line

github github
plugin
star 14
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2021-04-17

UPDATED

2 months ago

packer

require('packer').startup(function()
  use 'Rasukarusan/nvim-select-multi-line'
end)

paq

require "paq" { 
  'Rasukarusan/nvim-select-multi-line'
}

Nvim Select Multi Lines

Yank lines not adjacent

Or delete

Description

Neovim plugin.
You can select multiple lines that are not adjacent.

Requirement

  • Neovim >= 0.5

Install

You can use the plugin manager. e.g. dein.vim

[[plugins]]
repo = 'Rasukarusan/nvim-select-multi-line'

Manually

cd $XDG_CONFIG_HOME/nvim/plugin
git clone https://github.com/Rasukarusan/nvim-select-multi-line.git

Getting Started

  1. :call sml#mode_on() to enter select mode.
  2. Press v to select line.
  3. Press y to yank. (or d to delete)
keybind description
v select a line
V toggle visual mode linewise
y yank selected lines
d delete selected lines
j move cursor down
k move cursor up
Ctrl-c exit select mode

Settings

Add a mapping in your init.vim.

" any leader key
nnoremap <Space>v :call sml#mode_on()<CR>

You can control whether or not to output after yank by g:sml#echo_yank_str. Default 1.

let g:sml#echo_yank_str = 0