Last active
October 21, 2020 00:15
-
-
Save bilalakil/b0d077871e113e48ede5 to your computer and use it in GitHub Desktop.
.vimrc pretty much only to smarten tabbing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Basics. | |
syntax on | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set autoindent | |
set smartindent | |
set encoding=utf-8 | |
" Things based on file type. | |
filetype plugin indent on | |
autocmd FileType make setlocal noexpandtab | |
autocmd BufRead,BufNewFile *.go setlocal noexpandtab | |
autocmd FileType php setlocal ts=4 sts=4 sw=4 | |
autocmd BufRead,BufNewFile *.md setlocal ts=4 sts=4 sw=4 | |
" Because I'm a sadist (you probably won't want this). | |
nnoremap <up> <nop> | |
nnoremap <down> <nop> | |
nnoremap <left> <nop> | |
nnoremap <right> <nop> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment