I have this code intended to:
read current line
extract variable from end of line, looking for text like #ad04e482
search for filename that begins with the string ad04e482
open that file to edit in ...
I'm trying to make a vim function that takes a variable and uses that as part of a shell command and buts it into the current buffer.
I tried using read but that just interprets the var as a string.
I want to be able to use some normal commands I tend to use in the day to day as an input for another function, for example 4X, I would like 4X to be expanded to XXXX and then use it in a function as :...
I know that one can do a project-wide search and replace using the results of an Rg search in FZF.vim by doing the following:
Run :Rg SEARCH_TERM
Use Alt + a (or in my case, Esc + a, since I'm using ...
I want to move a line to another specified in a variable.
So where I might do this to move the current line up seven lines:
I want to do it with a variable line destination. Something like this: