作者Xphenomenon (啦 )
看板Editor
標題[vim ] 如何讓某些特定的 mapping 只用在特定的檔案格式下?
時間Thu Jun 17 11:34:42 2010
請問一下,如果我有一個 map
:imap <F5> test
我希望只在 .txt 的檔案格式下才產生作用的話,
在 .vimrc 裡面也怎麼設定呢?謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.192.93
→ Xphenomenon:thanks. it works like a dream. 06/18 09:38
推 bootleq:autocmd FileType txt map <buffer> ... 也行 06/18 23:45