On 29-Mar-2010, at 09:56, björn wrote: > > On 29 March 2010 16:17, LuKreme wrote: >> On 28-Mar-2010, at 21:08, LuKreme wrote: >>> >>> When I try to add a word to the word list, I get the following error: >>> >>> >>> E484: Can't open file ....long/path/vim/runtime/spell/en.utf-8.add >>> >>> sure enough, that file (and en.utf-8.add.spl) are owned by root. Can I >>> safely chown them to me? (the application is in ~/Applications/) >> >> OK, no after effects from changing ownership on the file. >> >> However, it makes me wonder, if MacVim was installed in /Applications then >> either only admins would be able to write to the word list, or only the >> FIRST admin would be able to add to the wordlist. > > The wordlist should be stored under ~/.vim/spell/, _NOT_ inside the > app bundle so something has gone wrong.
I will try moving it then and see how that works. chmod 700 on ~/.vim/ ? >> Why isn't the wordlist stored in ~/Library/Spelling (where the users >> wordlist is stored)? and why doesn't macvim read the >> ~/Library/Spelling/[locale] and ~/Library/Spelling/LocalDictionary files as >> part of the local word list? > > Vim stores user files under ~/.vim -- changing this for MacVim would > not make much sense. Also, Vim uses its own dictionary format so > integrating this with Mac OS X's own spelling system would not be > easy. First, there is no ~/.vim/ folder, so MacVim didn't create it for me when I installed it nor on first run. I have a .vimrc which I had to create manually, a .gvimrc which I had to create manually, and a .viminfo which I did not create. Second, the wordlists in ~/Library/Spelling/ are plain UTF-8 text files, exactly the same as the files vim creates to store user words in. # file .../path/to/en.utf-8.add en.utf-8.add: UTF-8 Unicode text # file Library/Spelling/LocalDictionary Library/Spelling/LocalDictionary: UTF-8 Unicode text In fact, I manually imported them into vim by simply doing # cat ~/Library/Spelling/LocalDictionary >> ...path/to/spell/en.utf-8.add I was tempted to just link them, but thought better of it. # cat ~/Library/Spelling/LocalDictionary ain't AppleScripts Archuleta awk Aziraphale Cingular Comcast Crowley Danson defrag dhcp Digby dystopia dystopic fetchmail FireFox folksong fqdn Gaiman Gaspode [etc etc] -- The Germans wore gray, you wore blue. -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe, reply using "remove me" as the subject.