I normally use Arch’s package management to install new languages and environments. The package manager is mostly up-to-date and easy to use. If you run a system-wide update, it also installs new versions of a package. The Problem Some repositories on my machine use older versions of Node or Elixir. When I run those applications, I might get errors. Sometimes Arch packages don’t use the latest version. For example, the Elixir installation uses version 1.
I’m test-driving a different browser right now: Brave. Brave offers a fast browsing experience while being compatible with Chrome extensions. The cost of switching a browser isn’t that high. So, I installed the browser, but my default browser is still Chromium. How to change that? Configure i3 i3 is my window manager. The configuration file lives in ~/i3/config. For example, Manjaro i3 binds the F2 key to opening the browser:
How to use the NeoVim text editor as your Ocaml IDE I’ve always been interested in learning an ML language. But Haskell, the poster child of functional programming, has a high learning curve. OCaml and ReasonML (an alternative syntax for OCaml) are much more beginner-friendly. I started a free MOOC on functional programming with OCaml a few days ago. Thus, it’s the perfect time to set up my editor for OCaml development.
As a Vim afficiando, you might use VimWiki as a solution for storing and organizing notes, to-do lists and journal entries. But VimWiki comes with some problems. It offers tons of features, but also heavily modifies your Vim installation. VimWiki overwrites common behavior, duplicates some functionalities, and can be hard to integrate with other plugins. Here are some alternatives to Vimwiki: Built-In Vim Joe Reynolds wrote an excellent article about managing notes and to-dos without plugins.
Modern editors like VS Code or Sublime Text can use multiple cursors to edit code on more than one line. Vim doesn’t offer this functionality out of the box. But you may not need it. Today I learned how to run a macro to edit several lines in Vim. The method is useful when you have a similar structure on several lines, for example: <li class="link">About</li> <li class="link">Blog</li> <li class="link">Works</li> Add the script visual-at.
Yesterday I trimmed down my vimrc - the configuration file for Vim. I admit that I can’t live without some plugins. So a “minimal Vim” is probably not possible for me. But if you’re interested, here is a good start: " Suggested Minimal Settings For Programming " Enabling filetype support provides filetype-specific indenting, " syntax highlighting, omni-completion and other useful settings. filetype plugin indent on syntax on "
matchit.vimis built-in so let’s enable it!