Created
November 8, 2015 09:46
-
-
Save prasetiyohadi/6394dbf9f82b896ad23c to your computer and use it in GitHub Desktop.
My .vimrc file
This file contains 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
set nocompatible " required | |
filetype off " required | |
filetype plugin indent on " required | |
" Control split | |
set splitbelow | |
set splitright | |
" Split navigations | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" Add proper PEP8 indentation | |
autocmd FileType python setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 | |
" Full stack development indentation | |
autocmd FileType javescript,html,css setlocal tabstop=2 softtabstop=2 shiftwidth=2 | |
" Flagging unnecessary whitespace | |
au BufRead,BufNewFile python,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ | |
" UTF8 support | |
set encoding=utf-8 | |
set expandtab | |
set autoindent | |
set fileformat=unix | |
syntax on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment