1. Gabriel AHTUNE
  2. gaby-dotfiles

Commits

Gabriel AHTUNE  committed 9952066

Some simplification in vimrc and dunt know wat change for others

  • Participants
  • Parent commits 14733f0
  • Branches default

Comments (0)

Files changed (5)

File Xdefaults

View file
 !
 URxvt.iso14755:                 false
 URxvt.iso14755_52:              false
-URxvt*.transparent:             true
+!URxvt*.transparent:             true
 URxvt*termName:                 rxvt-unicode-256color
-URxvt*geometry:                 80x25
+!URxvt*geometry:                 80x25
 URxvt*foreground:               grey80
 URxvt*borderLess:               false
 URxvt*depth:                    32
-URxvt.background:               #000000
-URxvt*.shading:                 10
-URxvt.font:                     xft:monaco:size=10:antialias=true:hinting=true
-URxvt.boldFont:                 xft:monaco:size=10:antialias=true:hinting=true
+URxvt.background:               #020205
+!URxvt*.shading:                 0
+
+URxvt.font:                     xft:monaco:size=8
+!URxvt.boldFont:                 xft:monaco:size=8
 URxvt*cursorBlink:              true
 URxvt*cursorUnderline:          false
 URxvt.scrollstyle:              plain
 URxvt*scrollBar_floating:       true
 URxvt*scrollBar_right:          true
-URxvt*scrollColor:              #285577
+URxvt*scrollColor:              #2855A7
 URxvt.cutchars:                 "\\ `\"\'()*;<>[]{|}&,=?@^\:"
-URxvt*searchable-scrollback:    true
-URxvt.perl-ext-common:          default,matcher,searchable-scrollback,clipboard,keyboard-select,font-size
+!URxvt*searchable-scrollback:    true
+URxvt.perl-ext-common:          default,matcher,clipboard
 URxvt.url-launcher:             firefox-aurora
 URxvt.matcher.button:           1
 URxvt.url-select.underline:     true
 URxvt.colorUL:                  #4682B4
 
 URxvt.keysym.M-Escape:          perl:keyboard-select:activate
-URxvt.keysym.M-s:               perl:keyboard-select:search
-URxvt.keysym.C-S-c:             clipboard:copy
-URxvt.keysym.C-S-v:             clipboard:paste 
-URxvt.keysym.C-plus:            perl:font-size:incglobal
-URxvt.keysym.C-minus:           perl:font-size:decglobal
+!URxvt.keysym.M-s:               perl:keyboard-select:search
+!URxvt.keysym.C-S-c:             clipboard:copy
+!URxvt.keysym.C-S-v:             clipboard:paste 
+!URxvt.keysym.C-plus:            perl:font-size:incglobal
+!URxvt.keysym.C-minus:           perl:font-size:decglobal
 !------------------------------------------------------------------------------
 !    Key modifier
 !
 URxvt.keysym.C-End:     \033[1;5F
 URxvt.keysym.C-Home:    \033[1;5H
 
-
-
-
 ! colors
 ! !black
 ! URxvt*color0:                    #676767

File bashrc

File contents unchanged.

File vimrc

View file
 " My current vimrc
 " Feel free to grab what you like inside
 " Gabriel AHTUNE <larchange[at]gmail.com>
-" Last Modified: 2013-01-06 19:40:40
+" Last Modified: 2013-05-01 19:40:40
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " F8:  Cope
 " F9:  MRU
 " F10: Toggle VExplorer
-" F11: Compile/make/... 
-" F12: Slime
+" F12: Buffer list
+" C-F5: Compile/make/... 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Automatic reloading of .vimrc {{{1
 if !exists("autocommandes_incluses")
 set ttymouse=urxvt
 set mouse=a
 set title
-set ttimeout
-set ttimeoutlen=10
 set guioptions=""
 set wildmenu
 set list
 set ai "Auto indent
 set si "Smart indent
 set copyindent
-set wrap "Wrap lines
+set nowrap "Wrap lines
 set tw=79
 set bs=2
-set sidescroll=1 " slow side scroll
+set sidescroll=5 " slow side scroll
 
 " History {{{2
 set undolevels=1000
 endfunction
 
 " Execution {{{2
-nnoremap <F11> :silent make<CR>:botright cwindow<CR>:echo "make complete"<CR>
+nnoremap <C-F5> :silent make<CR>:botright cwindow<CR>:echo "make complete"<CR>
 nnoremap <F5> :! ./%<CR><CR>
 
 function! MakeExecutable()
 
 nnoremap <silent> <Leader>w :r !echo "\#\! `which <cword>`"<CR>k"_dd
 
-" The G tinymap ! {{{2
-
-call tinykeymap#EnterMap('G', 'g', {'name': 'G mode'})
-
-call tinykeymap#Map('G', 't', 'tabnext')
-call tinykeymap#Map('G', 'T', 'tabprev')
-call tinykeymap#Map('G', 'b', 'bnext')
-call tinykeymap#Map('G', 'B', 'bprev')
-call tinykeymap#Map('G', 'nb', 'enew')
-call tinykeymap#Map('G', 'nt', 'tabnew')
-call tinykeymap#Map('G', 'xb', 'bd')
-call tinykeymap#Map('G', 'xt', 'tabclose')
-
-" Tabs {{{2
-map <Leader>t <ESC>:tabnew<CR>
-
 " Buffers {{{2
 set hidden " Do not need to save file when opening a new file.
 nnoremap <Leader>b :enew<CR>
 nnoremap <C-w>s <C-w>s<C-w>j
 nnoremap <Leader>ss :Windo set scrollbind!<CR>
 
-call tinykeymap#Load('windows')
-call tinykeymap#Map('windows', '<C-right>', 'wincmd >')
-call tinykeymap#Map('windows', '<C-left>', 'wincmd <')
-call tinykeymap#Map('windows', '<C-up>', 'wincmd +')
-call tinykeymap#Map('windows', '<C-k>', 'wincmd +')
-call tinykeymap#Map('windows', '<C-j>', 'wincmd -')
-call tinykeymap#Map('windows', '<C-h>', 'wincmd <')
-call tinykeymap#Map('windows', '<C-l>', 'wincmd >')
-call tinykeymap#Map('windows', 'l', 'wincmd l')
-call tinykeymap#Map('windows', 'h', 'wincmd h')
-call tinykeymap#Map('windows', 'j', 'wincmd j')
-call tinykeymap#Map('windows', 'k', 'wincmd k')
-call tinykeymap#Map('windows', 'q', 'wincmd q')
-call tinykeymap#Map('windows', 'L', 'wincmd L')
-call tinykeymap#Map('windows', 'H', 'wincmd H')
-call tinykeymap#Map('windows', 'J', 'wincmd J')
-call tinykeymap#Map('windows', 'K', 'wincmd K')
-call tinykeymap#Map('windows', '|', 'wincmd |')
-call tinykeymap#Map('windows', '_', 'wincmd _')
-call tinykeymap#Map('windows', '=', 'wincmd =')
-
-
 " Jumps {{{2
 nnoremap <M-j> :jumps<CR>
 
 noremap <silent> <C-l> <C-L>:noh<CR>
 
 nnoremap <silent> _ *#
-nnoremap <silent> <2-LeftMouse> *#viw
+nnoremap <silent> <2-LeftMouse> <C-]>
 
 " Moving {{{2
 inoremap <S-Up>   <C-O>gk
 inoremap <S-Down> <C-O>gj
 noremap  <Up>   gk
 noremap  <Down> gj
+noremap <C-ScrollWheelUp> <ESC>zh
+noremap <C-ScrollWheelDown> <ESC>zl
 
 " Auto completion {{{2
 set completeopt+=longest,menu
 
 " Explorer {{{2
 
-nn <Leader>cd :lcd %:h<CR>
+nn <Leader>cd :lcd %:h<CR>:pwd<CR>
 nn <Leader>e :e .<CR>7G
 
 function! CleanVExplorer()
 
 autocmd QuickFixCmdPost * call ArrangeCope()
 
-" MRU: Most Recent Used {{{2
-" ------------------------------------------------------------------------------
-function! ToggleMRU()
-    exec "MRU"
-    nnoremap <buffer> <silent> <F9> :close<CR>
-endfunction
-noremap <silent> <F9> :call ToggleMRU()<CR>
-
-" Vim-debug {{{2
-" ------------------------------------------------------------------------------
-
-" nnoremap <C-F10> :Dbg over<cr>:Dbg watch<CR><C-W>h
-" nnoremap <C-F5> :Dbg run<cr>:Dbg watch<CR><C-W>h
-" nnoremap <C-F12> :Dbg into<cr>:Dbg watch<CR><C-W>h
+nnoremap  :cn<CR>
+nnoremap  :cp<CR>
 
 " To Python {{{2
 map <Leader>da gg0idata = """<ESC>GA"""<CR><CR>
 vmap <Leader>ep :!python<CR>
 nmap <Leader>ep :%!python<CR>
 
-" Others {{{2
-imap <C-x>m <ESC>:r!google-contacts-lookup.sh <cword><CR><ESC>i
-vnoremap <Leader>s :sort<CR>
-" }}}
-
 " PLUGINS: With configuration {{{1
 " -----------------------------------------------------------------------------
 
 " Jellybeans colorscheme {{{2
 "     cd ~/.vim/bundle/
 "     git clone https://github.com/nanotech/jellybeans.vim
-colorscheme jellybeans
+"colorscheme jellybeans
+"
+colorscheme Tomorrow-Night-Bright
 
 " Powerline {{{2
-"     cd ~/.vim/bundle/
-"     git clone https://github.com/Lokaltog/vim-powerline.git
 set laststatus=2
 
 " Taglist {{{2
 " Ctrlp {{{2
 "     cd ~/.vim/bundle
 "     git clone https://github.com/kien/ctrlp.vim.git
+noremap <silent> <F9> :CtrlPMRUFiles<CR>
+noremap <silent> <F12> :CtrlPBuffer<CR> 
 let g:ctrlp_max_height = 20
 set wildignore+=*.pyc
 set wildignore+=*_build/*
+set wildignore+=*/.hg/*
 set wildignore+=*/coverage/*
-set wildignore+=*.mp3,*.pdf,*.png,*.jpg,*.mov,*.bmp,*.mp4,*.avi
+set wildignore+=*.mp3,*.pdf,*.png,*.jpg,*.mov,*.bmp,*.mp4,*.avi,*.cbr,*.djvu,*.epub,*.mobi
 
 " Syntastic {{{2
 " git clone https://github.com/scrooloose/syntastic.git
             \ 'passive_filetypes': [] }
 map <F2> :w<CR>:SyntasticCheck<CR>
 
-" TinyKeyMap {{{2
-" Install manually with the vimball file
-let g:tinykeymaps_default=[]
-let g:tinykeymap#conflict=3
-
 " Gundo {{{2
 " hg clone http://bitbucket.org/sjl/gundo.vim ~/.vim/bundle/gundo
 nnoremap <F6> :GundoToggle<CR>
 nnoremap <Leader>cR <plug>VCSRevert
 let VCSCommandDeleteOnHide=1
 
-" SuperNormal {{{2
-" hg clone https://bitbucket.org/larchange/supernormal
-let g:SuperNormalSnipmateCompatible=1
-" }}}
-
 " PLUGINS: Configurationless {{{1
 " -----------------------------------------------------------------------------
 
 " git clone https://github.com/tpope/vim-repeat.git
 " git clone https://github.com/vim-scripts/mru.vim.git
 
-" # Install rst support
-" yaourt -S --noconfirm vim_bridge-git
-" cd ~/.vim/bundle/
-" git clone https://github.com/nvie/vim-rst-tables.git
-
-" Vim-debug
-" yaourt -S --nocomfirm  vim-debug-git
-
-" snipmate, snippets
-" git clone https://github.com/msanders/snipmate.vim.git
-" git clone https://github.com/scrooloose/snipmate-snippets.git
-
-" css color
-" git clone https://github.com/skammer/vim-css-color.git
+" SuperNormal {{{2
+" hg clone https://bitbucket.org/larchange/supernormal
+" }}}
 
 " Underline
 " hg clone https://bitbucket.org/larchange/underline.vim

File xinitrc

File contents unchanged.

File zshrc

View file
 alias q="exit"
 alias wq="exit"
 alias q!="exit"
+alias shelllevel='echo `echo $SHLVL`'
+
 # Set to this to use case-sensitive completion
 # CASE_SENSITIVE="true"
 
 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
 # Example format: plugins=(rails git textmate ruby lighthouse)
-plugins=(archlinux git django mercurial python pip extract history systemd dircycle)
+plugins=(archlinux git django mercurial python pip extract history systemd)
 
 source $ZSH/oh-my-zsh.sh
 
 # USEFUL FUNCTIONS
 # ----------------------------------------------
 
+lslast()
+{
+    echo "`ls -rtf  $1| tail -1`"
+}
+
+
 logview()
 {
     ccze -A < $1 | less -R