Skip to content

Commit

Permalink
Fix setting but not saving, deleting or loading mappings for <NL>.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Who committed Apr 20, 2017
1 parent 042da55 commit 41d7cf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/LineUp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,16 @@ function! s:setMapping() "{{{
endfunction "}}}

function! s:delMapping() "{{{
iunmap <CR>
iunmap <NL>
endfunction "}}}

function! s:loadMapping() "{{{
" This requires the 'SaveMapping' plugin
" (https://github.com/Ace-Who/vim-MappingMem).
if exists(':LoadMapping') == 2
silent LoadMapping '<CR>', 'i', 'global'
silent LoadMapping '<NL>', 'i', 'global'
endif
endfunction "}}}

Expand All @@ -129,6 +132,7 @@ function! s:saveMapping() "{{{
" (https://github.com/Ace-Who/vim-MappingMem).
if exists(':SaveMapping') == 2
silent SaveMapping '<CR>', 'i', 'global'
silent SaveMapping '<NL>', 'i', 'global'
endif
endfunction "}}}

Expand Down

0 comments on commit 41d7cf0

Please sign in to comment.