ConradIrwin / vim-bracketed-paste

Handles bracketed-paste-mode in vim (aka. automatic `:set paste`)
MIT License
481 stars 28 forks source link

Spaces/tabulation #22

Closed JPFrancoia closed 4 years ago

JPFrancoia commented 8 years ago

Hi, this plugin looks great ! I've been struggling for years with the "broken" copy/paste feature of Vim.

However, I encounter a problem. If my cursor is a the first or second level of indention and I try to paste something, here is what I get:

            try:
            journal = self.feed['feed']['title']
        except KeyError:
            self.l.critical("No title for the journal ! Aborting")
            self.l.critical(self.url_feed)
            return

This is probably because I told Vim to replace tabulations with 4 spaces (better for Python). I don't know if I'm clear, but is there a way to fix this ?