From ebbb0791d4469e87e8c566ed508d0030aa529ef6 Mon Sep 17 00:00:00 2001 From: Igor Irianto Date: Mon, 25 Jan 2021 10:36:52 -0600 Subject: [PATCH] Add missing item on a ch21 list --- ch21_vimrc.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ch21_vimrc.md b/ch21_vimrc.md index 501d107..0247839 100644 --- a/ch21_vimrc.md +++ b/ch21_vimrc.md @@ -242,9 +242,10 @@ You can split your vimrc to multiple files using Vim's `source` command. This co Let's create a file inside the `~/.vim` directory and name it `/settings` (`~/.vim/settings`). The name itself is arbitrary and you can name it whatever you like. -You are going to split it into three components: +You are going to split it into four components: - Third-party plugins (`~/.vim/settings/plugins.vim`). - General settings (`~/.vim/settings/configs.vim`). +- Custom functions (`~/.vim/settings/functions.vim`). - Key mappings (`~/.vim/settings/mappings.vim`) . Inside `~/.vimrc`: @@ -263,7 +264,6 @@ call plug#begin('~/.vim/plugged') Plug 'mattn/emmet-vim' Plug 'preservim/nerdtree' call plug#end() - ``` Inside `~/.vim/settings/configs.vim`: @@ -292,7 +292,6 @@ Inside `~/.vim/settings/mappings.vim`: inoremap jk nnoremap :GFiles nnoremap tn :call ToggleNumber() - ``` Your vimrc should works as usual, but now it is only three lines long!