Recursive find & replace in Vim

After switching to Vim from Sublime (via a brief stint on Atom) there’s one feature that I used infrequently, but was incredibly invaluable when needed and that Recursive find & replace. I wish there was a simple shift+cmd+f to bring it up, but here’s how to achieve something similar in Vim. Populate Vim args: :args `find <dir_to_look_in> -type f` Find & replace: :argdo %s/<replace_this>/<with_this>/gce | update g - Change all occurrences on each line c - Confirm before replacing e - Skips pattern not found errors | update - Saves buffer after applying change Alternatively, you could just use vim-easygrep…

September 18, 2015 · 1 min · Ali Hamidi

Scala Dev with Vim

After spending several hours spread across 2 or 3 days I’ve finally arrived at a (more or less) usable Scala Dev environment on Vim. I’ve outlined my setup below! Goals Code Completion - Done Syntax Highlighting - Done :A access to tests (Alternates) - Pending Guide Install Java 8 (I initially had 1.7 installed it was effectively unusable due to constant outOfMemory issues) # Update brew cask brew cask update # Install latest Java brew cask install java Install eclim...

September 16, 2015 · 1 min · Ali Hamidi

Projectionist for Go

I’ve been using Vim exclusively for all of my Go development work for the past year or so and over that time I’ve slowly been customizing my setup. There are a number of essential plugins, including Vim-go and YouCompleteMe, but after recently working on a Rails project I encountered Vim-rails which includes some useful commands to jump around the project such as: :Econtroller users :Emodel thing :Eview blah Along with setting up alternates for jumping between source files and test files etc…...

September 9, 2015 · 1 min · Ali Hamidi