![]() First, you can only search for that exact string (what if instead of searching for the string "mux", you want to search for "mux", "mix", and "max" simultaneously?). You can use it to quickly search through your terminal.įor example, in the terminal, if you are looking for a text, you would press Cmd + f (or Ctrl + f) and type in the string that you want to search. The vi-copy-mode is not only useful for copying texts. If you are not familiar with this, I'd highly recommend you to read my first tmux article). I use an uppercase P instead of lowercase p because Prefix + p is how tmux goes to the previous window (recall: Prefix + p to go to the previous window and Prefix + n to go to the next window. Start highlight with v (similar to vim visual mode).Position yourself to the start of the text you want to copy with vim navigation. ![]() Add these lines in the tmux config:Īs always, don't forget to save and source the config file. Finally, you can paste the yanked text with p or P. Recall that vim has a visual mode ( v) that allows you to highlight a body of text. Let's modify them to mimic vim keybindings. I find a number of the copy-pasting keys unintuitive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |