Skip to content

Commit

Permalink
avoid timeout in appended maps
Browse files Browse the repository at this point in the history
Leave insert mode without abbreviations and triggers, in some configurations
preventing a noticeable timeout before results are visible.
  • Loading branch information
shiar committed Jul 7, 2019
1 parent 3b2cd8f commit 3e80075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftplugin/timesheet.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ nnoremap <Plug>(Timesheet) :call <SID>NewTimesheetEntry()<CR>
" Some mappings to insert a timestamped new line.
if !hasmapto('<Plug>(Timesheet)')
nmap <buffer> <LocalLeader>n <Plug>(Timesheet)GA<Space><Space>
nmap <buffer> <LocalLeader>s <Plug>(Timesheet)GA.<Esc>
nmap <buffer> <LocalLeader>c <Plug>(Timesheet)GA^<Esc>
nmap <buffer> <LocalLeader>s <Plug>(Timesheet)GA.<C-C>
nmap <buffer> <LocalLeader>c <Plug>(Timesheet)GA^<C-C>
endif

0 comments on commit 3e80075

Please sign in to comment.