Skip to content

Instantly share code, notes, and snippets.

@flaneur2020
Created November 14, 2010 11:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save flaneur2020/676082 to your computer and use it in GitHub Desktop.
Save flaneur2020/676082 to your computer and use it in GitHub Desktop.
my .vimrc
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
syntax on
filetype plugin on
"about tab
set autoindent
set smartindent
set smarttab
set expandtab
" encoding . utf-8 rules!
" let $LANG="zh_CN.UTF-8" " locales
" set fileencoding=utf-8 " prefer
set ambiwidth=double
set fileencodings=utf-8,gb2312,gbk,gb18030
set termencoding=utf-8
set encoding=utf-8
" misc
set nu
set wildmenu
set ruler
set tags=tags
"set autochdir
" ^c^V i don't know how these about
" set laststatus=2
set lbr
set fo+=mB
set sm
set cin
set cino=:0g0t0(sus
set guifont=WenQuanYi\ Micro\ Hei\ Mono
set hls
set backspace=indent,eol,start
set noswapfile
set whichwrap=b,s,<,>,[,]
set bsdir=buffer
set smartcase
set nowrap
set autochdir
set autoread
set autowrite
set nobackup
set nowritebackup
" toolbar sucks
set guioptions-=T
" tabwidth
set shiftwidth=4
set tabstop=4
autocmd filetype ruby,haml set shiftwidth=2
autocmd filetype ruby,haml set tabstop=2
color slate
" key bindings
noremap <C-[> <C-T>
" tabs
noremap <C-Right> :tabn<CR>
noremap <C-left> :tabprevious<CR>
" windows
noremap <C-Up> <C-W>k<C-W>_
inoremap <C-Up> <C-o><C-W>k<C-W>_
noremap <C-Down> <C-W>j<C-W>_
inoremap <C-Down> <C-o><C-W>j<C-W>_
" v
noremap <UP> gk
noremap <Down> gj
noremap <LEFT> h
noremap <Right> l
noremap <ESC> v<ESC>
"
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" on plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" NERDTree
let NERDTreeShowHidden=1
" Vimwiki
let g:vimwiki_use_mouse = 1
let g:vimwiki_camel_case = 0
let g:vimwiki_CJK_length = 1
let g:vimwiki_list = [{'path': '~/code/wiki/src/',
\ 'path_html': '~/code/wiki/',
\ 'html_header': '~/code/wiki/src/tpl/head.tpl',
\ 'html_footer': '~/code/wiki/src/tpl/foot.tpl'}
\ ]
" FuzzyFinder
let g:fuf_previewHeight=0
" noremap ff :FufFile<cr>
" noremap fb :FufBuffer<cr>
" noremap fd :FufDir<cr>
" noremap ft :FufTag<cr>
noremap <Leader>ft :FufTag<cr>
noremap <Leader>fb :FufBuffer<cr>
noremap <Leader>ff :FufFile<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment