Index ¦ Archives


Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

Despite what the above comic suggests, Vim can be configured to work in a very simple (Notepad-like) way, called evim or Easy Vim.


apt install vim


curl -fLo ~/.vim/autoload/plug.vim --create-dirs \


vim ~/.vimrc

" Plugins
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
Plug 'tpope/vim-fugitive'
call plug#end()

" Configs
syntax on
set encoding=utf8
set textwidth=79
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set expandtab
set smarttab
set laststatus=2

" Vim-ariline
let g:airline_theme='minimalist'
let g:airline#extensions#tabline#enabled = 1

" Nerdtree
map <C-n> :NERDTreeToggle<CR>
map <C-m> :TagbarToggle<CR>

Vim Script

echo "Hello, world!"

let i = 1
while i < 5
  echo "count is" i
  let i += 1
unlet i


© 2000-2018 by Daniel Pimentel (d4n1). Under MIT.