Skip to content

Instantly share code, notes, and snippets.

@mulderu
Last active December 13, 2017 20:58
Show Gist options
  • Save mulderu/78d0936cd221060d6851693b9e3cca6f to your computer and use it in GitHub Desktop.
Save mulderu/78d0936cd221060d6851693b9e3cca6f to your computer and use it in GitHub Desktop.
vim and cmd util space 4 or space 2 and line number and special chars
vim
$ cat .vimrc
--------------------
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=2
" when indenting with '>', use 4 spaces width
set shiftwidth=2
" On pressing tab, insert 4 spaces
set expandtab
" On line number
set number
" On show special char (tab and line end)
set list
-----------------------------
# if you hide line number
set nonumber
# if you hide special chars (etc line end $ mark)
hide special char : set nolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment