Created
September 11, 2018 06:34
-
-
Save shyuan/ac9e7b6d1ee204026ccc62fa13fdcf75 to your computer and use it in GitHub Desktop.
My 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 rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#begin() | |
" let Vundle manage Vundle, required! | |
Plugin 'gmarik/vundle' | |
"" My Bundles here: | |
"" | |
"" original repos on github | |
Plugin 'fholgado/minibufexpl.vim' | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'honza/snipmate-snippets' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'othree/javascript-syntax.vim' | |
Plugin 'jiangmiao/simple-javascript-indenter' | |
Plugin 'shyuan/vim-color-schemes' | |
Plugin 'mattn/hahhah-vim' | |
Plugin 'digitaltoad/vim-jade' | |
Plugin 'plasticboy/vim-markdown' | |
Plugin 'fatih/vim-go' | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
filetype on | |
filetype plugin on | |
filetype indent on | |
"set smartindent | |
set hlsearch | |
set cmdheight=2 | |
set ruler | |
"set softtabstop=4 | |
set shiftwidth=2 | |
set showtabline=2 | |
set backspace=indent,eol,start whichwrap+=<,>,[,] | |
set expandtab | |
set smarttab | |
set softtabstop=8 | |
set tabstop=8 | |
set listchars=tab:»·,trail:· | |
set list | |
autocmd BufRead,BufNewFile *.js set shiftwidth=2 softtabstop=2 expandtab colorcolumn=100 | |
" Encoding | |
set encoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=utf-8,ucs-bom,utf-bom,euj-jp,gbk,euc-krbig5,iso8859-1 | |
set termencoding=utf-8 | |
set fileformats=unix,dos fileformat=unix | |
" General | |
set nowrap | |
set number | |
set t_Co=256 | |
colorscheme colorful256 | |
language message zh_TW.UTF-8 | |
set laststatus=2 | |
"set statusline=%f\ %y%r%1*%m%*\ %{g:HahHah()}%=%<\ [%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\ x%02B\ %4c\ %4l\ [%P] | |
highlight User1 ctermfg=red | |
highlight User2 term=underline cterm=underline ctermfg=green | |
highlight User3 term=underline cterm=underline ctermfg=yellow | |
highlight User4 term=underline cterm=underline ctermfg=white | |
highlight User5 ctermfg=cyan | |
highlight User6 ctermfg=white | |
set statusline=%4*\ %5*[%{&encoding}, " encoding | |
set statusline+=%{&fileformat}]%m " file format | |
set statusline+=%4*%=\ %6*%y%4*\ %3*%l%4*,\ %3*%c%4*\ \<\ %2*%P%4*\ \> | |
nnoremap <silent> <F8> :set number!<CR> | |
au WinLeave * set nocursorline | |
au WinEnter * set cursorline | |
set cursorline | |
set cursorcolumn | |
highlight cursorcolumn cterm=none ctermbg=237 | |
highlight cursorline cterm=none ctermbg=237 | |
let NERDTreeShowHidden = 1 | |
if exists(":NERDTreeToggle") | |
nnoremap <silent> <F7> :NERDTreeToggle <CR> | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment