Quantcast
Channel: Andy Atkinson
Viewing all articles
Browse latest Browse all 73

Edit the filename of the current buffer in vim

$
0
0

This blog is generated from text files that are comprised of a section of YAML code then markdown-formatted text. To convert the text files for use with new blog software I had to edit each filename and put the date the blog post was published on the front of the filename, which was in the YAML section of the file. I was looking for a solution that allowed me to preserve focus on the file contents and minimize buffer navigation while performing the rename and file edits within vim. There are a couple of ways to accomplish this. If the file is controlled by git and fugitive.vim is installed, then :Gmove can be used.


Viewing all articles
Browse latest Browse all 73

Trending Articles