diff --git a/python/ycm/tests/vimsupport_test.py b/python/ycm/tests/vimsupport_test.py index 36e747df..3009d9f9 100644 --- a/python/ycm/tests/vimsupport_test.py +++ b/python/ycm/tests/vimsupport_test.py @@ -1374,7 +1374,7 @@ def OpenFilename_test( vim_current, vim_command ): call( '12split {0}'.format( __file__ ) ), call( "exec " "'au BufEnter :silent! checktime {0}'".format( __file__ ) ), - call( 'silent! normal G zz' ), + call( 'silent! normal! Gzz' ), call( 'silent! wincmd p' ) ] ) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 10957dd1..f24af47a 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -1034,4 +1034,4 @@ def _SetUpLoadedBuffer( command, filename, fix, position, watch ): .format( filename ) ) if position == 'end': - vim.command( 'silent! normal G zz' ) + vim.command( 'silent! normal! Gzz' )