Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Created October 11, 2023 22:13
Show Gist options
  • Save deomorxsy/14510fc691fa79f0c60d4aa01a1c8521 to your computer and use it in GitHub Desktop.
Save deomorxsy/14510fc691fa79f0c60d4aa01a1c8521 to your computer and use it in GitHub Desktop.
sed variable expansion and its relation with delimiters (you can't use the same character for both).

source

[asari@asari nvim]$ sed -e "s/p3hp_placeholder/$roco/g" mock.lua
sed: -e expressão #1, caractere 21: opção desconhecida para o comando `s' (s///?)
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$ sed -e "s@p3hp_placeholder@$roco@g" mock.lua
require("user.remap")
require("tools")
require("settings")
require("user.packer")

vim.opt.runtimepath:prepend("~/.vim") -- counterpart of :set^=, prepend or add before all characters
vim.opt.runtimepath:append ("~/.vim/after") -- counterpart of :set+=, append or add after all characters
vim.o.packpath = vim.o.runtimepath
--require("~/.vimrc")

-- check ./lua/user/packer.lua for installed plugins

-- python interpreter path from virtualenv
vim.g.python3_host_prog = "/usr/bin/python"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment