Skip to main content

Questions tagged [environment-variables]

1 vote
1 answer
162 views

I'm trying to add the path of mason's bin to the environment path of Neovim, in its profile. So I don't need to change my OS's environment path every time I'm changing computer. I tried vim.opt.path:...
WeariTraveller's user avatar
0 votes
0 answers
104 views

I want to somehow open a file in an existing neovim instance (if none is running open a new one of course). I thought about having one global instance but that doesn't seem right since I have terminal ...
glades's user avatar
  • 187
3 votes
1 answer
449 views

I'm writing some PowerShell scripts on Windows and they contain references to other script like this: & "$PSScriptRoot\install_scoop.ps1" $PSScriptRoot equals the same directory as the ...
paradroid's user avatar
  • 432
0 votes
2 answers
160 views

I would like Vim (run in a terminal) to only use the leftmost 80 columns of the terminal (i.e., not display anything in the columns right of that). Of course, I don't want to have to resize my ...
a3nm's user avatar
  • 465
0 votes
1 answer
155 views

In my shell, I can use curly braces to isolate the names of environment variables. For example, if I have two env vars, ONE and TWO, equal to 1 and 2, then > echo "$ONE_$TWO" ONE_: ...
Chris Heithoff's user avatar
0 votes
0 answers
430 views

It seems that when starting Vim, it stores the value of the environment variable $PATH into its own internal variable $PATH. Then, when using $PATH anywhere inside Vim, it gets expanded into the ...
gdupras's user avatar
  • 186
1 vote
2 answers
701 views

I'm using Poetry to manage my virtual environments for Python and I'm using Vimspector as a debugger plugin for Vim. How can I use the Poetry venv when starting debugging? I'm thinking that all that ...
Xxxo's user avatar
  • 187
7 votes
2 answers
1k views

Why is let foo = $HOME valid and let foo = $HOME/bar invalid in vimscript? I have tried let foo = "$HOME/bar" but it is the equivalent of foo = '$HOME/bar' in shell script, $HOME is not ...
Damien L's user avatar
  • 173
1 vote
0 answers
175 views

I was building CMake today and I saw in the install output: -- Installing: /ford1/share/gmao_SIteam/Utilities/cmake-3.19.3/share/vim/vimfiles/indent -- Installing: /ford1/share/gmao_SIteam/Utilities/...
Fortran's user avatar
  • 111
1 vote
2 answers
1k views

I have 3 languages and any can be a source or target so I need some flexibility. I am successfully loading a language translation specific setup with this: let g:tr_source = 'dyu' let g:tr_target =...
Boyd's user avatar
  • 219
1 vote
2 answers
3k views

I've created some Python virtual environments: hmanx ~ » pyenv virtualenvs 3.7.4/envs/nn (created from /home/roach/.pyenv/versions/3.7.4) 3.8.2/envs/py38 (created from /home/roach/.pyenv/versions/...
roachsinai's user avatar
3 votes
1 answer
1k views

I'm trying to improve the answer here for copying to clipboard in a vim without the +clipboard option. The problem with the above approach is that :w always writes the entire line, so it is not ...
Tim Mak's user avatar
  • 133
2 votes
2 answers
821 views

I have the number of my xterm (i.e., the value of /dev/tty??) saved as an environment variable, TTY e.g., echo $TTY returns 11. I'd like to include this number in the title, along with the name of ...
Leo Simon's user avatar
  • 725
8 votes
2 answers
7k views

I have Vim 7 installed from my distro's package manager, and I compiled Vim 8 from source. Vim 8 is all in /usr/local. Then I created a new directory in $HOME called ".vim8". I have all my Vim 7 stuff ...
Todd Walton's user avatar
3 votes
2 answers
443 views

How to sort the output of let or get? E.g., I want to sort all global variables containing "python": :filter python let g:
Konstantin Glukhov's user avatar

15 30 50 per page