Learn Essential Vim Skills
with Drew Neil, author of Practical Vim
Navigating a project
category applies to 5 screencasts:
vimgrep
is Vim’s built-in command for searching across multiple files. It’s not so fast as external tools like ack and git-grep, but it has its uses. vimgrep
uses Vim’s built-in regex engine, so you can reuse the patterns that work with Vim’s standard search command.
Git provides tools for searching the contents of files, commit messages, and even whether text was added or removed by a commit. In this episode, we’ll see how fugitive’s Ggrep
and Glog
commands wrap this functionality up so that we can search the contents and history of a git repo from right inside of Vim.
This is the last of our five part series on fugitive.vim.
Watch screencastWith the fugitive plugin, you’re not limited to just working with files in your working tree. The :Gedit
command allows you to open files in other branches, and to browse any git object, including tags, commits and trees. Plus, if your repository is hosted on github, you can easily bring up the webpage for any git object using the :Gbrowse
command.
This is the penultimate of a five part series on fugitive.vim.
Watch screencastThis episode demonstrates how Vim’s native file browser can be used to explore and manipulate the file system.
Watch screencastThis episode focuses on the :edit
command. I demonstrate how to open files whose location is relative to the current working directory, then I show how to create a mapping which makes it easier to open files in the same directory as the one in the active window.