Coder Social home page Coder Social logo

.vim's Introduction

This is my personal vim set up. I'm using GitHub for version control & portability.

Vim Plug Ins:

Description Name (Link to GitHub)
Plug in manager Vim Plug
File browsing NERDTree
Git gutter Vim-Signify
Whitespace stripping Vim-Better-Whitespace
Better indents for parentheses/brackets Indent-Python
Code linting Ale
Previewing Markdown in browser previm
Easy commenting/uncommenting vim-commentary
Aligning text, tables, values, etc. tabular
Better status line at bottom of screen lightline.vim
Function that returns name of git branch vim-gitbranch
Color Scheme onehalf
Python Syntax Highlighting python-syntax
Status bar that includes flake8 errors lightline-ale

To Port (first time in new env):

  1. If .vim dir already exists, check to see if any relevant file need to be copied.
    If so, copy file(s) into home dir
    cp ~/.vim/spell ~/spell -r

  2. Remove existing .vim dir AFTER relevant files have been copied
    rm .vim --recursive

  3. Remove .vimrc if it exists
    rm .vimrc

  4. Clone repo
    git clone https://github.com/loganthomas/.vim.git

  5. Create symbolic link (like shortcut) in home directory
    ln -s ~/.vim/vimrc ~/.vimrc

  6. If previous relevant files were copied, move them into new (cloned) .vim dir
    mv ~/spell ~/.vim/spell

  7. Install plug-ins
    vim
    :PlugInstall

  8. Cleanup plug-ins (delete unused plug-ins)
    vim
    :PlugClean

Updating (no need to port again):

  1. Once .vim has been ported (following above), no need to re-create symbolic link.
    Pulling from repo will include updates.

  2. Simply pull from repo (within cloned repo in env to update)
    git pull origin master

  3. If new vim plug ins were added, must install them
    vim
    :PlugInstall

  4. If old vim plug ins were removed, must uninstall them
    vim
    :PlugClean

  5. If new vim plug ins require a python package, must install it
    (For example, syntastic requires flake8 python package)
    pip insall flake8 OR pip install flake8 --user

Plugin Reminders

Previm

  • Use :PrevimOpen to open .md file in browser for preview
  • Use :help g:previm_open_cmd for man page
    # Windows
    let g:previm_open_cmd = 'start chrome'
    
    # Mac
    let g:previm_open_cmd = 'open -a Google\ Chrome'
    

.vim's People

Contributors

loganthomas avatar

Watchers

 avatar  avatar

.vim's Issues

Repo should be OS agnostic

  • Make sure Mac and Windows setups are the same
  • Make sure PrevimOpen is commented out, but included for Mac and Windows version

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.