-
Notifications
You must be signed in to change notification settings - Fork 1
vim mappings
Oliver Gaida edited this page Jun 5, 2020
·
3 revisions
if you want to use rusdc in vim, you may map some function-keys to rusdc commands:
.vimrc File:
" Mapping F2 to rusdc find CI
map <F2> "zyiW:exe "r !rusdc find nr \"name like '".@z."'\" name,z_project,alarm_id --format mlr"<CR>
" Mapping F3 to show the Incident
map <F3> "zyiW:exe "r !rusdc find --format mlr in \"ref_num = '".@z."'\" ref_num,z_project,summary,status,call_back_date,affected_resource,orig_user_organization,assignee,rootcause,z_security_flag,group,z_impact_str,impact,urgency,description --mlr_format xtab"<CR>
if the cursor is on a ci-name in vim, you can press F2 to load some CI-facts from the SDM. if the cursor is on an incident-name in vim, you can press F3 to load some incident-facts from the SDM.