Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
vimscriptを使用して現在のファイルの行数を取得しようとしていますが、方法がわかりません(そして、Googleは行番号の表示についてたくさんのがらくたを返しています)。
関数を使用できline()ます:
line()
:echo line('$')
使用することもできます
wc -l <filename>