- Entering command mode frequently, makes Shift-; a lot of work
- Remembering ;/, pair for forward/backward through f/t searches is less intuitive than n/N pair for forward backward through / searches
- Swap
,and:in normal and visual mode solves both problems- Command mode quick to enter with single
,press ;/:pair matchesn/Npair when navigating throughfandtresults
- Command mode quick to enter with single
- In
init.lua:
vim.keymap.set({ 'n', 'v' }, ',', ':') -- enter command mode with ,
vim.keymap.set({ 'n', 'v' }, ':', ',') -- walk backward through f and t results using : (similar to n/N for / results)
-- also remap g; and g, ?- Reddit comment where I got this idea | pandubear