We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b5001e commit ce27e17Copy full SHA for ce27e17
_vimrc
@@ -59,6 +59,9 @@ noremap L g_
59
60
" Command wrapper that preserves the current window view.
61
function! WithViewPreserved(command)
62
+ " Manully insert an undo block that preserves the current cursor position.
63
+ " https://github.com/rhysd/vim-clang-format/pull/55
64
+ silent execute "noautocmd normal! ii\<esc>\"_x"
65
let w = winsaveview()
66
execute a:command
67
call winrestview(w)
0 commit comments