I would like to sort some lines, ignoring a leading part of them.
Here's an example from my
I would like to sort these, but I need to ignore the leading
( for that.
Similarly, here's an excerpt from my
packages = with pkgs; [ ## Basics atool bashInteractive entr ethtool fasd fd file fzf git git-crypt gitAndTools.hub google-cloud-sdk gparted hdparm htop i7z inotify-tools iperf lm_sensors neovim p7zip parted pwgen ripgrep sshfs # tarsnap tmux tree unzip wget xclip zip ];
Here, I would like to sort the lines, ignoring the leading
How would I do this in Vim?
I'm aware of
:sort /\v# /, but that would only sort lines that match the pattern, then ignore the pattern for sorting.