Category: Uncategorized

Using Vim syntax highlighting on custom file types

Let’s say you have a file type whose contents are in XML format but have a different file extension such as .tim . If you want to edit these files with Vim with syntax highlighting, simply add the following to ~/.vimrc (affects only your Vim environment) or /etc/vim/vimrc (affects everyone’s Vim environment): au BufNewFile,BufRead *.tim …

Start reading Using Vim syntax highlighting on custom file types

FATAL: Ident authentication failed for user [username] Error – PostgreSQL

If you’re getting a FATAL: Ident authentication failed for user [username] Error when attempting to connect to postgres as a specific user, chances are you need to change some security settings. Postgresql, by default, only allows you to connect to postgres if the postgres username is the same as your username on the operating system. In other …

Start reading FATAL: Ident authentication failed for user [username] Error – PostgreSQL