diff options
author | Martin Fischer <martin@push-f.com> | 2024-11-30 12:58:37 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-11 08:37:52 +0100 |
commit | 174f7a66633d26d519e2eb3d471d487d82b4d677 (patch) | |
tree | 5a04aabfe1b3d724838ecc61391da0d444f81b94 | |
parent | b3e73f8b5d94405e2f0fce52e8d219e37e54791d (diff) |
add vim
-rw-r--r-- | nixos/parts/basics.nix | 1 | ||||
-rw-r--r-- | user/vim/vimrc | 4 | ||||
-rw-r--r-- | user/zsh/.zshrc | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/nixos/parts/basics.nix b/nixos/parts/basics.nix index 77bc68d..87dfea4 100644 --- a/nixos/parts/basics.nix +++ b/nixos/parts/basics.nix @@ -3,6 +3,7 @@ { environment.systemPackages = with pkgs; [ git + vim ]; users.defaultUserShell = pkgs.zsh; diff --git a/user/vim/vimrc b/user/vim/vimrc new file mode 100644 index 0000000..b65deb0 --- /dev/null +++ b/user/vim/vimrc @@ -0,0 +1,4 @@ +syntax on + +" Enable pasting with middle mouse click in insert mode. +set mouse= diff --git a/user/zsh/.zshrc b/user/zsh/.zshrc index 624cb33..ea5b76a 100644 --- a/user/zsh/.zshrc +++ b/user/zsh/.zshrc @@ -47,6 +47,8 @@ SAVEHIST=1000000000 export XDG_CACHE_HOME=$HOME/.cache export XDG_CONFIG_HOME=$HOME/.config +export EDITOR=vim + ## Completion autoload -Uz compinit [ -d "$XDG_CACHE_HOME"/zsh ] || mkdir -p "$XDG_CACHE_HOME"/zsh |