Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect background vim after :sh

Tags:

vim

I often use the :sh command while using vim (to do a grep for example).

But sometimes I forgot I had a vim running behind my shell.

Is there a command to detect that I have a vim running behind my shell?

like image 967
Schminitz Avatar asked Nov 12 '14 10:11

Schminitz


1 Answers

You can see if Vim-specific shell variables are set:

$ echo $VIM
$ echo $VIMRUNTIME
$ echo $MYVIMRC
like image 52
romainl Avatar answered Sep 30 '22 14:09

romainl