← Back to all TILs

Get The pid Of The Session

vim Written February 24, 2017

Your current Vim session is a process running on your machine. That means that this session is tied to a particular process id, pid.

Want to know what the pid is?

:echo getpid()

This will echo the pid of your current Vim session.

See :h getpid() for more details.

Other posts like this