Hi, folks! I am using GVim version 7.0 on Microsoft Windows XP box. I have a question regarding Vim capability to encrypt a text file (the :X command).
These are steps how I create the encrypted text file: - I fire up Vim ; - Type :X and enter an encryption key twice ; - Type some text ; - Write the buffer into a file with :w encrypted_text.txt ; - Quit Vim with :q ; When I fire up Vim back and type :e encrypted_text.txt, it sweetly prompts me for the encryption key to read the content. The problem is when I open the from Windows Explorer by right clicking on the file and choose `Edit with Vim` from the popped menu, Vim display the content of the file in plain text without prompting for the encryption key that was set to the text file. I checked gui_w32.txt file and read about adding `Edit with Vim` entry via registry. I do not see any parameters were set in there so I assumed, choosing `Edit with Vim` is simple running `gvim.exe file_name.ext`. So, I manually try running `gvim.exe encrypted_text.txt` from console and yes, it DOES NOT prompt me for encryption key and the content of the file is displayed in plain text. Curios about this issue, I switch to my GNU/Linux box (Slackware 10.2 with the vim-6.8). I recreate the encrypted_text.txt and by running the command `gvim encrypted_text.txt` from console, it DOES PROMPT me efor the encryption key to view the content. I have asked folks in #vim on Freenode and one of them said that when they do the same thing as I've described here, it DOES prompt for the encryption key. My questions are: - Is it a `feature`? :) ; - Any idea what possibly could cause this if it is not a `feature`? Many thanks in advanced if any Vim enlightened user would share some knowledge.
