Your cart is currently empty!
Vim: Config
Map keys
:inoremap jj <esc> :ino jj <esc>
Syntax highlight
:syntax on " turn on syntax highlighting :syntax off " turn off syntax highlighting
Show line numbers
:set number :set nu
Show relative line numbers
:set relativenumber :set rnu
Make the cursor always in the middle
:set scrolloff=999 :set so=999
Change tab size
" Set tab size when you hit tab button " If you have existing tab, this will adjust the tabsize :set tabstop=4 :set ts=4 " Set indent size when you indent with >, =, < " When you set shiftwidth=0 it will follow the value of tabstop " If shiftwidth % tabstop != 0, the remaining is filled with spaces :set shiftwidth=0 :set sw=0 " Tab to spaces :set expandtab :set et
Show/hide whitespaces
" Show whitespaces :set list " Hide whitespaces :set nolist " Toggle whitespaces :set list!
References:
Leave a Reply