Skip to content

Instantly share code, notes, and snippets.

@icylogic
Last active August 29, 2015 14:19
Show Gist options
  • Save icylogic/6679b296d456f92a8de7 to your computer and use it in GitHub Desktop.
Save icylogic/6679b296d456f92a8de7 to your computer and use it in GitHub Desktop.
.rc
set editor=gvim\ -f
set gui=none
set gui=tabs
colorscheme darkness
source! "%USERPROFILE%\\_vimperatorrc.local"
"extra preference for GUI
"GUI
"hide everything
set guioptions-=T
set guioptions-=m
set guioptions-=M
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guioptions-=b
"colors and fonts
set t_Co=256
set guifont=Tsentsiu_Sans_Mono_HG:h16:cGB2312
set guifont=Tsentsiu_Sans_Mono_HJ:h16:cSHIFTJIS
"base16
Bundle 'chriskempson/base16-vim'
colorscheme base16-ocean
"basic vimrc
"details
set ruler
set cursorline
set laststatus=2
set number
set hlsearch
set showmatch
set scrolloff=4
syntax on
"indent
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
set autoindent
"encodings and formats
language messages zh_CN.utf-8
set encoding=utf-8
set fileencodings=utf-8,gbk,cp936,ucs-bom
set fileformats=unix,dos
set fileformat=unix
au filetype autohotkey set bomb
"others
set backspace=2
set autoread
set ignorecase
set helplang=cn
let mapleader = '\'
"swap file dir
set directory=~/AppData/Local/Temp
"Bundles
filetype off
set rtp+=$VIM/vimfiles/bundle/vundle/
call vundle#rc('$VIM/vimfiles/bundle/')
Bundle 'gmarik/vundle'
"languages
Bundle 'armasm'
let asmsyntax='armasm'
let filetype_inc='armasm'
Bundle 'wting/rust.vim'
Bundle 'elzr/vim-json'
Bundle 'godlygeek/tabular'
Bundle 'plasticboy/vim-markdown'
let g:vim_markdown_folding_disabled=1
let g:vim_markdown_math=1
let g:vim_markdown_frontmatter=1
Bundle 'digitaltoad/vim-jade'
Bundle 'kchmck/vim-coffee-script'
au filetype yaml setlocal shiftwidth=2 softtabstop=2 tabstop=2
au filetype jade setlocal shiftwidth=2 softtabstop=2 tabstop=2
au filetype javascript setlocal shiftwidth=2 softtabstop=2 tabstop=2
au filetype coffee setlocal shiftwidth=2 softtabstop=2 tabstop=2
Bundle 'auto_mkdir'
Bundle 'kien/ctrlp.vim'
Bundle 'itchyny/lightline.vim'
Bundle 'ervandew/supertab'
let g:SuperTabDefaultCompletionType = "<c-n>"
Bundle 'Shougo/neocomplete.vim'
let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_smart_case = 1
let g:neocomplete#sources#syntax#min_keyword_length = 3
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
"enhance comment
Bundle 'The-NERD-Commenter'
nmap <Space> <Plug>NERDCommenterInvert
vmap <Space> <Plug>NERDCommenterInvert
"jumper
Bundle 'Lokaltog/vim-easymotion'
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment