Created
November 20, 2017 03:29
-
-
Save Xuyuanp/a94d9172976a24297b0f83424835ee4f to your computer and use it in GitHub Desktop.
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
" Sets how many lines of history VIM har to remember | |
set history=5000 | |
" Use UTF-8 without BOM | |
set encoding=utf8 nobomb | |
set modeline | |
" Enable filetype plugin | |
set completeopt=longest,menu | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" set autochdir | |
" Have the mouse enabled all the time: | |
set mouse=a | |
set modifiable | |
" Enable syntax | |
syntax on | |
" guioptions {{{ | |
if has('gui_running') | |
set guioptions-=m | |
set guioptions-=T | |
set guioptions-=L | |
set guioptions-=r | |
set guioptions-=b | |
endif | |
" }}} | |
set nowrap | |
" Favorite filetypes | |
set ffs=unix,dos,mac | |
" Always show current position | |
set ruler | |
" The commandbar is 2 high | |
set cmdheight=2 | |
" Show line number | |
set nu | |
" Ignore case when searching | |
set ignorecase | |
set incsearch | |
" Set magic on | |
set magic | |
" No sound on errors. | |
set noerrorbells | |
set novisualbell | |
set vb t_vb= | |
" show matching bracets | |
set showmatch | |
set showfulltag | |
" How many tenths of a second to blink | |
set mat=2 | |
" Highlight search things | |
set hlsearch | |
set incsearch | |
set cursorline | |
set showcmd | |
set cmdheight=1 | |
set laststatus=2 | |
" Turn on wild menu, try typing :h and press <Tab> | |
set wildmenu | |
" Display incomplete commands | |
set showcmd | |
" Shortens messages to avoid 'press a key' prompt | |
set shortmess=aoOtTI | |
" Turn backup off | |
set nobackup | |
set nowb | |
set noswapfile | |
set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing | |
set wildignore+=*vim/backups* | |
set wildignore+=*sass-cache* | |
set wildignore+=*DS_Store* | |
set wildignore+=vendor/rails/** | |
set wildignore+=vendor/cache/** | |
set wildignore+=*.gem | |
set wildignore+=log/** | |
set wildignore+=tmp/** | |
set wildignore+=*.png,*.jpg,*.gif | |
" Display tabs and trailing spaces visually | |
set list listchars=tab:\ \ ,trail:· | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Text options | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
set backspace=indent,eol,start | |
set smarttab | |
set lbr | |
set tw=800 | |
set smartindent | |
set autoindent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment