我正在我的.vimrc中配置我的vim colorscheme。
"Color scheme
syntax enable
set background = dark
colorscheme solarized
当我用Vim打开文件时,它会报告:
Error detected while processing /home/user/.vimrc:
line 3:
E518: Unknown option: dark
Press ENTER or type command to continue
但它的工作原理如下: dark background
当我在.vimrc中评论它时,请注意:
"set background = dark
显示器如下:commented dark background。
我想知道为什么会发生这种情况以及如何解决它。
答案 0 :(得分:7)
:set
的有效语法:
set option=value
set option= value
:let
的有效语法:
let variable=value
let variable= value
let variable =value
let variable = value
建议始终使用相同的语法来保持一致性。我用:
set option=value
let variable = value
答案 1 :(得分:4)
删除public class MyDBHandler extends SQLiteOpenHelper{
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "bmiwerte.db";
public static final String TABLE_BMIS = "bmis";
public static final String COLUMN_ID = "_id";
public static final String COLUMN_NAME = "name";
public static final String COLUMN_BMI = "bmi";
public MyDBHandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
super(context, DATABASE_NAME, factory, DATABASE_VERSION);
}
private static final String CREATE_TABLE_BMIS = "CREATE TABLE "
+TABLE_BMIS
+" ("
+COLUMN_ID
+" INTEGER AUTOINCREMENT, "
+COLUMN_NAME
+" TEXT PRIMARY KEY"
+COLUMN_BMI
+" TEXT"
+");";
@Override
public void onCreate(SQLiteDatabase db) {
//Lässt Query in SQL laufen
Log.i("exxxx", "Creating Check");
db.execSQL(CREATE_TABLE_BMIS);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL("DROP TABLE IF EXIST " + TABLE_BMIS);
onCreate(db);
}
public void addValues(BMI_Werte wert){
ContentValues values = new ContentValues();
values.put(COLUMN_NAME, wert.get_name());
values.put(COLUMN_BMI, wert.get_bmiWert().toString());
Log.i("exxx", wert.get_name());
Log.i("exxxx", wert.get_bmiWert().toString());
SQLiteDatabase db = getWritableDatabase();
db.insert(TABLE_BMIS, null, values);
db.close();
}
public void deleteValues(String name){
Log.i("exxxx", "deleteValuse");
SQLiteDatabase db = getWritableDatabase();
db.execSQL("DELETE FROM " + TABLE_BMIS + " WHERE " +
COLUMN_NAME + "=\"" + name + "\";");
}
public String databaseToString(){
String dbString = "";
SQLiteDatabase db = this.getWritableDatabase();
String query = "SELECT * FROM " + TABLE_BMIS;
String test = "DESCRIBE " + TABLE_BMIS;
Cursor c = db.rawQuery(query, null);
c.moveToFirst();
while(!c.isAfterLast()){
if(c.getString(c.getColumnIndex("name")) != null){
dbString += c.getString(c.getColumnIndex("name"));
dbString += "\n";
}
c.moveToNext();
}
db.close();
return dbString;
}
周围的空间,你应该很好
=
答案 2 :(得分:0)
我刚刚更改了语法并且工作正常
:colorscheme blue
它也有效
If Application.Intersect(Tx, Range(Target.Address)).Value = "x" Then