Git Product home page Git Product logo

vim_dotfiles's Introduction

Overview

Clone this project directy into ~/.vim:

# Clean up old unnecessary files or symlinks
rm -f ~/.vimrc ~/.gvimrc ~/.vimrc.bundles; rm -rf ~/.vim

# Clone directly into ~/.vim
git clone [email protected]:braintreeps/vim_dotfiles ~/.vim

After cloning this project, run ~/.vim/activate.sh.

Uses vim-plug to manage bundles.

Default Shortcuts

The file explorer - NERD Tree:

\nt - open/close NERD Tree
\nf - reveal the current file in NERD Tree
\nr - refresh the contents of NERT Tree (can also use r or R to refresh a folder)
? - in NERD Tree to see all its shortcuts

File search - fzf:

\ff - find a file
\fb - find an open buffer
\ft - find ctags

Comments (watch out for 's):

gc<motion> - toggle comments
gcc - toggle comments on the current line
\cc - toggle comments
\uc - toggle comments

Vimux (must be inside a tmux)

\vp - prompt for a command to run in vimux
\vs - send the block of code to the vimux window
\rl - run the last command

Jump to definition - CTags

CTRL+] - jump to definition
g CTRL+] - pop up a selector if there is more than one definition; if there is only one, jump there
\rt - rebuild tags

Git Grep - Fugitive

\gw - git grep for the word under the cursor

Whitespace

\cw - clean up trailing whitespace at the end of the line

Ruby Specific Mappings

\rb - run all specs in current buffer
\rc - run all specs in current context
\rf - run the spec under the cursor
\rl - run the last spec
\rs - syntax check the current file

Python-Specific Mappings

\rb - run all tests in the current buffer (pytest or nose)
\rf - run the current test
\rl - run the last test

vim_dotfiles's People

Contributors

drewolson avatar braintreeps avatar pgr0ss avatar ssgelm avatar nicktomlin avatar leighmcculloch avatar lollipopman avatar dewyze avatar crookedneighbor avatar clashthebunny avatar pcorliss avatar parrish avatar mattikus avatar duelinmarkers avatar qxjit avatar wmvarney avatar mrak avatar sparkertime avatar zbelzer avatar quinnjn avatar beane avatar maorleger avatar kcboschert avatar brianchhun avatar sdqali avatar plainlystated avatar lukesteensen avatar jtdowney avatar english avatar pdex avatar

Watchers

James Cloos 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.