# HG changeset patch # User Ludovic Chabant # Date 1380259695 25200 # Node ID a273867b6a0d626bfef85a4a3fe92c6bb650c6c0 # Parent bb4697ae74252da2e090dc626bf4c346fc7a14c4# Parent 71f5975e72207f9d2416d730501d20baeab0ff07 Merged changes. diff -r 71f5975e7220 -r a273867b6a0d .hgsub --- a/.hgsub Thu Sep 26 20:53:43 2013 -0700 +++ b/.hgsub Thu Sep 26 22:28:15 2013 -0700 @@ -25,4 +25,5 @@ lib/hg/hg-git = https://bitbucket.org/durin42/hg-git lib/hg/onsub = https://bitbucket.org/ludovicchabant/onsub +lib/hg/allpaths = https://bitbucket.org/ludovicchabant/allpaths diff -r 71f5975e7220 -r a273867b6a0d .hgsubstate --- a/.hgsubstate Thu Sep 26 20:53:43 2013 -0700 +++ b/.hgsubstate Thu Sep 26 22:28:15 2013 -0700 @@ -1,11 +1,12 @@ -3b82cf6ac73ad8455a632516735070610eb5cd32 lib/hg/hg-git +f8703c9e2fb951ebb193b268faf7f0457abf8334 lib/hg/allpaths +a3c3b8077cbeec7c381a4b312d722d575a738610 lib/hg/hg-git d920e3425db554497a2cfaf1a2548eafbdc8b0e7 lib/hg/onsub -65adfb4b8907a83556b4d43234b115bacd958472 vim/bundle/badwolf -9132dbf0a25bf2c825cf11caf5926758e5048eac vim/bundle/colorschemes -dc349bb7d30f713d770fc1fa0fe209e6aab82dc8 vim/bundle/commentary -0d198fb5075ccd1dca4340a8b0e2725fb9a82bc8 vim/bundle/ctrlp +b8e07a24e77d3bad16a89bde409f97ccc307486a vim/bundle/badwolf +199924c0171bf7e52c832c2f5b26f7e0b13dfa73 vim/bundle/colorschemes +a3ae0df1d9e13941e9e8086637055841ce93f7bd vim/bundle/commentary +c1646e3c28d75bcc834af4836f4c6e12296ba891 vim/bundle/ctrlp 667a668e114e9ec0e5d4cbcb0962d835b23614c4 vim/bundle/easymotion -41383131b861c12abd82ad55a9546b9b715925a0 vim/bundle/fugitive +a0c71a6d4cb3b576ebbe42a270c8c48cbb23d185 vim/bundle/fugitive 8c570a493d260890242cbdc5a22d8500dc4604cb vim/bundle/gundo 9a891ed78a4b222e8c710e533e0d1f21259c0ef1 vim/bundle/haml 8c9aca0e4322f56bce43204a172f9d18b67f0cc2 vim/bundle/lawrencium @@ -13,11 +14,11 @@ dcdab0cd55da5e0b8655c000d99d96624cd6404c vim/bundle/markdown a1433c485eb254838c1db52e087d5ec4d1e77cfd vim/bundle/nerdtree af8514b79c046a6bb447021b81351edb050ac69f vim/bundle/piecrust -99277d9eed97a59cacc1db8c1dece2bcfd96d877 vim/bundle/powerline +114f8e5c204f1cac9b2443065910fa182de39fb8 vim/bundle/powerline 2f639ea61ab037e7862228d54a1c292f59c2385f vim/bundle/ragtag -613eb1c81261adfa5dead315089c432ff6dbbc51 vim/bundle/repeat +d75a544b786710705f0db0d8d8fd66ca4a5a7239 vim/bundle/repeat 528a59f26d12278698bb946f8fb82a63711eec21 vim/bundle/solarized -7380c4f0db00992787975f51a3667378fb4cf2ea vim/bundle/supertab +ee35ab6954a11337a2b52003d07fabe442843b68 vim/bundle/supertab 1a73f607f8f5477d6942df2eb6e7245c4864f4d3 vim/bundle/surround -127422c11eeb61692a58e70fbefd096a39c80965 vim/bundle/syntastic +e5dfcc3488e407c8e28b308cb6e631336e77d060 vim/bundle/syntastic b9d1fa7d460dac878cbc8c945a45439d92ce0cb2 vim/bundle/vimroom diff -r 71f5975e7220 -r a273867b6a0d build/update_subrepos.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/update_subrepos.cmd Thu Sep 26 22:28:15 2013 -0700 @@ -0,0 +1,5 @@ +@echo off + +hg onsub -t hg "hg pull -u" +hg onsub -t git "git pull origin master" + diff -r 71f5975e7220 -r a273867b6a0d build/update_subrepos.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/update_subrepos.sh Thu Sep 26 22:28:15 2013 -0700 @@ -0,0 +1,5 @@ +#!/bin/sh + +hg onsub -t hg "hg pull -u" +hg onsub -t git "git pull origin master" + diff -r 71f5975e7220 -r a273867b6a0d git/gitconfig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/git/gitconfig Thu Sep 26 22:28:15 2013 -0700 @@ -0,0 +1,3 @@ +[user] +name = ludovicchabant +email = ludovic@chabant.com diff -r 71f5975e7220 -r a273867b6a0d install.cmd --- a/install.cmd Thu Sep 26 20:53:43 2013 -0700 +++ b/install.cmd Thu Sep 26 22:28:15 2013 -0700 @@ -27,3 +27,11 @@ echo [extensions] >> "%userprofile%\mercurial.ini" echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" + +:: Git Files +if exist "%userprofile%\.gitconfig" ( + set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort. + del /Q "%userprofile%\.gitconfig" +) +copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig" + diff -r 71f5975e7220 -r a273867b6a0d install.sh --- a/install.sh Thu Sep 26 20:53:43 2013 -0700 +++ b/install.sh Thu Sep 26 22:28:15 2013 -0700 @@ -20,3 +20,8 @@ echo [extensions] >> "$HOME/.hgrc" echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc" echo onsub = $CWD/lib/hg/onsub/onsub.py >> "$HOME/.hgrc" + +# GIT +# --- +cp "$CWD/git/gitconfig" "$HOME/.gitconfig" + diff -r 71f5975e7220 -r a273867b6a0d uninstall.cmd --- a/uninstall.cmd Thu Sep 26 20:53:43 2013 -0700 +++ b/uninstall.cmd Thu Sep 26 22:28:15 2013 -0700 @@ -6,3 +6,4 @@ rmdir /Q /S "%userprofile%\vimfiles" del "%userprofile%\_vimrc" del "%userprofile%\mercurial.ini" +del "%userprofile%\.gitconfig" diff -r 71f5975e7220 -r a273867b6a0d uninstall.sh --- a/uninstall.sh Thu Sep 26 20:53:43 2013 -0700 +++ b/uninstall.sh Thu Sep 26 22:28:15 2013 -0700 @@ -5,3 +5,5 @@ rm $HOME/.vim rm $HOME/.vimrc rm $HOME/.hgrc +rm $HOME/.gitconfig + diff -r 71f5975e7220 -r a273867b6a0d vim/vimrc --- a/vim/vimrc Thu Sep 26 20:53:43 2013 -0700 +++ b/vim/vimrc Thu Sep 26 22:28:15 2013 -0700 @@ -168,6 +168,9 @@ " Nice auto-complete menu. set completeopt=longest,menuone,preview +" Column indicators. +set colorcolumn=72,79 + " And now, for some system-dependent settings: " - font to use if s:vim_platform == "windows" @@ -218,7 +221,7 @@ " Ctrl-P should however ignore some stuff. let g:ctrlp_custom_ignore = { - \ 'dir': '\.git$\|\.hg$\|\.svn$|\venv$', + \ 'dir': '\v[\/](\.git|\.hg|\.svn|venv)$', \ 'file': '\.exe$\|\.so$\|\.dll$|\.pyc$|\.pyo$' \ } @@ -294,14 +297,11 @@ nnoremap s :split nnoremap v :vsplit -" Edit & source the VIMRC. -nnoremap ev :vsplit $MYVIMRC -nnoremap sv :source $MYVIMRC - " Easier things to type nnoremap w :w nnoremap q :q -nnoremap hg :Hg +nnoremap hh :Hg +nnoremap hg :Hg! nnoremap hs :Hgstatus nnoremap hv :Hgvdiff @@ -320,11 +320,11 @@ nnoremap :CtrlPMRU " Switch between FR and US keyboard layouts. -nnoremap fr :setlocal keymap=french -nnoremap us :setlocal keymap= +nnoremap f :setlocal keymap=french +nnoremap u :setlocal keymap= " Toggle spell check according to current keyboard layout. -nnoremap sp :call ToggleSpellCheck() +nnoremap s :call ToggleSpellCheck() " Simple way to close a buffer without closing the window. nnoremap bd :bprevious:bdelete # @@ -338,9 +338,19 @@ " File-type switching. nnoremap ftmd :set ft=markdown +" Use sane regexes. +nnoremap / /\v +vnoremap / /\v + " Quick search and replace. -nnoremap s :%s/\<\>//g -vnoremap s y:%s/*//g +function! s:VSetSearch() + let temp = @@ + norm! gvy + let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g') + let @@ = temp +endfunction +vnoremap * :call VSetSearch()// +vnoremap # :call VSetSearch()?? " }}}