From f67b62fdf0f7b882e594398febd699bb5be405a3 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 16 Mar 2024 10:51:44 -0400 Subject: [PATCH] Well, I guess I'm using Neovim now. Window panes and terminal buffers are kind of nice. Almost entirely replaces my need for tmux. --- .aliases | 2 +- .ashrc | 2 +- .vimrc => .config/nvim/init.vim | 10 +++++++--- README.md | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) rename .vimrc => .config/nvim/init.vim (67%) diff --git a/.aliases b/.aliases index 3f0e7ca..dd141cd 100644 --- a/.aliases +++ b/.aliases @@ -7,7 +7,7 @@ alias exit='clear; exit' alias arsync="rsync --delete -av" alias tmux="tmux -2" -alias vi="vim" +alias vi="nvim" calc() { perl -e "print($*);" diff --git a/.ashrc b/.ashrc index cd95be0..7454979 100644 --- a/.ashrc +++ b/.ashrc @@ -15,7 +15,7 @@ is_ssh() { cd "$HOME" # Signal to some programs that vi is the editor that should be launched. -export EDITOR=vim +export EDITOR=nvim # Set shell keybindings to vi set -o vi diff --git a/.vimrc b/.config/nvim/init.vim similarity index 67% rename from .vimrc rename to .config/nvim/init.vim index 80e63b1..2587091 100644 --- a/.vimrc +++ b/.config/nvim/init.vim @@ -8,10 +8,9 @@ set expandtab set showmatch set exrc -" Supported only by vim. If running a non-vim vi, remove all comments -" and everything below this line. +" vim-specific options -set compatible " Be compatible with vi. +"set compatible " Be compatible with vi (not supported in nvim) set fileformat=unix set encoding=UTF-8 @@ -27,3 +26,8 @@ set smartcase set showcmd set showmode + +" nvim-specific options + +set mouse= " Disable mouse support + diff --git a/README.md b/README.md index b58644e..24f72ab 100644 --- a/README.md +++ b/README.md @@ -52,5 +52,5 @@ apk add libreoffice musescore neochat qt5-qtlocation nextcloud-client \ apk add hunspell hunspell-en hunspell-en-us # Development -apk add git less make gcc musl-dev openssl-dev mandoc man-pages +apk add neovim pandoc git less make gcc musl-dev openssl-dev mandoc man-pages ```