Skip to content

Commit

Permalink
Add mapping for PareditToggle when paredit used without Slimv
Browse files Browse the repository at this point in the history
  • Loading branch information
kovisoft committed Aug 20, 2019
1 parent a80ee7c commit 7b3b0b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/paredit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ function! PareditInitBuffer()
call RepeatableNNoRemap(g:paredit_leader . 'S', ':<C-U>call PareditSplice()')
endif

if !exists( 'g:slimv_loaded' )
execute 'nnoremap <buffer> <silent> ' . g:paredit_leader.'( :<C-U>call PareditToggle()<CR>'
endif

if g:paredit_electric_return && mapcheck( "<CR>", "i" ) == ""
" Do not override any possible mapping for <Enter>
inoremap <buffer> <expr> <CR> PareditEnter()
Expand Down

0 comments on commit 7b3b0b5

Please sign in to comment.