day 300 — code 365

Sun 09 Oct 2016

VIM

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 https://usesthis.com/interviews/jessie.frazelle/ (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 https://scotch.io/tutorials/getting-started-with-vim-an-interactive-guide
  2. Did some basic stuff in terminal VIM
  3. Downloaded MacVim
  4. Decided to install some themes
  5. Installed pathogen https://github.com/tpope/vim-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 http://ethanschoonover.com/solarized and https://github.com/altercation/vim-colors-solarized

Terminal

Some of the things I did / learnt:

mkdir -p /.vim/autoload /.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
man mkdir
-p
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 https://tpo.pe/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’.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.