Skip to content

Commit

Permalink
cmakedoc.vim: use safer normal! instead of normal
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicklm committed Dec 15, 2012
1 parent ceca21d commit 4ba41b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/cmakedoc.vim
Expand Up @@ -13,11 +13,11 @@ function! ShowCMakeDoc(name)
setlocal noswapfile
set buftype=nofile
setlocal modifiable
normal ggdG
normal! ggdG
execute "silent read ! ". "cmake --help-command " . a:name
setlocal nomodified
set filetype=txt
normal 1G
normal! 1G
endfunction

command! -nargs=1 ShowCMakeDoc :call ShowCMakeDoc('<args>')

0 comments on commit 4ba41b2

Please sign in to comment.