diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index d4ee163..6f99ae9 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -56,8 +56,9 @@ map.i.nore[''] = 'guiw`]a' map.c.nore['w!!'] = [[execute 'silent! write !sudo tee % >/dev/null' edit!]] --- yank filename to f buffer -map.n.nore['yf'] = ':let @f = expand("%")' +-- yank current filename/filepath to f buffer +map.n.nore['yp'] = ':let @p = expand("%")' +map.n.nore['yP'] = ':let @p = expand("%:p")' -- repeat the last substitute command with all its flags preserved map.n.nore['&'] = ':&&'