/Delete/,/endif/p
?
invalid address
/Delere/,/endif/p
?
no match
Does it mean it understands latin only?
/Dele/,/endif/p
?
invalid address
/Del/,/endif/p
?
invalid address
No, what am I doing wrong? I'm typing out all letters without any mistakes.
I have macOS.
The following is a sample from the file I'm editing that exhibit the same behaviour when editing it using the above ed
command:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Editing mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Remap VIM 0 to first non-blank character
map 0 ^
" Move a line of text using ALT+[jk] or Command+[jk] on mac
nmap <M-j> mz:m+<cr>`z
nmap <M-k> mz:m-2<cr>`z
vmap <M-j> :m'>+<cr>`<my`>mzgv`yo`z
vmap <M-k> :m'<-2<cr>`>my`<mzgv`yo`z
if has("mac") || has("macunix")
nmap <D-j> <M-j>
nmap <D-k> <M-k>
vmap <D-j> <M-j>
vmap <D-k> <M-k>
endif
" Delete trailing white space on save, useful for some filetypes ;)
if has("autocmd")
autocmd BufWritePre *.txt,*.js,*.py,*.wiki,*.sh,*.coffee :call CleanExtraSpaces()
endif
Delete
andendif
(including the containing lines). Because It did not work, I was just experimenting with printing them out. – Adam Jun 02 '18 at 10:20