ãã£ããkeymappingã§ãå®ç¾©ãããã¨ã§ feedkeys() ã®å¯ä½ç¨ãæå°ã«ãã
incsearch.vimã«éããã ã£ããã§ããï¼ã©ããã¦ãfeedkeys()ã使ããªãã¨å®è£ ã§ããªãããfeedkeys()ã使ããã ãã©ç¹å®ã®æ¡ä»¶ã®ã¨ãã«ã¤ã³ãµã¼ãã¢ã¼ããã³ãã³ãã©ã¤ã³ã¢ã¼ãæã«feedkeys()ã®å¦çãå®è¡ããã¦æå³ããªãæååãã¤ã³ãµã¼ãããã¡ããåé¡ã®è§£æ±ºæ³ããããã¾ããï¼
noremap
(_incsearch-nohlsearch)
noremap!(_incsearch-nohlsearch)
nnoremap(_incsearch-nohlsearch) : nohlsearch
xnoremap(_incsearch-nohlsearch) : nohlsearch gv call feedkeys("\
(_incsearch-nohlsearch)", "m") ã¨ãããµãã«ï¼ä¸æ¦
http://lingr.com/room/vim/archives/2015/06/03#message-21962265ã«ãããã³ã°ãã¦æå³ãã¦ãªãã¢ã¼ã㯠ã«ãããããã°å¤ãªæååã絶対ã«æ¿å ¥ãããªãããã«ãªã£ã¦ï¾ï½¯ï¾ï¾ã¼