From bb121c445a0bb18cd44911916451f3a621ad53d5 Mon Sep 17 00:00:00 2001 From: Bert Kellerman Date: Wed, 22 Jan 2020 07:50:00 -0800 Subject: [PATCH 1/5] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d2dfe82..e239448 100644 --- a/README.md +++ b/README.md @@ -639,3 +639,8 @@ ssh -i ec2-user@ vim ``` 5. In the AWS EC2, select the newly created EC2 instance and terminate the instance. + +## The AWS CLI Wau +``` +!aws --region `ec2-metadata --availability-zone | sed 's/placement: \(.*\).$/\1/'` ec2 stop-instances --instance-ids `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` +``` From a43ed82cb03325fc4f21bdb8a6c5fa33f4cf632e Mon Sep 17 00:00:00 2001 From: Bert Kellerman Date: Wed, 22 Jan 2020 07:50:24 -0800 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e239448..b1d1148 100644 --- a/README.md +++ b/README.md @@ -640,7 +640,7 @@ vim ``` 5. In the AWS EC2, select the newly created EC2 instance and terminate the instance. -## The AWS CLI Wau +## The AWS CLI Way ``` !aws --region `ec2-metadata --availability-zone | sed 's/placement: \(.*\).$/\1/'` ec2 stop-instances --instance-ids `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` ``` From aed61217d2289e82cbe0284963400c46358a6039 Mon Sep 17 00:00:00 2001 From: cobaltblu27 <31608123+cobaltblu27@users.noreply.github.com> Date: Sun, 26 Jan 2020 15:59:55 +0900 Subject: [PATCH 3/5] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2362e77..1d716a9 100644 --- a/README.md +++ b/README.md @@ -679,3 +679,8 @@ Credit:@Tomcat-42 Credit: @jofftiquez ***Quit software engineering for good.*** + +## The Stack Overflow Way +Credit: @cobaltblu27 + +*Yeah exiting vim is really frustrating sometimes. You should definately try using Neovim. It's fast, has terminal emulator, and also supports plugin that will help you exit vim.* From e304b297587bbb7be86556f8506c262e835fe905 Mon Sep 17 00:00:00 2001 From: Adam Leskis Date: Sun, 26 Jan 2020 22:30:22 +0000 Subject: [PATCH 4/5] The Ansible Way --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 2362e77..6741613 100644 --- a/README.md +++ b/README.md @@ -679,3 +679,38 @@ Credit:@Tomcat-42 Credit: @jofftiquez ***Quit software engineering for good.*** + +## The Ansible Way +Credit: @lpmi-13 + +run vim.yml playbook with the following contents: + +``` +--- +- hosts: vimbox + + vars: + required_packages: + - vim + + tasks: + - name: install python 2 + raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) + + - name: Update APT package cache + apt: + update_cache: yes + + - name: Run apt-get upgrade + apt: upgrade=safe + + - name: Install required packages + apt: state=installed pkg={{ item }} + with_items: "{{ required_packages }}" + + - name: Start Vim in the background. + shell: "(vim >/dev/null 2>&1 &)" + + - name: Quit Vim. + shell: "(pkill vim)" +``` From 67a590a5bcea84a4741eb7d50a9afa63971d9bb0 Mon Sep 17 00:00:00 2001 From: maiki Date: Mon, 3 Feb 2020 13:35:19 -0800 Subject: [PATCH 5/5] Fix headings and code formatting --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d716a9..9b46705 100644 --- a/README.md +++ b/README.md @@ -534,9 +534,10 @@ exit him how exit vim ``` -### Linux +## Linux ```vim :call libcallnr('libc.so.6', 'exit', 0) +``` ## The canonical way Credit: @ligurio