Git Product home page Git Product logo

cp-dotfiles's Introduction

#Current setup for vim and tmux

##Installing

init.vim should by symlinked to .vimrc

  • Run ln -s ~/.vim/init.vim ~/.vimrc

tmux.conf should be symlinked to ~/.tmux.conf

  • Run ln -s ~/.vim/tmux.conf ~/.tmux.conf

Install vundle

  • Run git clone https://github.com/VundleVim/Vundle.Vim ~/.vim/bundle/Vundle.vim

Install Silver Searcher

  • Run brew install the_silver_searcher

Create a custom-config.vim file

  • This file is not tracked by git, it is where you should put all custom stuff. This helps avoid merge conflicts when doing a git pull.

  • These are just files in ~/.vim/colors directory

Configure the mac terminal (for vim-move to work)

  • In Terminal: Profiles -> Keyboard -> "Use Option as Meta key"
  • In iTerm: Profiles -> Keys -> "Left option key acts as" +Esc

##NeoVim ###Installing neovim - (On Mac)

  • brew install neovim/neovim/neovim

The command nvim should exist now, you could alias vim to nvim if you want
Now you'll want python3 enabled for neovim to use the autocomplete functionality

  • If you don't have python3 run brew install python3
  • You should now have pip3
  • Run pip3 install neovim
  • Run the command :echo has("python3") inside of neovim
  • If it returns 1 you're in business
  • Run :PluginInstall
  • Now run :UpdateRemotePlugins to enable deoplete (the autocomplete plugin)
  • If it returns 0 this page could help https://github.com/zchee/deoplete-jedi/wiki/Setting-up-Python-for-Neovim

Now you need neovim to run your vim settings

  • Run mkdir ~/.config (Unless you already have said directory)

Now symlink a nvim directory in here to your .vim directory (this repo)

  • Run ln -s ~/.vim ~/.config/nvim

###ctrl+h tmux bug If you're setting up NeoVim on Mac for the first time you should run the commands

infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti

As per neovim/neovim#2048 (comment)
Otherwise ctrl + h won't switch between panes in tmux

##Install font I'd suggest FiraCode https://github.com/tonsky/FiraCode as a starting point

cp-dotfiles's People

Contributors

dckesler avatar joeldenning avatar themcmurder avatar

Watchers

 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.