summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-06-14 21:03:42 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-06-14 21:03:42 +0100
commitc6369365333e8f554e94ff10d0825a76b5d88239 (patch)
treec137d01f3d0dc154118124a67d95455f8dbc415c
parent3ef968ec5e51e100083e7f62018c9340115163e3 (diff)
Replace vim with neovim
-rw-r--r--source/_posts/installing_arch_linux_on_a_x220_thinkpad.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/_posts/installing_arch_linux_on_a_x220_thinkpad.md b/source/_posts/installing_arch_linux_on_a_x220_thinkpad.md
index d9b572c..48ccd30 100644
--- a/source/_posts/installing_arch_linux_on_a_x220_thinkpad.md
+++ b/source/_posts/installing_arch_linux_on_a_x220_thinkpad.md
@@ -327,12 +327,12 @@ $ curl -s "https://www.archlinux.org/mirrorlist/?country=GB&protocol=https&use_m
The *pacstrap* script is used to install the base package, Linux kernel and firmware.
```shell
-$ pacstrap /mnt base linux linux-firmware vim wpa_supplicant dhcpcd cryptsetup lvm2 efibootmgr intel-ucode
+$ pacstrap /mnt base linux linux-firmware neovim wpa_supplicant dhcpcd cryptsetup lvm2 efibootmgr intel-ucode
```
I also installed a few other packages that I knew I was going to need.
-- *vim*. Allows you to edit files instead of using *nano*.
+- *neovim*. Allows you to edit files instead of using *nano*.
- *wpa_supplicant*. Provides tools for connecting to a WPA2 protected wireless network.
- *dhcpcd*. Needed so that you machine can obtain an IP address from your home router via dhcp.
- *cryptsetup*. Since the partition is encrypted this package is required in order for it to be decrypted during booting.
@@ -372,10 +372,10 @@ $ hwclock --systohc
## Localization
-Use *vim* to edit */etc/locale.gen*.
+Use *nvim* to edit */etc/locale.gen*.
```shell
-$ vim /etc/locale.gen
+$ nvim /etc/locale.gen
```
Uncomment your preferred language. For me this meant *en_GB.UTF-8 UTF-8*. Save the file and exit before generating the locales.
@@ -387,7 +387,7 @@ $ locale-gen
Edit */etc/locale.conf*.
```shell
-$ vim /etc/locale.conf
+$ nvim /etc/locale.conf
```
Add the below line. Replace *en_GB.UTF-8* with the language that you chose earlier.
@@ -399,7 +399,7 @@ LANG=en_GB.UTF-8
If you used *loadkeys* earlier you will need to edit */etc/vconsole.conf* and add your chosen keymap.
```shell
-$ vim /etc/vconsole.conf
+$ nvim /etc/vconsole.conf
```
For me this meant adding the UK keymap.
@@ -419,7 +419,7 @@ $ echo suliman > /etc/hostname
You then need to edit the */etc/hosts* file.
```shell
-$ vim /etc/hosts
+$ nvim /etc/hosts
```
Add the following lines to this file. Replace *suliman* with the hostname you set up earlier.
@@ -478,7 +478,7 @@ $ wpa_passphrase <SSID> <PASSWORD> > /etc/wpa_supplicant/wpa_supplicant-wlp3s0.c
If your wireless network uses a hidden SSID you will need to edit the configuration file.
```shell
-$ vim /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf
+$ nvim /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf
```
And add the below line.
@@ -505,7 +505,7 @@ You will need to rebuild the initial ramdisk and the current one is not aware th
```shell
-$ vim /etc/mkinitcpio.conf
+$ nvim /etc/mkinitcpio.conf
```
Locate the section where the *HOOKS* are configured and replace it with the line below.
@@ -529,7 +529,7 @@ The Thinkpad X220 UEFI implementation allows an operating system to be booted wi
Modifying the motherboard boot entries is done using *efibootmgr*. However usage of this command can be quite verbose so it is recommended to create a shell script instead.
```shell
-vim /usr/local/sbin/mkefibootentry
+nvim /usr/local/sbin/mkefibootentry
```
The shell script will call *efibootmgr* with the required arguments.