ããã°ã©ãã³ã°ããã¦ããã¨ãæ··ãã£ã¦ããã¨å°ãå
¨è§ã¹ãã¼ã¹ã
å¯è¦åããããã«è¨å®ãæ¸ãã¦ãã人ãå¤ãããããªãã§ããããã
å®éã°ã°ãã¨ãå
¨è§ã¹ãã¼ã¹ã表示ããããã®è¨å®ãããããåºã¦ãã¾ããç§ã vimrc ã«è¨å®æ¸ãã¦ã¾ããã
ã§ãããâ¦ã¿ããªãã£ã¦ããªãããããã©ã°ã¤ã³ã§ãããªã?
ã£ã¦ãã¨ã§ãã©ã°ã¤ã³ã«ãã¾ããã
zenspace.vim - Show Ideographic Space (a.k.a. Zenkaku Space).
https://github.com/thinca/vim-zenspace
å ¨è§ã¹ãã¼ã¹ã表示ããããã ãã®ãã©ã°ã¤ã³ã§ãã(ç»åå ã®ã¿ãã®è¡¨ç¤ºã¯ 'listchars' ã«ãããã®)
ããã©ã«ãã§ã¯ 'list' ãªãã·ã§ã³ã®å¤ã«é£åãã¦ãå¯è¦/ä¸å¯è¦ãåãæ¿ãã¾ãããªã®ã§ã'list' ãªãã·ã§ã³ããªã³ã«ãã¦ãã ããã
set list
'list' ãªãã·ã§ã³ã¨ããããã常ã«è¡¨ç¤ºããããã£ã¦å ´å㯠g:zenspace#default_mode ãè¨å®ãã¦ãã ããã
let g:zenspace#default_mode = 'on'
zenspace.vim ã¯ã常ã«è¡¨ç¤ºãã "on"ã表示ããªã "off"ã'list' ãªãã·ã§ã³ã«è¿½å¾ãã "list" ã® 3 ã¤ã®ã¢ã¼ãããããã¦ã£ã³ãã¦æ¯ã«ç¬ç«ãã¦ãã¾ãã
ããã©ã«ãå¤ãå¤ããå ´åã¯ä¸è¨ã®éã g:zenspace#default_mode ãè¨å®ãã¦ãã ãããåå¥ã®ã¦ã£ã³ãã¦ã§å¤æ´ãããå ´å㯠:ZenSpaceOn :ZenSpaceOff :ZenSpaceList ã使ç¨ãã¦ãã ããã
Q & A
Q. è²ãå¤ããããã ãã©?
A. 赤ã«å¤ããä¾ãè¼ãã¦ããã¾ãã
augroup vimrc-highlight autocmd! autocmd ColorScheme * highlight ZenSpace ctermbg=Red guibg=Red augroup END
Q. æ®éã®ã¹ãã¼ã¹ã¨ãã¯è¡¨ç¤ºã§ããªãã®?
A. å
¨è§ã¹ãã¼ã¹å°ç¨ã§ããé常ã®ã¹ãã¼ã¹ãã¿ããè¡æ«ã¹ãã¼ã¹ã¯ãVim æ¨æºã® 'listchars' ãªãã·ã§ã³ãè¨å®ããã¨ããæãã«è¡¨ç¤ºã§ããã®ã§ããã£ã¡ã使ããã¨ããªã¹ã¹ã¡ãã¾ãã
Q. Conceal ã¨ã使ã£ã¦â¡ã§è¡¨ç¤ºã§ããªã?
A. æ¤è¨ãããã§ãããConceal ã®å¶éãããããã¦è¦éãã¾ããã詳細ã¯こちらãèªãã§ãã ããã
Enjoy!