LoginSignup
0
0

Ubuntuでvimを使おう!

Posted at

Ubuntuでvimをインストールして使うところまでを説明していきます()

環境

バージョン - Ubuntu24.04LTS
カーネル - 6.8.0-31-generic

vimのインストール・使い方

まずはvimの方から解説していきます
Ubuntuには標準でインストールされていないので、
ターミナルで以下のコマンドを実行してください

sudo apt-get install vim -y > /dev/null 2>&1 ; clear

少し待ったら、入力待ち($)になるので、
試しに、vi ~/testと入力してみましょう
すると、ホームディレクトリにtestというテキストファイルができます

ここでスクリプトを書いたり、メモを書いたりすることができます

例(できること)

1. シェルスクリプト(Hello World!と出力する)

#!/bin/sh

echo "Hello World!"

2. メモスクリプト(試してみてください)

#!/bin/bash

TERM=vt100 whiptail --title "たかしへ" --infobox "ご飯は電子レンジの中にあります。" 7 45
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0