Mastodon Mastodon Mastodon Systeemkabouter blog – Trying blogging using vim

Trying blogging using vim

Posted on di 11 oktober 2022 in tools

So I'm up and running at my new project. This is my second round at this client and some things remained the same and others changed a bit.

One of the things that changed is that apparently no-one is using Intellij to edit code anymore. I even had to install my own copy of the editor. And the experience was OK but not to great. You must understand that to run Intellij at this particular client, I run a Citrix session to a windows desktop, where I run a Mobaxterm ssh session to a linux host. On this host I run Intellij with X11 forwarding to the windows session in citrix. So it works, but performance isn't all that great.

So apparently everybody settled or happely switched (back) to using vi/vim. Ok, I am not a big fan of the cryptic commands and the magic spells you need to be as productive as in other editors. But it is small and extremely efficient. Way back then I was the guy installing emacs on every box I touched. But really, I wouldn't be able to point to any one I know that actually uses emacs in this day and age.

So, I'm going to try to survive using vi/vim the coming weeks. Lets see how that works out :-)

For now I've set up the following vimrc to get going:

set nocompatible
set wrap
set encoding=utf-8
"set number
set laststatus=2
set shiftwidth=2

call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'pearofducks/ansible-vim'
Plug 'vim-airline/vim-airline'
call plug#end()

map <F5> :NERDTreeToggle<CR>