LoginSignup
0
0

More than 5 years have passed since last update.

はじめてVimを使った。

Last updated at Posted at 2019-01-18

Vimに書き込む

Vimに書き込むにはiキーを押す。

Vimコマンドモード

Vimでコマンド(:q:wq)を実行するにはEscキー

Vimでペーストできない

VimエディタにペーストするときはCtrl+Insert

Vimで編集したファイルを保存できない

一度:q!で保存せずに終了。
sudo vi ファイル名で再度開く。
記述が終わったら:wq

エラーが出たら

direnv: error .envrc is blocked. Run `direnv allow` to approve its content.

メッセージ通りdirenv allow実行すると保存される。

gitgnoreにファイルを追加する

今回編集したファイルはgitに公開できないので以下を実行
echo ./.envrc >> .gitignore

0
0
1

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