Skip to content

TomiLabo/vim-tmng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a vim syntax file for TmngDocument.

demo1 demo2

demo with onion

Feature

  • syntax highlight
  • snippets for tmng document (depends on neosnippets)
  • Replace to and to
  • CretateTemplate

Installation

Plug 'TomiLabo/vim-tmng'
NeoBundle 'TomiLabo/vim-tmng'
  • with onion
Plug 'TomiLabo/vim-tmng', {'do': 'go get -u github.com/TomiLabo/onion/cmd/onion'}
NeoBundle 'TomiLabo/vim-tmng', {'make': 'go get -u github.com/TomiLabo/onion/cmd/onion'}

Command

:TmngCreateTmplate (filetype txt and tmng only)

■ s00t000 [] 2015.12.13(日)

● 

◎ 

● 予定

○ 2015.12.13(日) Event [Auter] 00:00-00:00 (Type) <Place>
○ 2015.12.13(日) Event [Auter] 00:00-00:00 (Type) <Place>

:TmngReplaceDotAndComma

ああああ,いいいい.  => ああああ、いいいい。

Snippets

  • head
  • title
  • subtitle
  • list
  • work
  • schedule

Configuration

  • g:tmng#student_id
let g:tmng_student_id  " default student id

" example :
let g:tmng#student_id = 's10t200'

"=> ■ s10t200 [] 2015.12.13(日)
  • g:tmng#title_template
  • g:tmng#subtitle_template
let g:tmng#title_template      " default title
let g:tmng#subtitle_template   " default subtitle

" execute
let g:tmng#title_template    = '課題ページ'
let g:tmng#subtitle_template = '技術演習6'

"=> ● 課題ページ
"=> ◎ 技術演習6

Sample vimrc

let g:tmng#student_id = 's10t200'
let g:tmng#title_template    = '課題ページ'
let g:tmng#subtitle_template = '技術演習6'

Contribute

KagawaUniv Student Laboratory Project Member only.

LISENCE

This software is released under the MIT License, see LICENSE.txt.