mirror of
https://github.com/FAUSheppy/config
synced 2025-12-11 09:08:32 +01:00
added codition to only highlight .dia files
This commit is contained in:
4
vim/rc
4
vim/rc
@@ -91,7 +91,7 @@ nnoremap l $
|
|||||||
"general use
|
"general use
|
||||||
inoremap jk <esc>
|
inoremap jk <esc>
|
||||||
nnoremap U CTRL-r
|
nnoremap U CTRL-r
|
||||||
nnoremap <F4> :nohlsearch<CR>
|
nnoremap <F8> :nohlsearch<CR>
|
||||||
"u is normal undo
|
"u is normal undo
|
||||||
|
|
||||||
"inoremap <esc> <nop>
|
"inoremap <esc> <nop>
|
||||||
@@ -104,7 +104,7 @@ nnoremap <leader>s :mksession<CR>
|
|||||||
"save session, resume with vim -S
|
"save session, resume with vim -S
|
||||||
|
|
||||||
"highlighting for .dia
|
"highlighting for .dia
|
||||||
if 1 == 1
|
if @% =~ ".*.dia"
|
||||||
syntax match nodeID "N.*:"
|
syntax match nodeID "N.*:"
|
||||||
syntax match leaveID "[A-MO-Z]\+.*:"
|
syntax match leaveID "[A-MO-Z]\+.*:"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user