Title photo
frugal technology, simple living and guerrilla large-appliance repair
Fri, 15 Dec 2017

How to set file permissions from within Vim

I tried this, and it works: How to set file permissions from within Vim | Stack Overflow.

An example. In Vim's command mode:

:call setfperm("foo.txt","rw-r--r--")

It's probably easier to just do this in the Bash shell, but it can be done from within Vi/Vim.

In Bash (to make the files rw-r--r--):

chmod 644 foo.txt

I usually do all the .txt files in the directory (because I generally want text files to be 644, which is rw-r--r--):

chmod 644 *.txt
Mon, 10 Mar 2014

Gvim is vim-X11 in Fedora

I just installed Gvim, which is vim-X11 in Fedora.

Maybe a graphical version of Vim will encourage me to use it more often.

That's the theory anyway.