Commits

Kai Chen committed d9392fc

update bundle plugins

  • Participants
  • Parent commits a8e97a4

Comments (0)

Files changed (8)

Submodule bundle-langs/html5-syntax.vim

+Subproject commit 2f82fce6b97407e09a9635938e21506444c4d13a

Submodule bundle-langs/vim-css3-syntax

+Subproject commit c35bf8ed1732e6a0b8fbaad558692b3a2484745e

Submodule bundle-tools/gist-vim

+Subproject commit aad7fb31849c548ec21fcb018e2bf49629f4f290

Submodule bundle-tools/vim-fugitive

-Subproject commit 03e138c3496926b193402f4e1542f0a99924f999
+Subproject commit 3b278277e0b46711c30a3d1a0083e527b2fb98ed

Submodule bundle-tools/vimwiki

+Subproject commit d5a6d097da1c67e07b3fb073f22217c7462f5088

File gvimrc.after

+syntax enable
+colorscheme Tomorrow-Night
+
+if has("gui_running")
+  set iminsert=2
+  set relativenumber
+endif
+
+set guifont=Monaco:h14
+set listchars=tab:▸\ ,eol:¬
 
 ln -nfs ~/Vimrc ~/.vim
 ln -nfs ~/Vimrc/vimrc ~/.vimrc
-ln -nfs ~/Vimrc/gvimrc ~/.gvimrc
+ln -nfs ~/Vimrc/gvimrc ~/.gvimrc
+set scrolloff=7
+
+noremap <C-Up> :bp<CR>
+noremap <C-Down> :bn<CR>
+noremap <C-j> <C-W>j<CR>
+noremap <C-k> <C-W>k<CR>
+noremap <C-h> <C-W>h<CR>
+noremap <C-l> <C-W>l<CR>
+
+" remove spaces in end of line
+nmap <C-\> :%s/\s\+$//g<CR>
+
+" Language and Encoding
+set fileformats=unix,dos,mac
+set encoding=UTF-8
+set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
+
+au FileType javascript set tabstop=2 softtabstop=2 shiftwidth=2
+
+set statusline=%{fugitive#statusline()}%<%f%h%m%r%h%w%y\ %{strftime(\"%d/%m/%Y-%H:%M\")}%=\ col:%c%V\ lin:%l\,%L\ %P
+let g:statline_show_charcode=1
+let g:statline_fugitive=1
+let g:statline_syntastic=0
+let g:statline_rbenv=1
+let g:statline_filename_relative=0
+
+set wildmode=list:longest,list:full
+set wildignore+=*.o,*.obj,*.rbc,*.class,*/.git/*,*/.hg/*,*/.svn/*,*/tmp/*,*/.sass-cache
+
+autocmd FileType cucumber compiler cucumber | setl makeprg=cucumber\ \"%:p\"
+autocmd FileType ruby
+      \ if expand('%') =~# '_test\.rb$' |
+      \   compiler rubyunit | setl makeprg=testrb\ \"%:p\" |
+      \ elseif expand('%') =~# '_spec\.rb$' |
+      \   compiler rspec | setl makeprg=rspec\ \"%:p\" |
+      \ else |
+      \   compiler ruby | setl makeprg=ruby\ -wc\ \"%:p\" |
+      \ endif
+autocmd User Bundler
+      \ if &makeprg !~# 'bundle' | setl makeprg^=bundle\ exec\  | endif
+
+" My functions
+
+set shell=/bin/bash
+set t_Co=256
+
+set exrc
+set secure
+
+set nonumber
+
+set sessionoptions-=curdir
+set sessionoptions+=sesdir
+
+ab eencod encoding: utf-8
+
+" easy typo here
+cmap W w
+cmap Q q
+
+" vimwiki
+nmap <Leader>wn <Plug>VimwikiNextLink
+nmap <Leader>wp <Plug>VimwikiPrevLink
+
+set bg=dark
+color solarized