- 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"
- 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
- 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>