Skip to content

harriott/vimfiles

Repository files navigation

vim: set fdl=4:

$vimfiles/README.md

vimfiles

All of my vim files, except my .gvimrc & .vimrc - which vary by machine:

use cases

  • scripting (going faster)
  • quick navigation around my vast personal notes, which include web addresses

exploring

Some of my vim configuraton files are long, but they don't appear so to me as I use my own vim_build filetype ($vfv/ftplugin/build.vim), which folds my headings nicely.

prerequisites

snag: CRLF line endings on Arch

When I somehow managed, from PowerShell to convert hundreds of files in my configuration to CRLF line endings all the Vim variants on my Arch Linux machines were broken.

fix 1: delete my $vimfiles and repopulate from remote repositories

rm -r $vimfiles
git clone https://github.com/harriott/vimfiles $vimfiles
& $vimfiles/vim/packs/get/win64/get.ps1
& $vimfiles/vim/packs/get/unix/get.sh  # - not ready yet, see  $vimfiles/vim/packs/get/win64/get.ps1  which downloads all the plugins that I use

fix 2: convert the snagging files to LF

  1. name for the dos files list: df="$CrPl/encoding/Vim/grep_CRLF.fetl" (using my $vimfiles/syntax/fetl.vim)
  2. cd $vimfiles
  3. list the culprits: fd -Itf -x grep -rIl -m 1 $'\r' > $df
  4. do the conversions: while read CRLFfile; do sed -i 's/\r//' "${CRLFfile/:*}"; done <$df
  5. tidy off: rm $df

About

my gVim configuration files (minus vimrc & gvimrc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published