Skip to content

NickTomlin/vim_dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

After cloning this project, you can run the following to link these dotfiles into your home directory:

./activate.sh

Be warned: this will overwrite any existing .vimrc, .gvimrc or .vim/ files you have in your home directory.

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 nosetests in the current buffer
\rf - run the current nose test (requires nose-run-line-number)
\rl - run the last spec

About

our vim dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 91.0%
  • Ruby 8.8%
  • Shell 0.2%