Ask Your Question
0

How I can swap between buffers in vim when editing a spec rpm file?

asked 2014-02-06 03:27:30 -0500

Software Specs

Fedora Version: F20
Vim version: VIM - Vi IMproved 7.4
Additional plugins installed: none

Normally when I edit any file in vim and I want swap between buffers i use

:bnext or :b1

and I can swap between buffers successfully

But when I editing a rpm spec file I receive the following error.

An error was detected while processing /usr/share/vim/vim74/ftplugin/spec.vim:
E227: mapping already exists for <80><fd>SSpecChangelog

if the mapping for spec.vim is <LocalLeader>-c which is the same (\c)

What i doing wrong?

Note: I don't have any additional plugins installed on my vim installation

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-06 03:59:14 -0500

Cobra gravatar image

I'm not sure why this is failing this way, but you should be able to show the list of open buffers with:

:buffers

and then change to a particular target buffer with:

:buffer <buffer_id>

where the buffer id is the buffer number from the first list. Of course, you don't have to list the buffers if you already know which buffer you want to go to.

edit flag offensive delete link more

Comments

in fact, it works, but still appears the same error message, that is annoying (but i can swap between buffers), thanks :)

echevemaster gravatar imageechevemaster ( 2014-02-06 04:27:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-02-06 03:27:30 -0500

Seen: 233 times

Last updated: Feb 06 '14