vim-fle-syntax/README.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2022-10-28 13:38:32 +00:00
# vim-fle-syntax
2022-10-28 13:45:25 +00:00
VIM syntax plugin for writing Fast Log Entry (https://df3cb.com/fle/) compatible log files in VIM
2022-10-28 19:46:01 +00:00
# Screenshot
2022-10-28 19:44:11 +00:00
![screenshot](/screenshot.jpg?raw=true "screenshot")
2022-10-28 19:10:58 +00:00
## Description
2022-10-28 13:45:25 +00:00
Vim syntax file to imitate the syntax highting of Fast Log Entry (FLE).
2022-10-28 19:10:58 +00:00
## Why?
2022-10-28 19:26:22 +00:00
Because it's nice to take a small GNU/Linux based laptop with me on portable operations, just log everything with VIM and do the rest at home.
2022-10-28 19:10:58 +00:00
2022-10-31 09:00:06 +00:00
## Extras / Shortcuts
2022-10-31 08:40:06 +00:00
2022-10-31 09:00:06 +00:00
You can insert the current time in UTC and HHMM format by pressing <F5> and the current date string by pressing <F6> if you add the following lines to your .vimrc file:
2022-10-31 08:40:06 +00:00
2022-10-31 09:02:00 +00:00
" set timezone to UTC
2022-10-31 08:40:06 +00:00
let $TZ='UTC'
2022-10-31 09:02:00 +00:00
" insert current time in HHMM format with <F5>
2022-10-31 08:42:31 +00:00
:nnoremap <F5> "=strftime("%H%M ")<CR>P
:inoremap <F5> <C-R>=strftime("%H%M ")<CR>
2022-10-31 09:02:00 +00:00
" insert current date with <F6>
2022-10-31 09:00:06 +00:00
:nnoremap <F6> "=strftime("date %G-%m-%d")<CR>P
:inoremap <F6> <C-R>=strftime("date %G-%m-%d")<CR>
2022-10-31 08:40:06 +00:00
2022-10-28 19:10:58 +00:00
## Install
2022-10-28 13:45:25 +00:00
Copy or symlink these files to your $VIMRUNTIME/syntax and $VIMRUNTIME/ftdetect directory or to
~/.vim/syntax and ~/.vim/ftdetect directories