Created
April 19, 2021 04:30
-
-
Save hieuns/82707e0d1252ee573e82a3a9d3fbab2c to your computer and use it in GitHub Desktop.
Vimrc
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 | |
filetype off | |
set encoding=utf-8 | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
call vundle#end() | |
" enables file type detection | |
filetype plugin indent on | |
" make backspaces more powerfull | |
set backspace=indent,eol,start | |
" don't use swap files | |
set noswapfile | |
" show line number | |
set number | |
" split navigations | |
nnoremap <C-J> <C-W>j | |
nnoremap <C-K> <C-W>k | |
nnoremap <C-L> <C-W>l | |
nnoremap <C-H> <C-W>h | |
au BufNewFile,BufRead *.py set | |
\ tabstop=4 | |
\ softabstop=4 | |
\ shiftwidth=4 | |
\ textwidth=79 | |
\ expandtab | |
\ autoindent | |
\ fileformat=unix | |
au BufNewFile,BufRead *.rb, *.js, *.html, *.css set | |
\ tabstop=2 | |
\ softtabstop=2 | |
\ shiftwidth=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment