Arch Linux Text Editors - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Arch Linux Text Editors Guide
Complete beginner-friendly guide to text editors on Arch Linux, including Vim, Neovim, Emacs, VS Code, and text editor configuration.
Table of Contents
⌨ Terminal Editors
Vim
Install Vim:
# Install Vim
sudo pacman -S vim
# Launch
vim file.txt
Neovim
Install Neovim:
# Install Neovim
sudo pacman -S neovim
# Launch
nvim file.txt
Emacs
Install Emacs:
# Install Emacs
sudo pacman -S emacs
# Launch
emacs file.txt
nano
Install nano:
# Install nano
sudo pacman -S nano
# Launch
nano file.txt
GUI Editors
Visual Studio Code
Install VS Code:
# Install VS Code
yay -S visual-studio-code-bin
# Launch
code
Atom
Install Atom:
# Install Atom
yay -S atom
# Launch
atom
Sublime Text
Install Sublime:
# Install Sublime Text
yay -S sublime-text-4
# Launch
subl
Geany
Install Geany:
# Install Geany
sudo pacman -S geany
# Launch
geany
Editor Configuration
Vim Configuration
Configure Vim:
# Create vimrc
vim ~/.vimrc
Example:
set number
set tabstop=4
set shiftwidth=4
set expandtab
Neovim Configuration
Configure Neovim:
# Create config
mkdir -p ~/.config/nvim
vim ~/.config/nvim/init.vim
Emacs Configuration
Configure Emacs:
# Create config
vim ~/.emacs.d/init.el
Troubleshooting
Editor Not Found
Check installation:
# Check if installed
which vim
which nvim
# Install if missing
sudo pacman -S vim
Configuration Not Loading
Check config location:
# Vim
ls ~/.vimrc
# Neovim
ls ~/.config/nvim/init.vim
# Emacs
ls ~/.emacs.d/init.el
Summary
This guide covered terminal and GUI text editors, configuration, and troubleshooting.
Next Steps
- Arch Linux Development Environment - Development
- Arch Linux Terminal Emulators - Terminals
- ArchWiki Text Editors: https://wiki.archlinux.org/title/List_of_applications/Utilities#Text_editors
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.