set space as the leader key vim code example Example: vim remap space as leader " Set space as Leader key nnoremap <SPACE> <Nop> let mapleader=" "