Skip to content

Commit 41d7cf0

Browse files
committed
Fix setting but not saving, deleting or loading mappings for <NL>.
1 parent 042da55 commit 41d7cf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/LineUp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,16 @@ function! s:setMapping() "{{{
114114
endfunction "}}}
115115

116116
function! s:delMapping() "{{{
117+
iunmap <CR>
118+
iunmap <NL>
117119
endfunction "}}}
118120

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

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

0 commit comments

Comments
 (0)