Giter Site home page Giter Site logo

vimfiles's Introduction

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. prepare: cd $vimfiles; rm grep_CRLF.ufco
  2. list the culprits: fd -tf -x file | grep CRLF >> $vimfiles/grep_CRLF.ufco (using my $vimfiles/syntax/ufco.vim)
  3. do the conversions: while read CRLFfile; do sed -i 's/\r//' ${CRLFfile/:*}; done <grep_CRLF.ufco
  4. tidy off: rm $vimfiles/grep_CRLF.ufco

vimfiles's People

Contributors

harriott avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.