当前位置:网站首页>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. .

边栏推荐
- Redis cache penetration, cache breakdown, cache avalanche
- tracepoint
- 427-二叉树(617.合并二叉树、700.二叉搜索树中的搜索、98. 验证二叉搜索树、530.二叉搜索树的最小绝对差)
- 建模竞赛-光传送网建模与价值评估
- Centos7.9 install MySQL 5.7 and set startup
- Assembly language - Wang Shuang Chapter 9 Principles of transfer instructions - Notes
- Keep 2 decimal places after multiplying SQLSEVER fields
- Inter thread wait and wake-up mechanism, singleton mode, blocking queue, timer
- IDEA中关于Postfix Completion代码模板的一些设置
- 古典密码体制--代换和置换
猜你喜欢

POI replacing text and pictures in docx

IDEA中关于Postfix Completion代码模板的一些设置

2022 cisp-pte (I) document contains

426-二叉树(513.找树左下角的值、112. 路径总和、106.从中序与后序遍历序列构造二叉树、654. 最大二叉树)

小米面试官:听你说精通注册中心,我们来聊 3 天 3 夜

On gpu: historical development and structure

Redis 缓存穿透、缓存击穿、缓存雪崩

JVM overall structure analysis

thrift

【毕业季】毕业是人生旅途的新开始,你准备好了吗
随机推荐
2022 CISP-PTE(一)文件包含
Tidb basic functions
426-二叉树(513.找树左下角的值、112. 路径总和、106.从中序与后序遍历序列构造二叉树、654. 最大二叉树)
Cloud-Native Database Systems at Alibaba: Opportunities and Challenges
路由器和交换机的区别
Redis 缓存穿透、缓存击穿、缓存雪崩
高斯分布Gaussian distribution、線性回歸、邏輯回歸logistics regression
TiDB 中的视图功能
面试官:用分库分表如何做到永不迁移数据和避免热点问题?
TiDB 基本功能
Unrecognized VM option ‘‘
Write an example of goroutine and practice Chan at the same time
Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state
Block level elements & inline elements
When there are multiple El select, the selected value is filtered by El select, and the last selected value is filtered by the second El select
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
Overview of database schema in tidb
Gaussian distribution, linear regression, logistic regression
Ora-00909: invalid number of parameters, caused by concat
JVM garbage collection mechanism