Skip to content

Commit a0d06a3

Browse files
committed
Update README.md
- files are now loaded using badd + edit, not badd + blast - tmux_vim is now tolerant of cwd changes in vim
1 parent c21d3cf commit a0d06a3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,10 @@ By default, **vim** won't abandon an unsaved file to open another one, instead
180180
the user is prompted to save, abandon or cancel. This can throw out the
181181
keystroke injection when trying to open multiple files.
182182

183-
To avoid this problem, files are loaded with calls to `:badd` rather than
184-
`:edit`. After the last buffer is added, `:blast` is used to switch to it. This
185-
delays the user prompt until the very end, when the user has regained control.
186-
This appears to work, but there may still be issues lurking.
187-
188-
When the **vim** pane is created, the current directory is saved in the **tmux**
189-
environment. The directory is used when computing relative paths. If the user
190-
manually changes the vim working directory, the relative paths will break.
183+
To avoid this problem, all but the last file is loaded with `:badd`, using
184+
`:edit` only for the last file. This delays the user prompt until the very end,
185+
when the user has regained control. This appears to work, but there may still
186+
be issues lurking.
191187

192188
Contact
193189
-------

0 commit comments

Comments
 (0)