summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/parts/basics.nix1
-rw-r--r--user/vim/vimrc4
-rw-r--r--user/zsh/.zshrc2
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