Skip to content

Instantly share code, notes, and snippets.

@mgrider
Forked from jlehikoinen/setup.sh
Last active March 22, 2024 01:55

Revisions

  1. mgrider revised this gist Jan 21, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim-swift-setup.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ echo "--- creating ~/.vim/pack/bundle/start dir.."
    mkdir -p ~/.vim/pack/bundle/start

    echo "--- Cloning Apple's Swift repo.."
    git clone https://github.com/apple/swift/
    git clone --depth=1 https://github.com/apple/swift/

    echo "--- Copying plugin to Vim bundles.."
    cp -r ./swift/utils/vim ~/.vim/pack/bundle/start/swift
  2. mgrider renamed this gist Sep 5, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. mgrider revised this gist Sep 5, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ echo "--- Cloning Apple's Swift repo.."
    git clone https://github.com/apple/swift/

    echo "--- Copying plugin to Vim bundles.."
    cp -r ./swift/utils/vim ~/.vim/bundle/start/swift
    cp -r ./swift/utils/vim ~/.vim/pack/bundle/start/swift

    echo "--- Cleaning up, removing swift repo.."
    rm -rf ./swift/
  4. mgrider revised this gist Aug 28, 2019. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,17 @@
    # Swift syntax highlighting for Vim

    # Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/
    # Original Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/
    # Another helpful article: https://billyto.github.io/blog/swift-syntax-vim
    # More about Vim packages: http://vimcasts.org/episodes/packages/

    echo "--- Installing and configuring Pathogen.."
    mkdir -p ~/.vim/autoload ~/.vim/bundle
    curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

    echo "execute pathogen#infect()
    syntax on
    filetype plugin indent on" >> ~/.vimrc
    echo "--- creating ~/.vim/pack/bundle/start dir.."
    mkdir -p ~/.vim/pack/bundle/start

    echo "--- Cloning Apple's Swift repo.."
    git clone https://github.com/apple/swift/

    echo "--- Copying plugin to Vim bundles.."
    cp -r ./swift/utils/vim ~/.vim/bundle/
    cp -r ./swift/utils/vim ~/.vim/bundle/start/swift

    echo "--- Cleaning up, removing swift repo.."
    rm -rf ./swift/
  5. Janne Lehikoinen revised this gist Feb 23, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,16 @@

    # Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/

    echo "--- Installing and configuring Pathogen.."
    mkdir -p ~/.vim/autoload ~/.vim/bundle
    curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

    echo "execute pathogen#infect()
    syntax on
    filetype plugin indent on" >> ~/.vimrc

    echo "--- Cloning Apple's Swift repo.."
    git clone https://github.com/apple/swift/

    echo "--- Copying plugin to Vim bundles.."
    cp -r ./swift/utils/vim ~/.vim/bundle/
  6. Janne Lehikoinen created this gist Feb 22, 2016.
    14 changes: 14 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Swift syntax highlighting for Vim

    # Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/

    mkdir -p ~/.vim/autoload ~/.vim/bundle
    curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

    echo "execute pathogen#infect()
    syntax on
    filetype plugin indent on" >> ~/.vimrc

    git clone https://github.com/apple/swift/

    cp -r ./swift/utils/vim ~/.vim/bundle/