Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (32 loc) · 631 Bytes

README.md

File metadata and controls

33 lines (32 loc) · 631 Bytes

Vim Configuration

  • basic vim configuration for editing file in linux server environment.
git clone https://github.com/shi00317/vimrc.git
mv vimrc ~/.vim
cd ~/.vim
bash installation.sh
vi vimrc #type this in vim ":PlugInstall"

Fast Scroll Up and Down

  • Remap k and j key.
# j for up and k for down
noremap j k
noremap k j
  • Go up or down 5 columns.
map J 5j
map K 5k

Quick Save and Exit

  • Shortcut for saving file with S.
map s <nop>
map S :w<CR>
  • Shortcut for reloading and exit file with R and Q.
map Q :q<CR>
map R :source $MYVIMRC<CR>