From 6f386d26a2c5968073e17d445aabe4e33a1ab84e2290cb75f9a666ef961a957f Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 19 Jun 2024 00:18:02 +0200 Subject: [PATCH] add fvim alias, setup nvim undofile --- README.md | 1 + nvim/.config/nvim/init.vim | 3 +++ zsh/.zshrc | 1 + 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index d09cb55..4858844 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ You will need atleast following packages for it to work ### Getting started For stow to restore the old state you have to run following command. + `git clone https://git.snrd.eu/Spaenny/dotfiles.git && cd dotfiles` `stow alacritty nvim plasma zsh` diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 451be46..d377357 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -42,3 +42,6 @@ set cursorline " disable creating swap file set noswapfile + +" setup an undofile +set undofile diff --git a/zsh/.zshrc b/zsh/.zshrc index b10bde8..ef30e62 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -106,6 +106,7 @@ alias autoremove='paru -Rns $(pacman -Qdtq)' alias autoclean='paru -Sc' alias autoclean-all='paru -Scc' alias kexec-load="sudo kexec -l /boot/vmlinuz-linux-zen --initrd=/boot/initramfs-linux-zen.img --reuse-cmdline" +alias fvim='nvim $(fzf --preview="cat {}")' # Setup better history with fzf source <(fzf --zsh)