Recent commits to dotfiles.git (8f484ad54bb2168dc4610db080a30ac59e4e09ef) https://git.dlma.com/dotfiles.git/tree/8f484ad54bb2168dc4610db080a30ac59e4e09ef Recent commits feed provided by GitList. Added an image of a screen capture Because who doesn't need an image of their own workspace in a repo of their own dotfiles? https://git.dlma.com/dotfiles.git/commit/8f484ad54bb2168dc4610db080a30ac59e4e09ef david.blume@gmail.com (dblume) Fri, 15 Mar 2024 20:12:57 -0700 8f484ad54bb2168dc4610db080a30ac59e4e09ef Always start on first line in git commit buffers At one time &filetype was set in BufReadPost, but not now. Fix is to use a FileType autocmd for gitcommit. If it were more complicated, could put in [after/]ftplugin/$FILETYPE.vim per https://www.reddit.com/r/vim/comments/k1c63f/should_the_filetype_option_be_set_by_the_time_the/ https://git.dlma.com/dotfiles.git/commit/224ed0fb7ed9a5bf76d911c609b5c5fe27e1603b david.blume@gmail.com (dblume) Fri, 15 Mar 2024 10:56:40 -0700 224ed0fb7ed9a5bf76d911c609b5c5fe27e1603b Retrieve git branch only on new buffers Before this commit, git rev-parse would've been called for every key press (if the statusline had added the git part). https://git.dlma.com/dotfiles.git/commit/88066908d6543770f7ffa1071f9abc12a720552f david.blume@gmail.com (dblume) Fri, 15 Mar 2024 00:10:25 -0700 88066908d6543770f7ffa1071f9abc12a720552f Make test for nvim compatible with macOS. Could have used hash <the_command> # For regular commands. Or... type <the_command> # To check built-ins and keywords But why not just go with POSIX compatibility? https://git.dlma.com/dotfiles.git/commit/eb37046eb1d17eade5579fc2fc6125fed7332ad6 david.blume@gmail.com (dblume) Thu, 14 Mar 2024 11:10:18 -0700 eb37046eb1d17eade5579fc2fc6125fed7332ad6 Make git branch fit on status line; Sep │ not | Note I'm still not actually using git branch on the vim status line, I don't want all those git calls happening. But it's staged there just in case I change my mind. https://git.dlma.com/dotfiles.git/commit/44d837682919dd2fddfb3378ac7384fc1ad42e32 david.blume@gmail.com (dblume) Thu, 14 Mar 2024 09:54:22 -0700 44d837682919dd2fddfb3378ac7384fc1ad42e32 Make vim StatuslineGit() return branch for current file Use "git -C <path> ..." https://git.dlma.com/dotfiles.git/commit/64bde0cfb4581dfb63ad91aa985d0ec63f255342 david.blume@gmail.com (dblume) Wed, 13 Mar 2024 23:55:18 -0700 64bde0cfb4581dfb63ad91aa985d0ec63f255342 Have the command "vim" launch nvim where possible Alias vim, vim-, and vimdiff https://git.dlma.com/dotfiles.git/commit/86b6c123e9af8197d541653f09bda393837ade9d david.blume@gmail.com (dblume) Tue, 12 Mar 2024 20:58:54 -0700 86b6c123e9af8197d541653f09bda393837ade9d Create an update_dir function in setup.sh Now that I want to update three directories, it makes sense to do that in a function. 1. .vim/ 2. .config/nvim/ 3. .local/share/nvim/site/plugin/ https://git.dlma.com/dotfiles.git/commit/1bbe1e3ea9fcab29a9e861a88f323ea828249082 david.blume@gmail.com (dblume) Tue, 12 Mar 2024 17:24:55 -0700 1bbe1e3ea9fcab29a9e861a88f323ea828249082 Remap Y to yank to end of line, like neovim Use yy to yank a whole line. Like C and D work from current position to the end of the line, use Y to yank to the end of the line too. https://git.dlma.com/dotfiles.git/commit/bbbc9d19f897bf2fc2d9dffcf29915cc25486f41 david.blume@gmail.com (dblume) Tue, 12 Mar 2024 15:24:36 -0700 bbbc9d19f897bf2fc2d9dffcf29915cc25486f41 nvim set hidden I use scratch buffers often, especially with nv- as: alias nv-='nvim +"setl buftype=nofile" -' Then I execute commands like: rg needle . | nv- Which puts a lot of filenames in a Scratch buffer, and I want to keep that buffer around even when I switch away from it. https://git.dlma.com/dotfiles.git/commit/181b4ee2a8724b9ed0532ad9512c6d92ef53db13 dblume@roku.com (dblume) Fri, 08 Mar 2024 19:39:40 -0800 181b4ee2a8724b9ed0532ad9512c6d92ef53db13