Hello,
I have found that meta key mappings do not work properly when used in a
recording/macro or the :normal command. This happens in both terminal and GUI
Vim so I don't think it's a key code issue.
Steps to reproduce:
1. Run vim, e.g. vim -u NONE -i NONE --noplugin -c "set nocp hid"
2. Run ex command :nnoremap <M-d> d
3. Insert text "word word" in the buffer
4. Place the cursor at row 1 column 1 (the first w)
5. Run ex command :execute "normal fw\<M-d>w"
What should happen: the second "word" should be deleted leaving "word " with
the cursor on the space
What does happen: the word is not deleted, there is a beep/bell, and the cursor
is on the first character of the second word
Note that this command does as expected: :execute "normal fwdw"
Typing "fw<M-d>w" in normal mode also behaves as expected.
This ex command does NOT work (ä is the character corresponding to <M-d> in
Latin): :execute "normal fwäw"
This issue has been present in every version of Vim I've tried, but the
attached bug report is for MacVim 7.4.183 running in terminal mode.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
uname -a
Darwin jake-mbp 13.1.0 Darwin Kernel Version 13.1.0: Wed Apr 2 23:52:02 PDT
2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64 i386 MacBookPro8,2 Darwin
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 29 2014 11:20:47)
MacOS X (unix) version
Included patches: 1-183
Compiled by Homebrew
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +cmdline_info +emacs_tags -gettext +lua
+mouse_urxvt +profile +statusline +transparency -X11
+arabic +comments +eval -hangul_input +menu
+mouse_xterm +python -sun_workshop +user_commands
-xfontset
+autocmd +conceal +ex_extra +iconv +mksession
+multi_byte -python3 +syntax +vertsplit +xim
+balloon_eval +cryptv +extra_search +insert_expand
+modify_fname +multi_lang +quickfix +tag_binary
+virtualedit -xsmp
+browse +cscope +farsi +jumplist +mouse
-mzscheme +reltime +tag_old_static +visual
-xterm_clipboard
++builtin_terms +cursorbind +file_in_path +keymap +mouseshape
+netbeans_intg +rightleft -tag_any_white +visualextra
-xterm_save
+byte_offset +cursorshape +find_in_path +langmap +mouse_dec
+odbeditor +ruby +tcl +viminfo -xpm
+cindent +dialog_con_gui +float +libcall -mouse_gpm
+path_extra +scrollbind +terminfo +vreplace
+clientserver +diff +folding +linebreak
-mouse_jsbterm +perl +signs +termresponse +wildignore
+clipboard +digraphs -footer +lispindent
+mouse_netterm +persistent_undo +smartindent +textobjects +wildmenu
+cmdline_compl +dnd +fork() +listcmds +mouse_sgr
+postscript -sniff +title +windows
+cmdline_hist -ebcdic +fullscreen +localmap
-mouse_sysmouse +printer +startuptime +toolbar
+writebackup
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall
-Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -I/System/Library/Frameworks/Tcl.framework/Headers
-D_REENTRANT=1 -D_THREAD_SAFE=1 -D_DARWIN_C_SOURCE=1
Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib
-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
-F/System/Library/Frameworks -L/usr/local/lib -o Vim -framework Cocoa
-framework Carbon -lm -lncurses -liconv -framework Cocoa -pagezero_size
10000 -image_base 100000000 -L/usr/local/lib -lluajit-5.1 -fstack-protector
-L/usr/local/lib -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
-lperl -framework Python -F/System/Library/Frameworks -framework Tcl
-framework CoreFoundation -framework Ruby
--- Directories and Files ---
$VIM = "/Applications/MacVim.app/Contents/Resources/vim"
directory "/Applications/MacVim.app/Contents/Resources/vim" exists
$VIMRUNTIME = "/Applications/MacVim.app/Contents/Resources/vim/runtime"
directory "/Applications/MacVim.app/Contents/Resources/vim/runtime" exists
"/Applications/MacVim.app/Contents/Resources/vim/runtime/doc/help.txt" is
readable
"/Applications/MacVim.app/Contents/Resources/vim/runtime/doc/tags" is readable
"/Applications/MacVim.app/Contents/Resources/vim/runtime/menu.vim" is readable
"/Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim" is
readable
"/Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/synload.vim" is
readable
--- Scripts sourced ---
1: /Applications/MacVim.app/Contents/Resources/vim/runtime/bugreport.vim
--- Options ---
aleph=224 cmdwinheight=7 equalalways guitabtooltip=
nolisp previewheight=12 noshiftround taglength=0
novisualbell
antialias colorcolumn= equalprg= helpheight=20
nolist nopreviewwindow shiftwidth=8 tagrelative
warn
noarabic columns=185 noerrorbells helplang=en
listchars=eol:$ printdevice= noshortname tags=./tags,tags
noweirdinvert
arabicshape nocompatible esckeys hidden
noloadplugins printencoding= showbreak= tagstack
whichwrap=b,s
noallowrevins concealcursor= eventignore= history=20
nomacmeta printfont=courier noshowcmd notermbidi
wildchar=<Tab>
noaltkeymap conceallevel=0 noexpandtab nohkmap
magic printmbcharset= noshowfulltag termencoding=
wildcharm=0
ambiwidth=single completefunc= noexrc nohkmapp
makeef= printmbfont= noshowmatch noterse
wildignore=
noautochdir noconfirm fileencoding= nohlsearch
makeprg=make printoptions= showmode textauto
nowildignorecase
noautoindent nocopyindent fileformat=unix noicon
matchtime=5 prompt showtabline=1 notextmode
nowildmenu
noautoread cpoptions=aABceFs fileignorecase iconstring=
maxcombine=2 pumheight=0 sidescroll=0 textwidth=0
wildmode=full
noautowrite cryptmethod=zip filetype= noignorecase
maxfuncdepth=100 quoteescape=\ sidescrolloff=0 thesaurus=
wildoptions=
noautowriteall cscopepathcomp=0 nofkmap noimcmdline
maxmapdepth=1000 noreadonly nosmartcase notildeop
window=50
background=light cscopeprg=cscope foldclose= imdisable
maxmem=376060 redrawtime=2000 nosmartindent timeout
winheight=1
backspace= cscopequickfix= foldcolumn=0 iminsert=2
maxmemtot=376060 regexpengine=0 nosmarttab timeoutlen=1000
nowinfixheight
nobackup nocscoperelative foldenable imsearch=2
menuitems=25 norelativenumber softtabstop=0 notitle
nowinfixwidth
backupcopy=auto nocscopetag foldexpr=0 includeexpr=
modeline remap nospell titlelen=85
winminheight=1
backupext=~ cscopetagorder=0 foldignore=# noincsearch
modelines=5 report=2 spellfile= titlestring=
winminwidth=1
balloondelay=600 nocscopeverbose foldlevel=0 indentexpr=
modifiable norevins spelllang=en transparency=0
winwidth=20
noballooneval nocursorbind foldlevelstart=-1 noinfercase
modified norightleft spellsuggest=best nottimeout
wrap
balloonexpr= nocursorcolumn foldmethod=manual noinsertmode
nomore noruler nosplitbelow ttimeoutlen=-1
wrapmargin=0
nobinary nocursorline foldminlines=1 isprint=@,161-255
mouse= rulerformat= nosplitright ttybuiltin
wrapscan
nobomb debug= foldnestmax=20 joinspaces
nomousefocus scroll=25 startofline ttyfast
write
browsedir=last nodelcombine formatexpr= key=
mousehide noscrollbind statusline= ttymouse=xterm2
nowriteany
bufhidden= dictionary= formatoptions=tcq keymap=
mousetime=500 scrolljump=1 suffixesadd= ttyscroll=999
writebackup
buflisted nodiff formatprg= keymodel=
nonumber scrolloff=0 swapfile undodir=.
writedelay=0
buftype= diffexpr= fsync keywordprg=man -s
numberwidth=4 nosecure swapsync=fsync noundofile
cdpath=,, diffopt=filler nofullscreen langmap=
omnifunc= selectmode= switchbuf= undolevels=1000
cedit=^F nodigraph nogdefault langmenu=
operatorfunc= shell=/bin/zsh synmaxcol=3000 undoreload=10000
charconvert= display= guifont= laststatus=1
nopaste shellcmdflag=-c syntax= updatecount=200
nocindent eadirection=both guifontwide= nolazyredraw
pastetoggle= shellquote= tabline= updatetime=4000
cinoptions= noedcompatible guioptions=egmrL nolinebreak
patchexpr= shelltemp tabpagemax=10 verbose=0
clipboard= encoding=utf-8 guipty lines=51
patchmode= shellxquote= tabstop=8 verbosefile=
cmdheight=1 endofline guitablabel= linespace=0
nopreserveindent shellxescape= tagbsearch virtualedit=
backupdir=.,~/tmp,~/
backupskip=/tmp/*,/var/folders/c4/jycv2v3x2_17s4hdp66282mc0000gn/T/*
breakat= ^I!@*-+;:,./?
casemap=internal,keepascii
cinkeys=0{,0},0),:,0#,!^F,o,O,e
cinwords=if,else,while,do,for,switch
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
commentstring=/*%s*/
complete=.,w,b,u,t,i
completeopt=menu,preview
define=^\s*#\s*define
directory=.,~/tmp,/var/tmp,/tmp
errorfile=errors.err
errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared
identifier is reported only once,%-G%f:%l: for each function it appears
in.),%-GIn file included from %f:%l:%c:,%-GIn file included from
%f:%l:%c\,,%-GIn file included from %f:%l:%c,%-GIn file included from
%f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[
]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ]
%m,%D%*\a[%*\d]: Entering directory %*[`']%f',%X%*\a[%*\d]: Leaving directory
%*[`']%f',%D%*\a: Entering directory %*[`']%f',%X%*\a: Leaving directory
%*[`']%f',%DMaking %*\a in %f,%f|%l| %m
fileencodings=ucs-bom,utf-8,default,latin1
fileformats=unix,dos
fillchars=vert:|,fold:-
foldmarker={{{,}}}
foldopen=block,hor,mark,percent,quickfix,search,tag,undo
foldtext=foldtext()
formatlistpat=^\s*\d\+[\]:.)}\t ]\s*
fuoptions=maxvert,maxhorz
grepformat=%f:%l:%m,%f:%l%m,%f %l%m
grepprg=grep -n $* /dev/null
guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175
helpfile=/Applications/MacVim.app/Contents/Resources/vim/runtime/doc/help.txt
highlight=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,N:CursorLineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn
include=^\s*#\s*include
indentkeys=0{,0},:,0#,!^F,o,O,e
isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
isident=@,48-57,_,192-255
iskeyword=@,48-57,_,192-255
lispwords=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object
matchpairs=(:),{:},[:]
maxmempattern=1000
mkspellmem=460000,2000,500
mousemodel=popup_setpos
mouseshape=i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow
nrformats=octal,hex
paragraphs=IPLPPPQPP TPHPLIPpLpItpplpipbp
path=.,/usr/include,,
printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . '
' . v:fname_in) . delete(v:fname_in) + v:shell_error
printheader=%<%f%h%m%=Page %N
rightleftcmd=search
runtimepath=~/.vim,/Applications/MacVim.app/Contents/Resources/vim/vimfiles,/Applications/MacVim.app/Contents/Resources/vim/runtime,/Applications/MacVim.app/Contents/Resources/vim/vimfiles/after,~/.vim/after
scrollopt=ver,jump
sections=SHNHH HUnhsh
selection=inclusive
sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize
shellpipe=2>&1| tee
shellredir=>%s 2>&1
shortmess=filnxtToO
spellcapcheck=[.?!]\_[\])'"^I ]\+
suffixes=.bak,~,.o,.h,.info,.swp,.obj
term=xterm-256color
titleold=Thanks for flying Vim
toolbar=icons,tooltips
toolbariconsize=small
ttytype=xterm-256color
viewdir=~/.vim/view
viewoptions=folds,options,cursor
viminfo='100,<50,s10,h
--- Terminal codes ---
t_AL=^[[%p1%dL t_Co=256 t_DL=^[[%p1%dM t_ks=^[[?1h^[=
t_ms=y t_Sb= t_te=^[[?1049l t_SI=
t_al=^[[L t_CS= t_dl=^[[M t_le=^H
t_nd=^[[C t_Sf= t_ti=^[[?1049h t_EI=
t_bc= t_CV= t_fs=^G t_mb=^[[5m
t_op=^[[39;49m t_se=^[[27m t_ue=^[[m t_xs=
t_cd=^[[J t_ut=y t_IE=^G t_md=^[[1m
t_RI=^[[%p1%dC t_so=^[[7m t_us=^[[4m t_ZH=^[[7m
t_ce=^[[K t_da= t_IS=^[]1; t_me=^[[m
t_RV=^[[>c t_sr=^[M t_vi=^[[?25l t_ZR=^[[m
t_cl=^[[H^[[2J t_db= t_ke=^[[?1l^[> t_mr=^[[7m
t_u7=^[[6n t_ts=^[]2; t_vs=^[[?12;25h
t_AB=^[[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m
t_AF=^[[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m
t_cm=^[[%i%p1%d;%p2%dH
t_cs=^[[%i%p1%d;%p2%dr
t_vb=^[[?5h$<100/>^[[?5l
t_ve=^[[?12l^[[?25h
t_WP=^[[3;%p1%d;%p2%dt
t_WS=^[[8;%p1%d;%p2%dt
--- Terminal keys ---
t_#2 <S-Home> ^[[1;2H t_K1 <kHome> ^[[1;*~ t_k2 <F2> ^[[12;*~
t_kB <S-Tab> ^[[Z t_kr <Right> ^[O*C <xHome> ^[O*H
t_#4 <S-Left> ^[[1;2D t_K4 <kEnd> ^[[4;*~ t_k3 <F3> ^[[13;*~
t_kD <Del> ^[[3~ t_ku <Up> ^[O*A <zHome> ^[[7;*~
t_%1 <Help> ^[[28;*~ t_K6 <kPlus> ^[O*k t_k4 <F4> ^[[14;*~
t_kI <Insert> ^[[2;*~ <Mouse> ^[[M <xUp> ^[[1;*A
t_%i <S-Right> ^[[1;2C t_K7 <kMinus> ^[O*m t_k5 <F5> ^[[15;*~
t_kN <PageDown> ^[[6;*~ <xF1> ^[O*P <xDown> ^[[1;*B
t_&8 <Undo> ^[[26;*~ t_K8 <kDivide> ^[O*o t_k6 <F6> ^[[17;*~
t_kP <PageUp> ^[[5;*~ <xF2> ^[O*Q <xLeft> ^[[1;*D
t_*7 <S-End> ^[[1;2F t_K9 <kMultiply> ^[O*j t_k7 <F7> ^[[18;*~
t_kb <BS> ^? <xF3> ^[O*R <xRight> ^[[1;*C
t_@7 <End> ^[[1;*F t_KA <kEnter> ^[O*M t_k8 <F8> ^[[19;*~
t_kd <Down> ^[O*B <xF4> ^[O*S <kDel> ^[[3;*~
t_F1 <F11> ^[[23;*~ t_KB <kPoint> ^[O*n t_k9 <F9> ^[[20;*~
t_kh <Home> ^[[1;*H <xEnd> ^[O*F
t_F2 <F12> ^[[24;*~ t_k1 <F1> ^[[11;*~ t_k; <F10> ^[[21;*~
t_kl <Left> ^[O*D <zEnd> ^[[8;*~
--- Auto-Commands ---
--- Normal/Visual mode mappings ---
v <BS> "-d
n ä * d
--- Insert/Command-line mode mappings ---
No mapping found
--- Abbreviations ---
No abbreviation found
--- Highlighting ---
SpecialKey xxx term=bold ctermfg=4 guifg=Blue
NonText xxx term=bold ctermfg=12 gui=bold guifg=Blue
Directory xxx term=bold ctermfg=4 guifg=Blue
ErrorMsg xxx term=standout ctermfg=15 ctermbg=1 guifg=White guibg=Red
IncSearch xxx term=reverse cterm=reverse gui=reverse
Search xxx term=reverse ctermbg=11 guibg=Yellow
MoreMsg xxx term=bold ctermfg=2 gui=bold guifg=SeaGreen
ModeMsg xxx term=bold cterm=bold gui=bold
LineNr xxx term=underline ctermfg=130 guifg=Brown
CursorLineNr xxx term=bold ctermfg=130 gui=bold guifg=Brown
Question xxx term=standout ctermfg=2 gui=bold guifg=SeaGreen
StatusLine xxx term=bold,reverse cterm=bold,reverse gui=bold,reverse
StatusLineNC xxx term=reverse cterm=reverse gui=reverse
VertSplit xxx term=reverse cterm=reverse gui=reverse
Title xxx term=bold ctermfg=5 gui=bold guifg=Magenta
Visual xxx term=reverse ctermbg=7 guibg=LightGrey
VisualNOS xxx term=bold,underline cterm=bold,underline gui=bold,underline
WarningMsg xxx term=standout ctermfg=1 guifg=Red
WildMenu xxx term=standout ctermfg=0 ctermbg=11 guifg=Black guibg=Yellow
Folded xxx term=standout ctermfg=4 ctermbg=248 guifg=DarkBlue
guibg=LightGrey
FoldColumn xxx term=standout ctermfg=4 ctermbg=248 guifg=DarkBlue guibg=Grey
DiffAdd xxx term=bold ctermbg=81 guibg=LightBlue
DiffChange xxx term=bold ctermbg=225 guibg=LightMagenta
DiffDelete xxx term=bold ctermfg=12 ctermbg=159 gui=bold guifg=Blue
guibg=LightCyan
DiffText xxx term=reverse cterm=bold ctermbg=9 gui=bold guibg=Red
SignColumn xxx term=standout ctermfg=4 ctermbg=248 guifg=DarkBlue guibg=Grey
Conceal xxx ctermfg=7 ctermbg=242 guifg=LightGrey guibg=DarkGrey
SpellBad xxx term=reverse ctermbg=224 gui=undercurl guisp=Red
SpellCap xxx term=reverse ctermbg=81 gui=undercurl guisp=Blue
SpellRare xxx term=reverse ctermbg=225 gui=undercurl guisp=Magenta
SpellLocal xxx term=underline ctermbg=14 gui=undercurl guisp=DarkCyan
Pmenu xxx ctermfg=0 ctermbg=225 guibg=LightMagenta
PmenuSel xxx ctermfg=0 ctermbg=7 guibg=Grey
PmenuSbar xxx ctermbg=248 guibg=Grey
PmenuThumb xxx ctermbg=0 guibg=Black
TabLine xxx term=underline cterm=underline ctermfg=0 ctermbg=7
gui=underline guibg=LightGrey
TabLineSel xxx term=bold cterm=bold gui=bold
TabLineFill xxx term=reverse cterm=reverse gui=reverse
CursorColumn xxx term=reverse ctermbg=7 guibg=Grey90
CursorLine xxx term=underline cterm=underline guibg=Grey90
ColorColumn xxx term=reverse ctermbg=224 guibg=LightRed
Cursor xxx guifg=bg guibg=fg
lCursor xxx guifg=bg guibg=fg
MatchParen xxx term=reverse ctermbg=14 guibg=Cyan
Normal xxx cleared
--- Variables ---
more_save #1
b:changedtick #11
v:version #704
v:beval_winnr #0
v:lnum #0
v:hlsearch #1
v:scrollstart
/Applications/MacVim.app/Contents/Resources/vim/runtime/bugreport.vim line 21
v:oldfiles []
v:dying #0
v:windowid #0
v:termresponse ^[[>0;95;0c
v:lang en_US.UTF-8
v:count #0
v:progname Vim
v:cmdbang #0
v:foldlevel #0
v:ctype en_US.UTF-8
v:prevcount #0
v:register "
v:mouse_win #0
v:count1 #1
v:foldstart #0
v:foldend #0
v:profiling #0
v:beval_col #0
v:beval_lnum #0
v:mouse_lnum #0
v:insertmode i
v:beval_bufnr #0
v:shell_error #0
v:lc_time en_US.UTF-8
v:searchforward #1
v:mouse_col #0
v:statusmsg No abbreviation found