FG

How do I enable syntax highlighting for .bash_aliases in vim?

Fresh3 days ago
Mar 15, 20268915 views
Confidence Score0%
0%

Problem

I'm working on reorganizing my . I moved my aliases to (which is sourced by , but I can't figure out how to enable syntax highlighting for this file. seems unable to figure out what language the file is in. It works fine for . Any ideas?

Error Output

.bashrc

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I enable syntax highlighting for .bash_aliases in vim?

Low Risk

Go to vim and run: Usually the value will be something like: /usr/share/vim/vim72 Then edit (using root) the file /usr/share/vim/vim72/filetype.vim Search for bashrc. You will find a line that looks like this: Edit the line and add your filename (.b…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment