Issue 346 in vim: undo file file name too long on linux

95 views
Skip to first unread message

v...@googlecode.com

unread,
Mar 22, 2015, 6:25:15 AM3/22/15
to vim...@vim.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 346 by verders...@gmail.com: undo file file name too long on linux
https://code.google.com/p/vim/issues/detail?id=346

What steps will reproduce the problem?
1. open file of which the full path+filename is longer than the maximum
filename-length allowed by linux; in my case this is I think >134, because
of cryptfs module. Otherwise >255
2. alter something, hit save

What is the expected output? What do you see instead?
Expected, normal write, no problem
In stead:
E828: Cannot open undo file for writing:
/home/john/.vim/undodir/%home%john%projects%some_project%some_joomla_directory%components%com_jreviews%jreviews%cms_compat%joomla%models%everywhere%everywhere_com_content.php

What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:59)
Ubunbu linux with cryptfs

Please provide any additional information below.
in .vimrc:
set undofile
set undodir=/home/john/.vim/undodir/

I found out it is the filename length because I tried creating the file
manually, investigating what went wrong, and linux said the name was too
long. On searching documentation and forums I have come up with zero
information about this behaviour.

My suggestion for a clean fix for this is using a hash of path in stead of
full path.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages