E492:不是编辑器命令:Pluginstall

时间:2020-06-13 00:12:05

标签: vim

所以我试图为vim安装一些插件,但弹出一些错误“ E492:不是编辑器命令:Pluginstall”,我下载了Vundle,我认为我输入的内容正确

struct ContentView: View {
@State var timeRemaining = 0.5
let timer = Timer.publish(every: 0.5, on: .main, in: .common).autoconnect()
@State var userIsPressing = false //detecting whether user is long pressing the screen

var body: some View {
    VStack {
       Image(systemName: "chevron.left").onReceive(self.timer) { _ in
           if self.userIsPressing == true {
             if self.timeRemaining > 0 {
                self.timeRemaining -= 0.5
              }
            //resetting the timer every 0.5 secdonds and executing code whenever //timer reaches 0

     if self.timeRemaining == 0 {
            print("execute this code")
            self.timeRemaining = 0.5
         }
        }
    }.gesture(LongPressGesture(minimumDuration: 0.5)
                   .onChanged() { _ in
                       //when longpressGesture started
                   self.userIsPressing = true
                   }
                   .onEnded() { _ in
                       //when longpressGesture ended
                   self.userIsPressing = false

                   }
                   )
           }
}
}

和源%工作正常,但是当我键入:PluginInstall时弹出错误

1 个答案:

答案 0 :(得分:1)

如果您使用Vundle commands are Plugin and PluginInstall

命令PlugPlugInstall用于vim-plug