vim-更改行号插入时突出显示/普通

时间:2018-12-24 01:56:08

标签: vim

我希望能够突出显示活动线,其中一种用于NORMAL模式,另一种用于INSERT模式。我有conoline,但是它不适用于nvim,我偶尔会用它,而且我敢肯定有一种更紧凑的方法可以做到这一点

我尝试过此操作,但会引发错误:

autocmd InsertEnter * :set highlight LineNr ctermfg=blue ctermbg=red
autocmd InsertLeave * :set highlight LineNr ctermfg=blue ctermbg=red

有什么提示吗?

1 个答案:

答案 0 :(得分:1)

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.zub.backup, PID: 18285 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at com.example.zub.backup.HomeFragment$2$3$1.onDataChange(HomeFragment.java:367) at com.google.firebase.database.zzp.onDataChange(Unknown Source:7) at com.google.android.gms.internal.firebase_database.zzfc.zza(Unknown Source:13) at com.google.android.gms.internal.firebase_database.zzgx.zzdr(Unknown Source:2) at com.google.android.gms.internal.firebase_database.zzhd.run(Unknown Source:71) at android.os.Handler.handleCallback(Handler.java:869) at android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loop(Looper.java:206) at android.app.ActivityThread.main(ActivityThread.java:6784) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:852) 是命令,不是highlight的选项。参见set

:help highlight