Skip to content

Instantly share code, notes, and snippets.

@XrXr
Last active September 30, 2020 21:28
Show Gist options
  • Save XrXr/ff2d1986a4c35e1cfeab to your computer and use it in GitHub Desktop.
Save XrXr/ff2d1986a4c35e1cfeab to your computer and use it in GitHub Desktop.
vimrc
set nomodeline
set expandtab
set tabstop=8
set softtabstop=4
set shiftwidth=4
set autoindent
set smartindent
set ignorecase
set smartcase
set ruler
syntax on
noremap ; l
noremap l k
noremap k j
noremap j h
inoremap jk <Esc>
nnoremap K <nop>
nnoremap q: <nop>
au FileType ruby set softtabstop=2 | set shiftwidth=2
set nojoinspaces "put one space after period instead of two for `gq`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment