0%

vim-settings-plugins

This blog records my vim settings and plugins. The system I am using is Ubuntu 18.04.

Install vim-8

The default vim of Ubuntu 18.04 is vim-7 (if you install it with sudo apt install vim).
First thing to do is upgrade it to vim-8, using the following commands:

1
2
3
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update
sudo apt-get install vim

Add plugins

Install Vundle

Before installing any plugin, make sure to install Vundle.
Note Launch vim and run :PluginInstall when installing new plugin.

List of plugins

Here is the list of the plugins I am using:

  • vim-LanguageTool: This plugin integrates the LanguageTool grammar checker into Vim.

Settings

A good vimrc and How I boosted my Vim are good start of setting vimrc.
Items used in my vimrc:

1
2
" This must be first, because it changes other options as side effect
set nocompatible
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab

" hidden
set hidden

" indent
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting

set number " always show line numbers
set showmatch " set show matching parenthesis

set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase, case-sensitive otherwise
set hlsearch " highlight search terms
set incsearch " show search matches as you type