Search the Community
Showing results for tags 'macvim'.
Since I work with a lot of ASCII text files which I like to edit with MacVim, I've set my macOS so that all files with a .txt extension are opened with MacVim. Then, if I want to edit one on the fly, I can just type my Alfred keyboard shortcut and then type "open somefile.txt" and Alfred will open it in MacVim. But what I've noticed is that MacVim doesn't appear to be reading my ~/.vimrc file when I open files using Alfred as the settings I have in that file aren't set in MacVim when the file is opened. On the other hand, if I were to open and terminal window and change to the directory where the file is located and open it using MacVim from the command line "mvim -v somefile.txt", all my vim settings are present. Has anyone else had this problem? Is this happening because I'm opening MacVim using Alfred? If so, is there a way to fix it? Thanks.
This searches for lines matching a regular expression like the grep command. You can install this workflow by downloading the .alfredworkflow file from: https://github.com/ichitaro/alfred-grep Notes: Input files are supposed to be encoded in UTF-8. For performance reasons, please consider using Alfred's File Buffer to reduce search scope, instead of passing a large directory tree to the file action.
MacVim Toolbox This workflow adds commands for working with MacVim. The commands are: vim:editterminal Edit the selected file from Finder or PathFinder in a terminal MacVim in Terminal.app. vim:edititerm Edit the selected file from Finder or PathFinder in a terminal MacVim in iTerm2 in a tab. vim:editgui Edit the selected file from Finder or PathFinder in a gui MacVim It also has commands for the Alfred Browser to edit with MacVim in terminal or gui. There are hotkey you can define as well. Version: 1.2 Date: Jan 5, 2016 Packal: http://www.packal.org/workflow/macvim-toolkit GitHub: https://github.com/raguay/MyAlfred My Website: http://customct.com/alfred-2-workflows
Take the selected file (or folder) in Finder and edit it in MacVim. This would also be a good pattern for "Open Finder file in ThisOtherApplication" https://dl.dropboxusercontent.com/u/27500327/shared/Finder_to_MacVim.alfredworkflow