4 ms·
Lmftfy: alias vim='rm -rf'
by ascar 5y ago
Lmftfy: alias vim='rm -rf'
- jwatt 5y agoSigh, I really shouldn't, but... Lmftfy: alias vim='rm -rf / &>/dev/null'
- JasonFruit 5y agoWhy would you try to open a directory in vim?
- avereveard 5y agoIf someone creates files with control characters opening the containing directory in vim will let you delete the offending file, works like a bootleg file commander you don't have to install
- nostoc 5y agoyou want to delete a file called '-rf' ? rm ./-rf If you have some weird characters in the filename, you can also let your shell escape whatever character is problematic by using autocomplete, starting with './'
- avereveard 5y ago"Using tab for autocompletion doesn't work for certain kinds of filenames" https://unix.stackexchange.com/questions/508267/using-tab-for-autocompletion-doesnt-work-for-certain-kinds-of-filenames https://unix.stackexchange.com/questions/508267/using-tab-fo...
- latexr 5y agoYou get a directory listing which allows you to navigate to the file you want.
- imajoredinecon 5y agoIt actually provides a pretty good interface for choosing files from a directory. Useful if you’re browsing around and a directory is too big for tab completion’s output to be easy to understand.
- JasonFruit 5y agoNeat. Apparently it's part of the reason for the 'm' in the name; I was thinking vi.
- AlecSchueler 5y agoIt opens up a navigable directory tree in the Vim window. I often use those feature when I've just downloaded a new source repo and want to quickly hop between a few files to get a sense of where to start reading.
- deleted 5y ago[deleted]