From bdbd4b5c5cb00da8bf298539772084b8559d3a72 Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Fri, 7 Dec 2018 22:00:01 +0800 Subject: [PATCH] hugo daily push 2018-12-07 22:00:01 --- .../post/create-portable-vim-environment.md | 52 +++ public/404.html | 10 +- public/author/eric-chang/index.html | 181 ++++---- public/author/eric-chang/index.xml | 19 +- public/author/eric-chang/page/2/index.html | 102 ++++- public/author/index.html | 12 +- public/author/index.xml | 2 +- public/categories/index.html | 12 +- public/categories/index.xml | 2 +- public/categories/ps/index.html | 10 +- public/categories/筆記/index.html | 89 +++- public/categories/筆記/index.xml | 19 +- public/categories/群暉/index.html | 10 +- public/en/sitemap.xml | 19 +- public/gallery/index.html | 10 +- public/gallery/sammy93/index.html | 10 +- public/images | 1 + public/index.html | 185 ++++---- public/index.json | 7 + public/index.xml | 19 +- public/page/2/index.html | 104 ++++- .../index.html | 10 +- .../post/ansible-selectattr-filter/index.html | 10 +- public/post/ansible-selectattr/index.html | 10 +- public/post/bookstack-docker/index.html | 10 +- .../index.html | 10 +- public/post/copy_role_in_pgsql/index.html | 10 +- .../index.html | 420 ++++++++++++++++++ .../enable-synology-public-ssh/index.html | 10 +- public/post/index.html | 183 ++++---- public/post/index.xml | 19 +- .../post/nice-du-report-tool-durep/index.html | 10 +- public/post/page/2/index.html | 397 +++++++++++++++++ .../synology-ds415-repair-cost/index.html | 10 +- .../weird-client-server-connection/index.html | 10 +- public/sitemap.xml | 2 +- public/tags/10g/index.html | 10 +- public/tags/ansible/index.html | 10 +- public/tags/bookstack/index.html | 10 +- public/tags/docker/index.html | 10 +- public/tags/du/index.html | 10 +- public/tags/firefox/index.html | 10 +- public/tags/index.html | 12 +- public/tags/index.xml | 9 + public/tags/linux/index.html | 10 +- public/tags/mellanox/index.html | 10 +- public/tags/metabase/index.html | 10 +- public/tags/nas/index.html | 10 +- public/tags/ps/index.html | 10 +- public/tags/psql/index.html | 10 +- public/tags/ssh/index.html | 10 +- public/tags/synology/index.html | 10 +- public/tags/ubuntu/index.html | 10 +- public/tags/vim/index.html | 382 ++++++++++++++++ public/tags/vim/index.xml | 31 ++ public/tags/vim/page/1/index.html | 1 + public/tags/短今/index.html | 10 +- public/tags/筆記/index.html | 10 +- public/tags/群暉/index.html | 10 +- 59 files changed, 2110 insertions(+), 501 deletions(-) create mode 100644 content/post/create-portable-vim-environment.md create mode 120000 public/images create mode 100644 public/post/create-portable-vim-environment/index.html create mode 100644 public/post/page/2/index.html create mode 100644 public/tags/vim/index.html create mode 100644 public/tags/vim/index.xml create mode 100644 public/tags/vim/page/1/index.html diff --git a/content/post/create-portable-vim-environment.md b/content/post/create-portable-vim-environment.md new file mode 100644 index 00000000..c1fd296c --- /dev/null +++ b/content/post/create-portable-vim-environment.md @@ -0,0 +1,52 @@ +--- +title: "[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment" +date: 2018-12-07T15:19:47+08:00 + +noSummary: false +featuredImage: "https://h.cowbay.org/images/post-default-8.jpg" +categories: ['筆記'] +tags: ['vim'] +author: "Eric Chang" +--- + +因為工作的關係,現在很多時間都花在VIM的操作上 + +所以之前花了滿多時間,調整出一個適合自己的VIM環境 + +原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面 + +然後每到一台新的機器,就要去clone 下來 + + + +BUT (對,就是這個BUT) + +手邊的機器有滿多不能直接連接internet的(酷吧,都什麼年代了,還鎖internet) + +所以常會碰到要做git clone 不能動,還要額外去指定 proxy server 這些設定,挺麻煩的 + +今天剛好看到這個 + +https://junegunn.kr/2014/10/creating-portable-vim-environment + +裡面介紹的小程式,可以把現在使用的vim 環境,打包成一個持行檔 + +那只要把這個執行檔丟到要控制的機器 + +那麼每一台機器都會有相同的vim 環境 + +比起之前要先git clone 然後 plugininstall 的作法要更方便許多,而且操作很簡單 + +只要先抓下來那個檔案並且執行 + +```shell +bash <(curl -L https://raw.githubusercontent.com/junegunn/myvim/master/myvim) +``` +就會在執行的目錄底下產生一個 vim.$(whoami) 的執行檔 + +這個就是可以帶著走的 vim環境 + +然後就把這個檔案丟到看哪一台server上,然後在其他機器上面去下載回來 + +就可以有完全一樣的 vim 環境了,超級方便的! + diff --git a/public/404.html b/public/404.html index 0ea4d50d..d0294ff8 100644 --- a/public/404.html +++ b/public/404.html @@ -115,6 +115,10 @@ Latest posts @@ -153,7 +153,7 @@