Skip to content
/ nos.nvim Public

Super charge your neovim editor with NOS (Normal On Search)

License

Notifications You must be signed in to change notification settings

zaucy/nos.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOS (Normal On Search)

Have you ever just wanted to run some normal commands on your search results? I bet you have and you've done something like this g/wow/normal cwlookatme!. It kinda worked, but you couldn't really preview what you were doing and it only worked on 1 match per line.

nos.nvim makes doing normal on searches a breeze by:

  • executes normal commands for multiple matches on the same line
  • showing you an incremental preview
  • easily allows you to use NOS as an operator

Install

Use lazy plugin manager

{
	"zaucy/nos.nvim",
	lazy = false,
	opts = {},
	config = function()
		local nos = require('nos')
		nos.setup({})
		-- optionally set an operator keymap
		vim.keymap.set({ 'n', "v" }, 'gs', nos.opkeymapfunc, { expr = true })
		-- optionally set a whole buffer keymap
		vim.keymap.set({ 'n' }, 'gss', nos.bufkeymapfunc)
	end,
}

About

Super charge your neovim editor with NOS (Normal On Search)

Topics

Resources

License

Stars

Watchers

Forks