day 300 — code 365

Sun 09 Oct 2016


Managed to type stuff and save and exit in Vim for the first time!!! It took 300 days, but I did it.

I had stumbled onto this article (which was very interesting) and decided that it was time to get a (very) basic grasp of VIM.

This is basically what I did:

  1. Googled for Vim tutorials, and followed this tutorial
  2. Did some basic stuff in terminal VIM
  3. Downloaded MacVim
  4. Decided to install some themes
  5. Installed pathogen
  6. Learnt more about man and other command-line commands
  7. Managed to get Solarized Dark installed for Gui (MacVim) VIM
  8. Managed to get it installed for terminal VIM too (downloaded color palette for iTerm2) from and


Some of the things I did / learnt:

mkdir -p /.vim/autoload /.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim
man mkdir
Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. On the other hand, with this option specified, no error will be reported if a directory given as an operand already exists. Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permission for the owner.
&& \

This escapes the newline character

curl -LSso ~/.vim/autoload/pathogen.vim
-L, — location
(HTTP/HTTPS) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place.
-S, — show-error
When used with -s it makes curl show an error message if it fails.
-s, — silent
Silent or quiet mode. Don’t show progress meter or error messages. Makes Curl mute. It will still output the data you ask for, potentially even to the terminal/stdout unless you redirect it.
-o, — output <file>
Write output to <file> instead of stdout.

Now any plugins you wish to install can be extracted to a subdirectory under ~/.vim/bundle, and they will be added to the ‘runtimepath’.