Skip to content

Instantly share code, notes, and snippets.

@hieuns
Created April 19, 2021 04:30
Show Gist options
  • Save hieuns/82707e0d1252ee573e82a3a9d3fbab2c to your computer and use it in GitHub Desktop.
Save hieuns/82707e0d1252ee573e82a3a9d3fbab2c to your computer and use it in GitHub Desktop.
Vimrc
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