Reputation: 133
Coming from vim, I could add a pre-defined find/replace by using the 'command' keyword in the .vimrc file and give it a command name.
What would be the equivalent on atom, to be able to, essentially, define a find/replace regex and save it as a new command to call up whenever needed?
Upvotes: 3
Views: 408
Reputation: 8620
https://atom.io/packages/replacing-pattern-collection
replacing-pattern-collection package
This package helps using find-and-replace. If you often use same complex pattern in find-and-replace, this package is helpful. This package save patterns to file, and load patterns from file.
See package docs for usage help.
Upvotes: 3