From 04c2dde8af107d4b410004c76385dc255717433a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 5 May 2015 01:00:32 +0200 Subject: [PATCH] edit_buffer: use :up instead of :w This will only write the buffer file, if the buffer has changed. --- jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 11ded99a..55a3ae28 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -555,7 +555,7 @@ def edit_buffer(path): echo_highlight('Cannot open a new buffer, use `:set hidden` or save your buffer') return False else: - vim_command('w') + vim_command('update') vim_command('edit %s' % escape_file_path(path)) fix_buffer_options() return True