diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 93c0691..a5caf22 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -5,6 +5,24 @@ set shiftwidth=2 set expandtab set noshowmode +" Normal mode remap +nnoremap gk +nnoremap gj + +" Visual mode remap +xnoremap gk +xnoremap gj + +" Insert mode remap +" https://vimdoc.sourceforge.net/htmldoc/insert.html#Insert +" Using CTRL-O for temporary move to Normal mode +inoremap gk +inoremap gj + +inoremap +" Line Break +set linebreak + call plug#begin() Plug 'tpope/vim-sensible' Plug 'ap/vim-css-color' diff --git a/update.sh b/update.sh index e69de29..6baa27d 100644 --- a/update.sh +++ b/update.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +CONFIG=$HOME/.config +echo "instruction: ./update.sh " +config=$1 + +cp -r $CONFIG/$config/* ./.config/$config/ +echo "Copied $CONFIG/$config to .config folder" +