News for hackers. Stuff that matters.
Re:Five lines I put in a blank .vimrc by adrianmonk on Sunday December 13, 2020 @05:54PM (#25411260)
Another approach to the swap file thing:

    view foo   # opens read-only, no swap file
    vi foo     # opens read-write
Another benefit of this habit is, if you know you're not going to want to modify a file, you can protect yourself against errors like accidentally changing something and then absentmindedly saving the file.
Re:Five lines I put in a blank .vimrc by jiannengli on Sunday December 13, 2020 @06:15PM (#25411449)
Nice, that'll come handy