当前位置:网站首页>DMU software syntax highlighting VIM setting -- Learning Notes 6
DMU software syntax highlighting VIM setting -- Learning Notes 6
2022-06-27 06:43:00 【Analysis of breeding data】
use vim When programming , DMU No syntax highlights for keywords , I don't feel comfortable , Just set it up , And record the process .
The effect of setting is as follows
Set up the process
This time the setting is relatively simple , Divide the key words into :
- Model model, such as DMU1, DMU2…
- Different components part, such as DATA, VARIATE, MODEL…
- Different structural types type, such as PED, COR…
- newly build DIR.vim file , Set relevant parameters in it
- newly build DIR_suffix.vim file , Set suffix read
DIR.vim file :
"------------------------------------------------------------------------------"
" Description
"------------------------------------------------------------------------------"
" vim syntax highlighting file for DMU programs
" Author: Deng Fei <[email protected]>
" Created: Unknown
" Modified: 2018-11-18
" License: GPLv2
syn keyword model DMU1 DMU4 DMU5 DMUAI RJMC
syn keyword part COMMENT ANALYSE DATA VARIABLE MODEL GLMM GLMM_PRED REDUCE MIXTURE VAR_STR VAR_REST PRECOND SOLUTION PRIOR RESIDUALS TRAITS ABSORB RANDOM REGRES NOCOV
syn keyword type PED DOM COR GRE PGMIX ABS_QTL GROUP VAR COV COR V_RATIO ASCII
hi model ctermfg=Yellow
hi part ctermfg=red
hi type ctermfg=Green
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
Put the above content , Save as :DIR.vim file , Put it in :~/.vim/syntax In the folder . without syntax Folder , Just create a new one .
cp DIR.vim ~/.vim/syntax/
- 1.
DIR_suffix.vim file :
au BufRead,BufNewFile *.DIR set filetype=DIR
- 1.
Save the above to DIR_suffix.vim Asking price , Put it in :~/.vim/ftdetect In the folder . without ftdetect Folder , Just create a new one .
cp DIR_suffix.vim ~/.vim/ftdetect/
- 1.
test
Use the following code , New file test.DIR, And then use vim open , See if grammar highlighting is successful :
$ANALYSE 1 1 0 0
$DATA ASCII (8,15,0) dat_dmu.txt
$VARIABLE
ID F1 F2 F3 F4 F5
y1
$MODEL
1
0
1 0 5 2 3 4 5 1
1
0
0
$VAR_STR 1 PED 2 ASCII ped_dmu.txt
$DMUAI
10
1d-7
1d-6
1
0
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
The effect is as follows :
If you're interested in data analysis , For software operations , For data organization , Understanding the results , Any questions , Please feel free to contact me. .
边栏推荐
- Instance Tunnel 使用
- JVM class loading mechanism
- Caldera installation and simple use
- Tidb database Quick Start Guide
- Modeling competition - optical transport network modeling and value evaluation
- Convolution neural network -- Application of CNN model (ore prospecting prediction)
- Meaning of 0.0.0.0:x
- thrift
- [QT dot] QT download link
- 面试官:用分库分表如何做到永不迁移数据和避免热点问题?
猜你喜欢
Some settings about postfix completion code template in idea
Inter thread wait and wake-up mechanism, singleton mode, blocking queue, timer
[email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT"/>
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
SQL injection bypass (I)
LeetCode 0086. Separate linked list
小米面试官:听你说精通注册中心,我们来聊 3 天 3 夜
2018年数学建模竞赛-高温作业专用服装设计
G1 and ZGC garbage collector
路由器和交换机的区别
2022 CISP-PTE(一)文件包含
随机推荐
extendible hashing
Redis 缓存穿透、缓存击穿、缓存雪崩
Altium designer 19 device silk screen label position shall be placed uniformly in batches
Easyexcel: read Excel data into the list set
View functions in tidb
Optimistic and pessimistic affairs
面试官:你天天用 Lombok,说说它什么原理?我竟然答不上来…
写一个 goroutine 实例, 同时练习一下 chan
Block level elements & inline elements
小米面试官:听你说精通注册中心,我们来聊 3 天 3 夜
Visual Studio VS 快捷键使用大全
Cloud-Native Database Systems at Alibaba: Opportunities and Challenges
[cultivation system] common regular expressions
thrift
An Empirical Evaluation of In-Memory Multi-Version Concurrency Control
Centos7.9 install MySQL 5.7 and set startup
日期 数据库日期 字符串 之间互相转换
An Empirical Evaluation of In-Memory Multi-Version Concurrency Control
TiDB的事务概览
Instance Tunnel 使用