一些Vim的功能上的範圍內工作:Vim的多個鏈的命令,第一個使用範圍
:'<,'>TOhtml
什麼是第一命令取範圍的語法,而後者的命令管的結果?
在對wiki的評論中,它提出了一個插件來允許範圍在所有命令上運行;但在這裏我只需要第一個參數來處理範圍。
# These are the commands I am attempting to chain
:'<,'>TOhtml
:w! ~/mylink
:q!
# The last two can chain or be one command
:w! ~/mylink | q!
:wq! ~/mylink
# But these fail
:'<,'>TOhtml | wq! ~/mylink
:execute "'<,'>TOhtml" | "wq! ~/mylink"
我很困惑,「:help:|」具體說:「寫!」不能跟着另一個Vim命令,但我跟着它:「q!」 – xxjjnn
':write!'與':write!'不一樣。見':h:_!'。 –
讓我興奮的是我可以寫:'<,'> TOhtml!w! 〜/ mylink,oh well =/ – xxjjnn