Code Monkey home page Code Monkey logo

macvim_config's Introduction

My MacVim config

screenshot

This repository contains my MacVim configuration process for a new computer, it is based on my own work flow as a web developer (in PHP, JavaScript, HTML, CSS) and it includes:

  • my gvimrc file
  • .vim directory containing various customization files including my own theme, snippets, syntax highlighting, etc.
  • the font of my choice

Disclaimer
I created this repository for my own needs and I highly recommend that you check it thoroughly before installing it on your system. I am not responsible if something goes wrong, so use at your own risk.

INSTALLATION

Step 1 - Install prequisites

Step 2 - Prepare $HOME directory

$ cd ~
$ mkdir .backups/.backup .backups/.swp .backups/.undo gutentags
$ git clone [email protected]:antaed/macvim_config.git .vim
$ git clone https://github.com/k-takata/minpac.git ~/.vim/pack/minpac/opt/minpac
$ echo "runtime gvimrc" > .gvimrc
  • Install one of the font variants from ~/.vim/antaed

Step 3 - Install plugins

  • :call minpac#update()
  • :call coc#util#install()

Step 4 - Set MacVim as git mergetool

$ git config --global merge.tool diffconflicts
$ git config --global mergetool.diffconflicts.cmd "macvim -c DiffConflicts \"$MERGED\" \"$BASE\" \"$LOCAL\" \"$REMOTE\""
$ git config --global mergetool.diffconflicts.trustExitCode true
$ git config --global mergetool.keepBackup false

Step 5 - Set MacVim preferences

  • When MacVim launches: Check for updates
  • Open files from applications: in a new window and set the arglist
  • After last window closes: Hide MacVim

If issues...

  • check ~/.config/ permissions
  • open files that won't load with MacVim and run :w ++ff=unix

macvim_config's People

Contributors

antaed avatar

Watchers

 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.