From a096b6e223281df81c8fc41427b4e4f648655c80 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 5e949d8c..fccc694a 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -569,7 +569,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