Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598726 - app-editors/vim-core - installed vimrc calls 'normal' instead of 'normal!'
Summary: app-editors/vim-core - installed vimrc calls 'normal' instead of 'normal!'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-01 23:20 UTC by Coacher
Modified: 2016-12-01 00:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2016-11-01 23:20:01 UTC
Hello.

vim-core installs default vimrc, which has the following lines:
  " When editing a file, always jump to the last cursor position
  autocmd BufReadPost *
        \ if ! exists("g:leave_my_cursor_position_alone") |
        \     if line("'\"") > 0 && line ("'\"") <= line("$") |
        \         exe "normal g'\"" |
        \     endif |
        \ endif

Notice that this autocommand executes 'normal' instead of 'normal!', so user mappings are in effect. This is wrong.

Please fix.
Comment 1 Tim Harder gentoo-dev 2016-12-01 00:24:38 UTC
Fixed in the tree without rev-ing the file.