How to exit vim Home, Documentation and Downloads
The “How to exit vim” repository contains many “weird tricks” for exiting Vim. the easiest way :!ps axuw | grep vim | grep -v grep | awk ‘{print $2}’ | xargs kill -9 The Python way :py3 import os,signal;from subprocess import check_output;os.kill(int(check_output([“pidof”,”vim”]).decode (‘utf-8’)),signal.SIGTERM) Pure Perl way :!perl -e ‘while(</proc/*>){open($f, “$_/cmdline”); kill 9, […]
How to exit vim Home, Documentation and Downloads Read More »