From 44a3ed3384a68c172943a7db6992e2dffa88230b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 31 Oct 2014 22:01:56 +0000 Subject: Commit new version (no dots, vim folder and mutt folder) --- .bashrc | 114 ---------------- .colormutt | 12 -- .dotfilesrc | 38 ------ .krystle.txt | 18 --- .mailcap | 1 - .mailfilter | 8 -- .muttrc | 51 ------- .mynotes | 29 ---- .tmux.conf | 3 - .vim/after/ftplugin/tex/folding.vim | 34 ----- .vim/after/ftplugin/vim/folding.vim | 26 ---- .vim/after/syntax/cpp.vim | 3 - .vim/after/syntax/cpp.vim~ | 0 .vim/after/syntax/tex.vim | 6 - .vim/after/syntax/tex.vim~ | 6 - .vim/colors/mine.vim | 29 ---- .vim/colors/mine.vim~ | 29 ---- .vimrc | 252 ----------------------------------- .xmodmap | 31 ----- .zathurarc | 0 .zshrc | 110 ---------------- bashrc | 114 ++++++++++++++++ make | 39 ++++++ mutt/.maillog | 230 ++++++++++++++++++++++++++++++++ mutt/colormutt | 12 ++ mutt/mailboxes | 1 + mutt/mailcap | 1 + mutt/muttrc | 56 ++++++++ tmux.conf | 3 + vifm/colorschemes | 37 ++++++ vifm/vifm-help.txt | 226 +++++++++++++++++++++++++++++++ vifm/vifmrc | 108 +++++++++++++++ vim/after/ftplugin/tex/folding.vim | 34 +++++ vim/after/ftplugin/vim/folding.vim | 25 ++++ vim/after/syntax/cpp.vim | 3 + vim/after/syntax/cpp.vim~ | 0 vim/after/syntax/tex.vim | 6 + vim/after/syntax/tex.vim~ | 6 + vim/colors/mine.vim | 29 ++++ vim/colors/mine.vim~ | 29 ++++ vim/mySnippets/python.snippets | 0 vim/mySnippets/vim.snippets | 3 + vim/vimrc | 256 ++++++++++++++++++++++++++++++++++++ xmodmap | 31 +++++ zathurarc | 0 zshrc | 122 +++++++++++++++++ 46 files changed, 1371 insertions(+), 800 deletions(-) delete mode 100644 .bashrc delete mode 100644 .colormutt delete mode 100755 .dotfilesrc delete mode 100644 .krystle.txt delete mode 100644 .mailcap delete mode 100644 .mailfilter delete mode 100644 .muttrc delete mode 100644 .mynotes delete mode 100644 .tmux.conf delete mode 100644 .vim/after/ftplugin/tex/folding.vim delete mode 100644 .vim/after/ftplugin/vim/folding.vim delete mode 100644 .vim/after/syntax/cpp.vim delete mode 100644 .vim/after/syntax/cpp.vim~ delete mode 100644 .vim/after/syntax/tex.vim delete mode 100644 .vim/after/syntax/tex.vim~ delete mode 100644 .vim/colors/mine.vim delete mode 100644 .vim/colors/mine.vim~ delete mode 100644 .vimrc delete mode 100644 .xmodmap delete mode 100644 .zathurarc delete mode 100644 .zshrc create mode 100644 bashrc create mode 100755 make create mode 100644 mutt/.maillog create mode 100644 mutt/colormutt create mode 100644 mutt/mailboxes create mode 100644 mutt/mailcap create mode 100644 mutt/muttrc create mode 100644 tmux.conf create mode 100644 vifm/colorschemes create mode 100644 vifm/vifm-help.txt create mode 100644 vifm/vifmrc create mode 100644 vim/after/ftplugin/tex/folding.vim create mode 100644 vim/after/ftplugin/vim/folding.vim create mode 100644 vim/after/syntax/cpp.vim create mode 100644 vim/after/syntax/cpp.vim~ create mode 100644 vim/after/syntax/tex.vim create mode 100644 vim/after/syntax/tex.vim~ create mode 100644 vim/colors/mine.vim create mode 100644 vim/colors/mine.vim~ create mode 100644 vim/mySnippets/python.snippets create mode 100644 vim/mySnippets/vim.snippets create mode 100644 vim/vimrc create mode 100644 xmodmap create mode 100644 zathurarc create mode 100644 zshrc diff --git a/.bashrc b/.bashrc deleted file mode 100644 index a5f83b7..0000000 --- a/.bashrc +++ /dev/null @@ -1,114 +0,0 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. -# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) -# for examples - -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth - -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# make less more friendly for non-text input files, see lesspipe(1) -[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-color) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -#force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# some more ls aliases -alias ll='ls -alF' -alias la='ls -A' -alias l='ls -CF' - -# Add an "alert" alias for long running commands. Use like so: -# sleep 10; alert -alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi diff --git a/.colormutt b/.colormutt deleted file mode 100644 index 41bf46d..0000000 --- a/.colormutt +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -h=`date +%H` - -if [ $h -lt 9 ]; then - theme=dark -elif [ $h -lt 18 ]; then - theme=light -else - theme=dark -fi - -echo "/home/urbain/mutt-colors-solarized/mutt-colors-solarized-"$theme"-16.muttrc" diff --git a/.dotfilesrc b/.dotfilesrc deleted file mode 100755 index da53b77..0000000 --- a/.dotfilesrc +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -dir=~/dotfiles -olddir=~/dotfiles_old - -# Files: bash, vim, zsh, mutt, vim, xmodmap, notes, fetchmail, maildrop, installation file. -files="bashrc vimrc zshrc muttrc colormutt vim xmodmap mynotes mailfilter krystle tmux.conf zathurarc dotfilesrc mailcap" - -rm -rf $olddir -mkdir -p $olddir - -cd $dir -for file in $files; do - echo $file - mv ~/.$file $olddir - ln -s $dir/.$file ~ -done - -# Fetchmailrc (protect sensitive information) -mv ~/.fetchmailrc $olddir -cp $dir/.fetchmailrc ~ -vim ~/.fetchmailrc -# read password -# sed -i 's/xx_change_me_xx/'$password'/g' ~/.fetchmailrc - -# SSMTP config -echo ssmtp.conf -sudo mv /etc/ssmtp/ssmtp.conf $olddir -sudo ln -s $dir/ssmtp.conf /etc/ssmtp/ - -# Permissions -sudo chmod 600 ~/.fetchmailrc -sudo chmod 600 $dir/.mailfilter - -sudo rm -rf .vim/bundle -mkdir .vim/bundle -git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle -vim +PluginInstall +qall diff --git a/.krystle.txt b/.krystle.txt deleted file mode 100644 index 0bae573..0000000 --- a/.krystle.txt +++ /dev/null @@ -1,18 +0,0 @@ -Dear Sir/Madam, - -I am writing to you to apply for the position of Analyst in the -Investments department of Blackrock. - -I am confident that my academic background, my experiences and my qualities are -ideal for a job in the in Investments at Blackrock. Through my intership at -Starcom MediaVest Group, I acquired strong leadership and communications -skills. While working there, I took the initiative to combine the group's work -in a PowerPoint presentation that I presented to the client, and successfully -managed to convince him to stay with Starcom for another year. My -communications skills were later reinforced during my master's in strategic -marketing at Imperial College London, which was heavily based on group projects. - -Yours faithfully, - -Krystle Acquah - diff --git a/.mailcap b/.mailcap deleted file mode 100644 index 7a38c95..0000000 --- a/.mailcap +++ /dev/null @@ -1 +0,0 @@ -text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput diff --git a/.mailfilter b/.mailfilter deleted file mode 100644 index a7c9743..0000000 --- a/.mailfilter +++ /dev/null @@ -1,8 +0,0 @@ -HOME=/home/urbain -DEFAULT=/home/urbain/.mail -logfile "$HOME/.maillog" - -# if (/^To:.*.ac.uk/) -# { -# to .mail/imperial -# } diff --git a/.muttrc b/.muttrc deleted file mode 100644 index 48280b0..0000000 --- a/.muttrc +++ /dev/null @@ -1,51 +0,0 @@ -source /usr/share/doc/mutt/examples/gpg.rc -set pgp_use_gpg_agent = yes -set pgp_sign_as = 08AC6A48 -set pgp_timeout = 3600 -set crypt_autosign = no -set crypt_replyencrypt = yes -set fcc_clear = yes - -set from = "u.vaes13@imperial.ac.uk" -set realname = "Urbain Vaes" -set use_from = yes -set envelope_from = "yes" - -set folder = "~/Mail" -set spoolfile = /home/urbain/.mail -set record = "+sent" -set postponed = "+postponed" -set move = no - -set header_cache = ~/.mutt/cache/headers -set message_cachedir = ~/.mutt/cache/bodies -set certificate_file = ~/.mutt/certificates - -set editor="vim" -set edit_headers - -set include=yes - -set sendmail="/usr/sbin/ssmtp" - -# Sorting options -set sort = threads -set sort_aux = reverse-last-date-received -set sort_browser = reverse-date - -# Colorscheme for inside mutt -source `sh /home/urbain/.colormutt` - -# macro index G "|fetchmail\n" -macro index G "!fetchmail \n" - -# HTML messages -auto_view text/html - -set reverse_alias -alias krystle Krystle Acquah -alias khoi Khoi Nguyen -alias me Urbain Vaes -alias amanda Amanda Diez -alias vaes Christophe & Nathalies Vaes -alias greg Supervisor diff --git a/.mynotes b/.mynotes deleted file mode 100644 index db2b35b..0000000 --- a/.mynotes +++ /dev/null @@ -1,29 +0,0 @@ -Money -- Expense claims -- Thames water -- Khoi: Oyster card - -To read -- Terence Tao measure -- Sobolev spaces -- Elliptic PDEs -- Probability theory - -To do -- Get Nino -- Change address bank -- British Gas -- Black Rock -- Stoch proc - -Expecting -- Taste card -- New Oyster card - -Courses -- Ergodic theory -- Sobolev spaces -- Elliptic PDEs - -Interesting -http://www.drbunsen.org/the-text-triumvirate/ diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 439680e..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,3 +0,0 @@ -set -g default-terminal "screen-256color" -set -g mode-mouse on -set -g mouse-resize-pane on diff --git a/.vim/after/ftplugin/tex/folding.vim b/.vim/after/ftplugin/tex/folding.vim deleted file mode 100644 index 2e8b612..0000000 --- a/.vim/after/ftplugin/tex/folding.vim +++ /dev/null @@ -1,34 +0,0 @@ -function! TexFolds() - let thisline = getline(v:lnum) - if match(thisline,'^\\chapter') >= 0 - return ">1" - elseif match(thisline,'^\\section') >= 0 - return ">1" - elseif match(thisline,'^\\subsection') >=0 - return ">1" - elseif match(thisline,'^\\subsubsection') >=0 - return ">1" - else - return "=" - endif -endfunction - -function! TexFoldText() - let startline = getline(v:foldstart) - let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"") - if match(startline,'^\\chapter') >= 0 - return '*' . title . '' - elseif match(startline,'^\\section') >= 0 - return ' # ' . title - elseif match(startline,'^\\subsection') >=0 - return ' ## ' . title - elseif match(startline,'^\\subsubsection') >=0 - return ' ### ' . title - else - echom "Error, fold not recognized" - endif -endfunction - -setlocal foldmethod=expr -setlocal foldexpr=TexFolds() -setlocal foldtext=TexFoldText() diff --git a/.vim/after/ftplugin/vim/folding.vim b/.vim/after/ftplugin/vim/folding.vim deleted file mode 100644 index 572f779..0000000 --- a/.vim/after/ftplugin/vim/folding.vim +++ /dev/null @@ -1,26 +0,0 @@ -function! VimFolds() - let thisline = getline(v:lnum) - if match(thisline,'^"" ') >= 0 - return ">1" - elseif match(thisline,'^" ') >=0 - return ">1" - else - return "=" - endif -endfunction - -function! VimFoldText() - let startline = getline(v:foldstart) - if match(startline,'^"" ') >= 0 - let title = substitute(startline,'^"" \(.*\)$','\1',"") - return '# ' . title - elseif match(startline,'^" ') >=0 - let title = substitute(startline,'^" \(.*\)$','\1',"") - return ' ## ' .title - endif -endfunction - -setlocal foldmethod=expr -setlocal foldexpr=VimFolds() -setlocal foldtext=VimFoldText() -hi link folded comment diff --git a/.vim/after/syntax/cpp.vim b/.vim/after/syntax/cpp.vim deleted file mode 100644 index 4da741d..0000000 --- a/.vim/after/syntax/cpp.vim +++ /dev/null @@ -1,3 +0,0 @@ -syntax keyword mPigroup pi -hi def link mPigroup Todo - diff --git a/.vim/after/syntax/cpp.vim~ b/.vim/after/syntax/cpp.vim~ deleted file mode 100644 index e69de29..0000000 diff --git a/.vim/after/syntax/tex.vim b/.vim/after/syntax/tex.vim deleted file mode 100644 index a40cc30..0000000 --- a/.vim/after/syntax/tex.vim +++ /dev/null @@ -1,6 +0,0 @@ -syn match texMathSymbol '\\arr\>' contained conceal cchar=← -syn match texMathSymbol '\\,' contained conceal cchar= -syn match texMathSymbol '\\mathcal' contained conceal cchar= -syn match texMathSymbol '\\text' contained conceal cchar= -syn match texMathSymbol '\\mathbb' contained conceal cchar= -syn match texMathSymbol '\\quad' contained conceal cchar= diff --git a/.vim/after/syntax/tex.vim~ b/.vim/after/syntax/tex.vim~ deleted file mode 100644 index 4e1d112..0000000 --- a/.vim/after/syntax/tex.vim~ +++ /dev/null @@ -1,6 +0,0 @@ -syn match texMathSymbol '\\arr\>' contained conceal cchar=← -syn match texMathSymbol '\\,' contained conceal cchar= -syn match texMathSymbol '\\mathcal' contained conceal cchar= -syn match texMathSymbol '\\text' contained conceal cchar= -syn match texMathSymbol '\\mathbb' contained conceal cchar= -syn match texMathSymbol '\\quad' contained conceal cchar= diff --git a/.vim/colors/mine.vim b/.vim/colors/mine.vim deleted file mode 100644 index 653682e..0000000 --- a/.vim/colors/mine.vim +++ /dev/null @@ -1,29 +0,0 @@ -" Vim color file -" Maintainer: Urbain -" Last Change: 2002/10/14 Mon 16:41. -" version: 1.0 -" This color scheme uses a light background. - -set background=light -hi clear -if exists("syntax_on") - syntax reset -endif - -let colors_name = "mine" - -" Syntax group -hi Comment gui=none guifg=#af5f00 -hi Normal guibg=white guifg=Black -hi Type gui=none guifg=#005f00 -hi Statement gui=none guifg=#5f0000 -hi Special guifg=Black -hi Constant guifg=Gray -hi Error guifg=Red guibg=White -hi Preproc guifg=Blue "\end -hi Constant guifg=Green "\ $$ -hi Identifier guifg=Blue "\begin -hi LineNr gui=none guifg=Gray -hi FoldColumn guibg=#F5F4FD -hi Todo guibg=white gui=underline,italic guifg=Red -hi Conceal guibg=White guifg=DarkGreen diff --git a/.vim/colors/mine.vim~ b/.vim/colors/mine.vim~ deleted file mode 100644 index 653682e..0000000 --- a/.vim/colors/mine.vim~ +++ /dev/null @@ -1,29 +0,0 @@ -" Vim color file -" Maintainer: Urbain -" Last Change: 2002/10/14 Mon 16:41. -" version: 1.0 -" This color scheme uses a light background. - -set background=light -hi clear -if exists("syntax_on") - syntax reset -endif - -let colors_name = "mine" - -" Syntax group -hi Comment gui=none guifg=#af5f00 -hi Normal guibg=white guifg=Black -hi Type gui=none guifg=#005f00 -hi Statement gui=none guifg=#5f0000 -hi Special guifg=Black -hi Constant guifg=Gray -hi Error guifg=Red guibg=White -hi Preproc guifg=Blue "\end -hi Constant guifg=Green "\ $$ -hi Identifier guifg=Blue "\begin -hi LineNr gui=none guifg=Gray -hi FoldColumn guibg=#F5F4FD -hi Todo guibg=white gui=underline,italic guifg=Red -hi Conceal guibg=White guifg=DarkGreen diff --git a/.vimrc b/.vimrc deleted file mode 100644 index ca1c063..0000000 --- a/.vimrc +++ /dev/null @@ -1,252 +0,0 @@ -"" Required by Vundle -set nocompatible -filetype off -set rtp+=~/.vim/bundle/vundle/ -call vundle#rc() - -"" Plugins -Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' -Plugin 'fugitive.vim' -Plugin 'UltiSnips' -Plugin 'kien/ctrlp.vim' -Plugin 'tpope/vim-surround' -Plugin 'scrooloose/nerdtree' -Plugin 'tommcdo/vim-exchange' -Plugin 'unimpaired.vim' -Plugin 'Tabular' -Plugin 'tComment' -Plugin 'Gundo' -Plugin 'altercation/vim-colors-solarized' -Plugin 'honza/vim-snippets' - -filetype plugin indent on - -"" Configuration - -" UltiSnips -let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsJumpForwardTrigger="" -let g:UltiSnipsJumpBackwardTrigger="" -let g:UltiSnipsEditSplit="horizontal" -let g:UltiSnipsSnippetsDir="~/.vim/UltiSnips" -let g:ctrlp_open_new_file = 't' -noremap :UltiSnipsEdit - -" Latex-Box -let g:tex_flavor='latex' -let g:tex_conceal= 'adgm' -let g:LatexBox_Folding=0 - -" Gundo -nnoremap :GundoToggle - -" Nerdtree -nnoremap :NERDTreeToggle -let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', - \ '\.fls$','\.bbl$','\.blg$', - \ '\.out$', '\.log$','\.aux$','\.sty$', - \ '\.fdb_latexmk$', '\.synctex.gz$','\.latexmain$'] - -" CTRL-P - -let g:ctrlp_map = '' -let g:ctrlp_by_filename = 1 -let g:ctrlp_working_path_mode = '' -let g:ctrlp_show_hidden = 1 - -"" Options - -" Tabs and indent -set smartindent -set nosmarttab -set expandtab -set tabstop=4 -set softtabstop=4 -set shiftwidth=4 -set autoindent -set cindent - -" Folds -set foldcolumn=0 -set foldenable -set foldmethod=expr -set foldlevel=0 - -" Search -set hlsearch -set incsearch - -" Back up files -set noswapfile -set nowritebackup -set undofile -set undodir=/home/urbain/.vimundo/ - -" Layout window -set nonumber -set ruler -set showcmd -set listchars=tab:▸\ ,eol:¬ -set fillchars=fold:\ ,vert:\ , -set showbreak=... -set colorcolumn=0 -set scrolloff=3 -if has('gui_running') - set t_Co=256 -else - set t_Co=256 -endif -set guitablabel=%N\ %t\ %M -set showcmd - -" Layout text -set wrap -set linebreak -set textwidth=0 -set conceallevel=2 -set guifont=Monaco\ 11 - -" Colorscheme -function! UpdateColorscheme() - if strftime("%H") >= 9 && strftime("%H") < 18 - set background=light - else - set background=dark - endif -endfunction -try | colorscheme solarized | catch | endtry -call UpdateColorscheme() -autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme() - -" Case and spell -set nospell -set smartcase -set ignorecase - -" General -set noautochdir -set wildmenu -set cpoptions+=I -set encoding=utf-8 - - -"" Custom mappings - -" Definition of leader and localleader -let mapleader = "\\" -let maplocalleader = "+" - -" Leader maps -nmap -nmap p -nmap t -nnoremap h :set hlsearch! -nnoremap n :set relativenumber! -nnoremap q :q! -nnoremap sv :source ~/.vimrc -nnoremap sc :source % -nnoremap w :w -nnoremap te :tabedit -nnoremap tn :tabnew -nnoremap to :tabonly - -" Other maps -nnoremap o -nnoremap O -nnoremap J mzJ`z -nnoremap - za -nnoremap 3 -nnoremap 3 - -nnoremap j gj -nnoremap k gk -nnoremap $ g$ -nnoremap ^ g^ -nnoremap gj j -nnoremap gk k -nnoremap g$ $ -nnoremap g^ ^ - -vnoremap j gj -vnoremap k gk -vnoremap $ g$ -vnoremap ^ g^ -vnoremap gj j -vnoremap gk k -vnoremap g$ $ -vnoremap g^ ^ - -" Convenient maps -" nnoremap e j -" nnoremap u k -" nnoremap j e -" nnoremap k u - -"" Latex -nmap LatexChangeEnv -let g:tex_fast="" - -" Synctex -function! LatexEvinceSearch() - execute "!cd " . LatexBox_GetTexRoot() . '; evince_vim_dbus.py EVINCE "`basename ' . LatexBox_GetOutputFile(). '`" ' . line('.') . ' "%:p"' -endfun - -command! LatexEvinceSearch call LatexEvinceSearch() - -autocmd FileType tex map :silent LatexEvinceSearch -autocmd Filetype tex call SetTexOptions() - -" Layout -hi Cursor guifg=white guibg=blue -hi iCursor guifg=black guibg=green -hi! link conceal normal - -"" Functions -function! Tex_ForwardSearchLaTeX() - let cmd = 'evince_forward_search ' . fnamemodify(LatexBox_GetMainTexFile(), ":p:r") . '.pdf ' . line(".") . ' ' . expand("%:p") - let output = system(cmd) -endfunction - -function! SetTexOptions() - - inoremap (( \left( - inoremap )) \right) - inoremap {{ \left\{ - inoremap }} \right\} - inoremap [[ \left[ - inoremap ]] \right] - inoremap == \,=\, - inoremap >> \,\geq\, - inoremap << \,\leq\, - inoremap ++ \,+\, - inoremap -- \,-\, - - imap `a \alpha - imap `b \beta - imap `g \gamma - imap `d \delta - imap `e \varepsilon - imap `z \zeta - imap `h \eta - imap `t \theta - imap `i \iota - imap `k \kappa - imap `l \lambda - imap `m \mu - imap `n \nu - imap `x \xi - imap `r \rho - imap `s \sigma - imap `f \phi - imap `p \pi - imap `w \omega - -endfunction - -"" Autocommands -augroup autorelead_vimrc - au! - au BufWritePost ~/.vimrc source ~/.vimrc -augroup END - diff --git a/.xmodmap b/.xmodmap deleted file mode 100644 index 7e5dd12..0000000 --- a/.xmodmap +++ /dev/null @@ -1,31 +0,0 @@ -# Remap dead key -xmodmap -e "keycode 94 = backslash asciicircum" - -# Make caps lock a modifier -xmodmap -e "clear Lock" -xmodmap -e "keycode 66 = Control_L" -xmodmap -e "add Control = Control_L" - - -xmodmap -e "keycode 94 = Mode_switch" - -# Numbers -xmodmap -e "keycode 65 = space space 0" -xmodmap -e "keycode 43 = d D 0" -xmodmap -e "keycode 39 = o O 1" -xmodmap -e "keycode 58 = m M 1" -xmodmap -e "keycode 40 = e E 2" -xmodmap -e "keycode 59 = w W 2" -xmodmap -e "keycode 41 = u U 3" -xmodmap -e "keycode 60 = v V 3" -xmodmap -e "keycode 44 = h H 4" -xmodmap -e "keycode 45 = t T 5" -xmodmap -e "keycode 46 = n N 6" -xmodmap -e "keycode 30 = g G 7" -xmodmap -e "keycode 31 = c C 8" -xmodmap -e "keycode 32 = r R 9" - -# Dollars, symbols hard to reach -xmodmap -e "keycode 47 = s S dollar" - -/home/urbain/xcape/xcape -e 'Control_L=Escape' diff --git a/.zathurarc b/.zathurarc deleted file mode 100644 index e69de29..0000000 diff --git a/.zshrc b/.zshrc deleted file mode 100644 index 5c5877c..0000000 --- a/.zshrc +++ /dev/null @@ -1,110 +0,0 @@ -# Key remapping - -# Path to your oh-my-zsh installation. -export ZSH=$HOME/.oh-my-zsh - -# Set name of the theme to load. -# Look in ~/.oh-my-zsh/themes/ -# Optionally, if you set this to "random", it'll load a random theme each -# time that oh-my-zsh is loaded. -ZSH_THEME="eastwood" - -# Uncomment the following line to use case-sensitive completion. -# CASE_SENSITIVE="true" - -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" - -# Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 - -# Uncomment the following line to disable colors in ls. -# DISABLE_LS_COLORS="true" - -# Uncomment the following line to disable auto-setting terminal title. -# DISABLE_AUTO_TITLE="true" - -# Uncomment the following line to enable command auto-correction. -ENABLE_CORRECTION="true" - -# Uncomment the following line to display red dots whilst waiting for completion. -COMPLETION_WAITING_DOTS="true" - -# Uncomment the following line if you want to disable marking untracked files -# under VCS as dirty. This makes repository status check for large repositories -# much, much faster. -# DISABLE_UNTRACKED_FILES_DIRTY="true" - -# Uncomment the following line if you want to change the command execution time -# stamp shown in the history command output. -# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" -# HIST_STAMPS="mm/dd/yyyy" - -# Would you like to use another custom folder than $ZSH/custom? -# ZSH_CUSTOM=/path/to/new-custom-folder - -# 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) -# Add wisely, as too many plugins slow down shell startup. -plugins=(vi-mode git) - -source $ZSH/oh-my-zsh.sh - -# User configuration - -export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" -# export MANPATH="/usr/local/man:$MANPATH" - -# You may need to manually set your language environment -# export LANG=en_US.UTF-8 - -export EDITOR=/usr/bin/vim - -# ssh -# export SSH_KEY_PATH="~/.ssh/dsa_id" - -# Set personal aliases, overriding those provided by oh-my-zsh libs, -# plugins, and themes. Aliases can be placed here, though oh-my-zsh -# users are encouraged to define aliases within the ZSH_CUSTOM folder. -# For a full list of active aliases, run `alias`. -# -# Example aliases -# alias zshconfig="mate ~/.zshrc" -# alias ohmyzsh="mate ~/.oh-my-zsh" - -alias -s vim=vim -alias -s cpp=vim -alias -s c=vim -alias -s tex=vim -alias -s pdf=zathura - -alias tmux="TERM=screen-256color-bce tmux" -alias g='git' -alias v=$EDITOR -alias u='cd ~/Dropbox/phd' -alias uc='cd ~/Dropbox/phd/programs' -alias up='cd ~/Dropbox/phd/presentations' -alias ul='cd ~/Dropbox/phd/literature' -alias ur='cd ~/Dropbox/phd/reports' -alias m='mutt' -alias f='fetchmail' - -# Fix smart search history -bindkey "^[[A" history-beginning-search-backward -bindkey "^[[B" history-beginning-search-forward - -sleep 1 -h=`date +%H` -if [ $h -lt 9 ]; then - xdotool key Alt+t p Down Return -elif [ $h -lt 18 ]; then - xdotool key Alt+t p Down Down Return -else - xdotool key Alt+t p Down Return -fi - -# setxkbmap -option ctrl:swapcaps -sh ~/.xmodmap -# ~/xcape/xcape -e 'Shift_L=Escape' -# ~/xcape/xcape -e 'Shift_R=Tab' diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..a5f83b7 --- /dev/null +++ b/bashrc @@ -0,0 +1,114 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# some more ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +# Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi diff --git a/make b/make new file mode 100755 index 0000000..2ece3d4 --- /dev/null +++ b/make @@ -0,0 +1,39 @@ +#!/bin/bash + +dir=~/dotfiles +olddir=~/dotfiles_old + +# Files to sync +files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc" + +rm -rf $olddir +mkdir -p $olddir + +cd $dir +for file in $files; do + echo $file + mv ~/.$file $olddir + ln -s $dir/$file ~/.$file +done + +# Fetchmailrc (protect sensitive information) +# mv ~/.fetchmailrc $olddir +# cp $dir/.fetchmailrc ~ +# vim ~/.fetchmailrc +# read password +# sed -i 's/xx_change_me_xx/'$password'/g' ~/.fetchmailrc + +# SSMTP config +echo ssmtp.conf +sudo mv /etc/ssmtp/ssmtp.conf $olddir +sudo ln -s $dir/ssmtp.conf /etc/ssmtp/ + +# Permissions +cd +sudo chmod 600 ~/.fetchmailrc +sudo chmod 600 $dir/.mailfilter + +sudo rm -rf .vim/bundle +mkdir .vim/bundle +git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle +vim +PluginInstall +qall diff --git a/mutt/.maillog b/mutt/.maillog new file mode 100644 index 0000000..07b9c59 --- /dev/null +++ b/mutt/.maillog @@ -0,0 +1,230 @@ +Date: Wed Oct 29 13:00:08 2014 +From: Choices Discounts +Subj: Cinema: Price Promotion +File: /home/urbain/.mail (17491) + +Date: Wed Oct 29 14:09:08 2014 +From: "Marshall, Richard L" +Subj: Daiwa Scholarships 2015: Language Learning, Homestay and Work +File: /home/urbain/.mail (7149) + +Date: Wed Oct 29 14:09:12 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11718) + +Date: Wed Oct 29 16:03:17 2014 +From: "Eggl, Maximilian" +Subj: Chess Club: Match Report +File: /home/urbain/.mail (23181) + +Date: Wed Oct 29 16:03:18 2014 +From: CAREERS +Subj: CAREERS: WorldQuant Imperial College Information Session Monday 3rd +File: /home/urbain/.mail (19493) + +Date: Wed Oct 29 16:03:20 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11720) + +Date: Wed Oct 29 16:09:55 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11720) + +Date: Wed Oct 29 16:29:36 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11717) + +Date: Wed Oct 29 16:56:42 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11720) + +Date: Wed Oct 29 16:58:14 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11720) + +Date: Wed Oct 29 20:15:00 2014 +From: Salvador Rodriguez-Lopez +Subj: M2PM1-Tutorial 3 +File: /home/urbain/.mail (6085) + +Date: Wed Oct 29 20:15:02 2014 +From: "Facebook" +Subj: Facebook login from "Chrome on Linux" +File: /home/urbain/.mail (11720) + +Date: Fri Oct 31 10:24:52 2014 +From: James Clear +Subj: Minimalism, Success, and the Curious Writing Habit of George R.R. Martin +File: /home/urbain/.mail (42928) + +Date: Fri Oct 31 10:24:53 2014 +From: An Introduction to Functional Analysis Course Team +Subj: Marking Coursework +File: /home/urbain/.mail (3559) + +Date: Fri Oct 31 10:24:54 2014 +From: Christophe&Nathalie Vaes +Subj: =?utf-8?Q?A_quelle_heure_fait-on_le_Skype,_Urb_ch=C3=A9ri_=3F=3F=3F=3F?= +File: /home/urbain/.mail (3154) + +Date: Fri Oct 31 10:24:55 2014 +From: "Svanidze, Rusudan" +Subj: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (471497) + +Date: Fri Oct 31 10:24:55 2014 +From: "Pryor, Gemma M" +Subj: Buying club membership +File: /home/urbain/.mail (44297) + +Date: Fri Oct 31 10:24:55 2014 +From: "Sisson, Chris D" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (13394) + +Date: Fri Oct 31 10:24:55 2014 +From: Salvador Rodriguez-Lopez +Subj: Re: M2PM1-Tutorial 3 +File: /home/urbain/.mail (141790) + +Date: Fri Oct 31 10:24:57 2014 +From: Grigoriy Volovskiy +Subj: WG: Re: M2PM1-Tutorial 3 +File: /home/urbain/.mail (12907) + +Date: Fri Oct 31 10:24:58 2014 +From: Grigoriy Volovskiy +Subj: WG: Tutorial 3 M2PM1-Real Analysis +File: /home/urbain/.mail (5777) + +Date: Fri Oct 31 10:34:08 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 12:11:54 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 12:11:54 2014 +From: "Svanidze, Rusudan" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (26349) + +Date: Fri Oct 31 12:11:54 2014 +From: "Svanidze, Rusudan" +Subj: FW: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (473371) + +Date: Fri Oct 31 13:32:40 2014 +From: "Bright Network" +Subj: Get ahead in Entrepreneurship: Your weekly bulletin +File: /home/urbain/.mail (59613) + +Date: Fri Oct 31 13:32:41 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 13:32:41 2014 +From: "Svanidze, Rusudan" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (26349) + +Date: Fri Oct 31 13:32:41 2014 +From: "Svanidze, Rusudan" +Subj: FW: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (473371) + +Date: Fri Oct 31 13:32:41 2014 +From: "Svanidze, Rusudan" +Subj: FW: Lost In Fathoms - General Public Seminar on Art & Science, +File: /home/urbain/.mail (23278) + +Date: Fri Oct 31 13:34:04 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 13:34:04 2014 +From: "Svanidze, Rusudan" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (26349) + +Date: Fri Oct 31 13:34:04 2014 +From: "Svanidze, Rusudan" +Subj: FW: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (473371) + +Date: Fri Oct 31 13:34:04 2014 +From: "Svanidze, Rusudan" +Subj: FW: Lost In Fathoms - General Public Seminar on Art & Science, +File: /home/urbain/.mail (23278) + +Date: Fri Oct 31 14:26:23 2014 +From: "Ingram, Michael" +Subj: [Swim-List] Synchro event +File: /home/urbain/.mail (30387) + +Date: Fri Oct 31 14:26:23 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 14:26:23 2014 +From: "Svanidze, Rusudan" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (26349) + +Date: Fri Oct 31 14:26:24 2014 +From: "Svanidze, Rusudan" +Subj: FW: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (473371) + +Date: Fri Oct 31 14:26:24 2014 +From: "Svanidze, Rusudan" +Subj: FW: Lost In Fathoms - General Public Seminar on Art & Science, +File: /home/urbain/.mail (23278) + +Date: Fri Oct 31 14:46:10 2014 +From: Grigoriy Volovskiy +Subj: +File: /home/urbain/.mail (298990) + +Date: Fri Oct 31 14:46:10 2014 +From: "Svanidze, Rusudan" +Subj: FW: Huxley Emergency toilet closures +File: /home/urbain/.mail (26349) + +Date: Fri Oct 31 14:46:10 2014 +From: "Svanidze, Rusudan" +Subj: FW: 3 Months Report - Research Plan Confirmation +File: /home/urbain/.mail (473371) + +Date: Fri Oct 31 14:46:10 2014 +From: "Svanidze, Rusudan" +Subj: FW: Lost In Fathoms - General Public Seminar on Art & Science, +File: /home/urbain/.mail (23278) + +Date: Fri Oct 31 14:46:11 2014 +From: "Cannon, Claudia M" +Subj: Seminars and Events Week Commencing Monday 3rd November 2014 +File: /home/urbain/.mail (144591) + diff --git a/mutt/colormutt b/mutt/colormutt new file mode 100644 index 0000000..41bf46d --- /dev/null +++ b/mutt/colormutt @@ -0,0 +1,12 @@ +#!/bin/bash +h=`date +%H` + +if [ $h -lt 9 ]; then + theme=dark +elif [ $h -lt 18 ]; then + theme=light +else + theme=dark +fi + +echo "/home/urbain/mutt-colors-solarized/mutt-colors-solarized-"$theme"-16.muttrc" diff --git a/mutt/mailboxes b/mutt/mailboxes new file mode 100644 index 0000000..da3cebf --- /dev/null +++ b/mutt/mailboxes @@ -0,0 +1 @@ +mailboxes "+Gmail/INBOX" "+Gmail/[Gmail].Sent Mail" "+Imperial/INBOX" "+Imperial/Sent Items" diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..7a38c95 --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1 @@ +text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput diff --git a/mutt/muttrc b/mutt/muttrc new file mode 100644 index 0000000..bc599e7 --- /dev/null +++ b/mutt/muttrc @@ -0,0 +1,56 @@ +# IMAP: offlineimap +set folder = "~/.mail" +source ~/.mutt/mailboxes +set spoolfile = "+account/INBOX" +set record = "+account/Sent\ Items" +set postponed = "+account/Drafts" + +source /usr/share/doc/mutt/examples/gpg.rc +set pgp_use_gpg_agent = yes +set pgp_sign_as = 08AC6A48 +set pgp_timeout = 3600 +set crypt_autosign = no +set crypt_replyencrypt = yes +set fcc_clear = yes + +set from = "u.vaes13@imperial.ac.uk" +set realname = "Urbain Vaes" +set use_from = yes +set envelope_from = "yes" + +# set folder = "~/Mail" +# set spoolfile = /home/urbain/.mail +# set record = "+sent" +# set postponed = "+postponed" +# set move = no + +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates + +set editor="vim" +set edit_headers +set include=yes +set sendmail="/usr/sbin/ssmtp" + +# Sorting options +set sort = threads +set sort_aux = reverse-last-date-received +set sort_browser = reverse-date + +# Colorscheme for inside mutt +source `sh /home/urbain/.mutt/colormutt` + +# macro index G "|fetchmail\n" +macro index G "!fetchmail \n" + +# HTML messages +auto_view text/html + +set reverse_alias +alias krystle Krystle Acquah +alias khoi Khoi Nguyen +alias me Urbain Vaes +alias amanda Amanda Diez +alias vaes Christophe & Nathalies Vaes +alias greg Supervisor diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..439680e --- /dev/null +++ b/tmux.conf @@ -0,0 +1,3 @@ +set -g default-terminal "screen-256color" +set -g mode-mouse on +set -g mouse-resize-pane on diff --git a/vifm/colorschemes b/vifm/colorschemes new file mode 100644 index 0000000..006bb44 --- /dev/null +++ b/vifm/colorschemes @@ -0,0 +1,37 @@ +# You can edit this file by hand. +# The # character at the beginning of a line comments out the line. +# Blank lines are ignored. + +# The Default color scheme is used for any directory that does not have +# a specified scheme. A color scheme set for a base directory will also +# be used for the sub directories. + +# The standard ncurses colors are: +# Black = 0 +# Red = 1 +# Green = 2 +# Yellow = 3 +# Blue = 4 +# Magenta = 5 +# Cyan = 6 +# White = 7 + +# COLORSCHEME=OneWordDescription +# DIRECTORY=/Full/Path/To/Base/Directory +# COLOR=Window_name=foreground_color_number=background_color_number + + +COLORSCHEME=Default +DIRECTORY=/ +COLOR=MENU=white=black +COLOR=BORDER=black=white +COLOR=WIN=white=black +COLOR=STATUS_BAR=white=black +COLOR=CURR_LINE=white=blue +COLOR=DIRECTORY=cyan=black +COLOR=LINK=yellow=black +COLOR=SOCKET=magenta=black +COLOR=DEVICE=red=black +COLOR=EXECUTABLE=green=black +COLOR=SELECTED=magenta=black +COLOR=CURRENT=blue=black diff --git a/vifm/vifm-help.txt b/vifm/vifm-help.txt new file mode 100644 index 0000000..2b6bbba --- /dev/null +++ b/vifm/vifm-help.txt @@ -0,0 +1,226 @@ +The basic vi key bindings are used to move through the files and popup + windows. + + k is up + j is down + + h is updir + l is handle file and is the same as Return. + + Ctrl-c or the Escape key will cancel most operations. + Ctrl-l will clear and redraw the screen. + + gg top of list + G bottom of list + cw change word is used to rename a file. + m [a-z][A-Z][0-9] to set bookmark + ' letter to goto bookmark + v start or stop visualy selecting files. This works with the j and k keys + for movement. This is different then in vi in that v in visual mode will + leave the selected files highlighted. If you want to clear the selected + files Ctrl-c or Esc will unselect the files. + dd - the default setting is to move the selected files to the trash + directory. + yy - will yank the selected files. + p - will copy the yanked files to the current directory or move the files + to the current directory if they were deleted with dd or :d or if the + files were yanked 'yy' from the Trash directory. + + Space or Tab to switch lists. + + Most movement commands also accept a count 12j would move down 12 lines. + [count] % percent of file list + [count] j or k + [count] G or gg + [count] dd or yy the count is from the current file downward. + :[count] user command is not yet implemented. + :[count] command + The only builtin :[count] command is :[count]d[elete]. :3d would delete + three files starting at the current file position moving down. + + :number - move to the line number :12 would move to the 12th line. + :0 move to the top of the list. + :$ move to the bottom of the list. + + Return or l - handle file + Default file type program or if on a directory enter the directory + + Ctrl-g toggles full file information window. + Ctrl-b - jump back one page. + Ctrl-f - jump forward one page. + + /regular expression pattern - will highlight all files matching the pattern + in the current file list. /\.c$ would highlight all the .c files. + N find previous match. + n find next match. + + Files can also be tagged or selected with 't'. Pressing 't' on a selected + file will unselect it. This can be used by itself to select files or with a + /search pattern or with visually selected files. + + :commands + :com is a menu of user commands + :com name action - will set a new user command + Unlike vim user commands do not have to start with a capital letter. + User commands are run in a shell by default. To run a command in + the background you must set it as a background command with & at the end + of the commands action. + :com rm rm %f & + + :apropos manpage - will create a menu with the results from the + apropos command. + :com! name action - will overwrite a preciously set command. + :delc command_name will remove the command_name user command + :fil regular_expression pattern will filter the files out of the directory + listing that match the regular expression. + :fil \.o$ - would filter all files ending in .o from the filelist. + :empty will permanently remove 'rm -fr' files from the Trash directory. + :locate filename - will create a menu with the results from the locate + command. + :sh will start a shell + :q or :x will exit vifm + :! program will execute the program in a shell + :!command & will run the process in the background. + programs that write to stdout like ls will create an error message + showing partial output of the command. + :!! same as :! but will pause the screen before returning to vifm. + :!!ls -l + :e load file into vi + :only - switch to a one window view. + :pwd - show the present working directory + :ch[ange] - create a menu window to alter a files properties. + :cd - change directory + :cd ~/bin + :s[ort] - popup menu of different sorting methods + :sp[lit] - switch to a two window view. + :his[tory] - popup menu of directories visited + :jobs - shows menu of current backgrounded processes. + :view - toggle on and off the quick file view. + :h[elp] - this crude help file + :marks - popup menu of bookmarks + :screen toggles whether to use the screen program or not. + :sync - change the other panel to the current panel directory. + + +command macros + %a user arguments + %f all of the selected files + %F all of the selected files in the other directory list. + %d current directory name + %D other file list directory name + :com mv mv %f %D + would set the mv command to mv all of the selected files to the other + directory. + + If you want a command to accept arguments you must use %a. + :com mkdir mkdir %a & + :com mygrep vim "+grep %a" + %a is simply replaced with the user arguments and the arguments are + considered to be optional. + :com lsl ls -l %a | less - would run ls -l | less with or without + an argument being given. + +search patterns can be set with :com name /pattern + :com backup /~$ + + + file filters + The basic vim folding key bindings are used for filtering files. + zO show the filtered files + zM Filter the files matching the filename filter. + zo show all the dot files + zm filter all the .dot files + zf filter all the selected files + This will work with all selecting methods. Visually selecting files, + using a / search pattern or in combination with 't'. + :fil[ter] regular expression + :in[vert] invert the filter + All directorys will show the ../ file no matter what the filter setting is + with the exception of the / directory. + Each file list has its own filter. + filtered files are not checked in / search or :commands + + file name filters can be set with :com name fil pattern + :com ofiles fil \.o$ + +Configuration. + + The default configuration file is ~/.vifm/vifmrc. + If you want to change any settings vifm must not be running when you edit + the file as it will overwrite any changes you make when it exits. + + Screen configuration. If you use the screen program, vifm can be configured + to use a new screen window for opening files or running :!programs. + +Misc. + Ctrl-c or Escape to clear all selected files + + vifm.vim is a vim plugin that allows the use of vifm from vim. It is + included in the source tarball but it is not installed by default and must + be manually placed in either the default vim/plugin directory or in + ~/.vim/plugin/ + To use vifm to load a file into a running vim use the following commands: + :Edit - open a file in the current buffer. + :Split - split the buffer and open a file. + :Vsplit - vertically split a buffer and open a file. + :Diff - open a file to compare to the current file using the vim :diff + command. + You can edit the vifm.vim script to change the command name used if they + conflict with other user commands. + + Starting options: + /full/path/to/directoryone - using vifm /usr/local will start vifm + with the /usr/local directory. The default is to start vifm in + the current directory. + /full/path/to/directorytwo - using two full paths will start vifm with + the first path in the left file list and the second path in the right + file list. + --version - will print the version number and exit. + --help - will show help file. + -f - will run vifm but selecting a file will write the file name to + ~/.vifm/vimfiles instead of opening the file. This is used for the + vifm.vim script to load files from vifm into a running vim. + +Menus + bookmarks escape or Ctrl-c to abort j and k to move through + dd on a bookmark to remove. + + sort menu j and k to move - Escape or Ctrl-c to clear - return or l to + select and exit the menu. + +Reserved :commands + ! + change + cd + cmap + com + d + delc + e + empty + fi + fil + file + filter + h + help + his + history + in + invert + map + marks + nmap + pw + pwd + q + s + screen + sh + sort + unmap + view + vifm + vmap + x + diff --git a/vifm/vifmrc b/vifm/vifmrc new file mode 100644 index 0000000..81f84fa --- /dev/null +++ b/vifm/vifmrc @@ -0,0 +1,108 @@ +# You can edit this file by hand. +# The # character at the beginning of a line comments out the line. +# Blank lines are ignored. +# The basic format for each item is shown with an example. +# The '=' character is used to separate fields within a single line. +# Most settings are true = 1 or false = 0. + +# This is the actual command used to start vi. The default is vi. +# If you would like to use another vi clone such as Vim, Elvis, or Vile +# you will need to change this setting. + +VI_COMMAND=vim +# VI_COMMAND=vim +# VI_COMMAND=elvis -G termcap +# VI_COMMAND=vile + +# Trash Directory +# The default is to move files that are deleted with dd or :d to +# the trash directory. 1 means use the trash directory 0 means +# just use rm. If you change this you will not be able to move +# files by deleting them and then using p to put the file in the new location. +# I recommend not changing this until you are familiar with vifm. +# This probably shouldn't be an option. + +USE_TRASH=1 + +# Show only one Window +# If you would like to start vifm with only one window set this to 1 + +USE_ONE_WINDOW=0 + +# Screen configuration. If you would like to use vifm with +# the screen program set this to 1. + +USE_SCREEN=0 + +# 1 means use color if the terminal supports it. +# 0 means don't use color even if supported. + +# This is how many files to show in the directory history menu. + +HISTORY_LENGTH=100 + +# The sort type is how the files will be sorted in the file listing. +# Sort by File Extension = 0 +# Sort by File Name = 1 +# Sort by Group ID = 2 +# Sort by Group Name = 3 +# Sort by Mode = 4 +# Sort by Owner ID = 5 +# Sort by Owner Name = 6 +# Sort by Size = 7 +# Sort by Time Accessed =8 +# Sort by Time Changed =9 +# Sort by Time Modified =10 +# This can be set with the :sort command in vifm. + +LEFT_WINDOW_SORT_TYPE=1 + +RIGHT_WINDOW_SORT_TYPE=1 + +# The regular expression used to filter files out of +# the directory listings. +# LWIN_FILTER=\.o$ and LWIN_INVERT=1 would filter out all +# of the .o files from the directory listing. LWIN_INVERT=0 +# would show only the .o files + +LWIN_FILTER=\.o$ +LWIN_INVERT=1 +RWIN_FILTER=\.o$ +RWIN_INVERT=1 + +# If you installed the vim.txt help file change this to 1. +# If would rather use a plain text help file set this to 0. + +USE_VIM_HELP=0 + +# If you would like to run an executable file when you +# press return on the file name set this to 1. + +RUN_EXECUTABLE=0 + +# BOOKMARKS=mark=/full/directory/path=filename + +BOOKMARKS=H=/home/urbain=../ +BOOKMARKS=m=/home/urbain/Dropbox/phd/literature/October 14=Shear_viscosity.pdf +BOOKMARKS=p=/home/urbain/Dropbox/phd=../ +BOOKMARKS=z=/home/urbain/.vifm=../ + +# COMMAND=command_name=action +# The following macros can be used in a command +# %a is replaced with the user arguments. +# %f the current selected file, or files. +# %F the current selected file, or files in the other directoy. +# %d the current directory name. +# %D the other window directory name. +# %m run the command in a menu window + + +# The file type is for the default programs to be used with +# a file extension. +# FILETYPE=description=extension1,extension2=defaultprogram, program2 +# FILETYPE=Web=html,htm,shtml=links,mozilla,elvis +# would set links as the default program for .html .htm .shtml files +# The other programs for the file type can be accessed with the :file command +# The command macros %f, %F, %d, %F may be used in the commands. +# The %a macro is ignored. To use a % you must put %%. + diff --git a/vim/after/ftplugin/tex/folding.vim b/vim/after/ftplugin/tex/folding.vim new file mode 100644 index 0000000..2e8b612 --- /dev/null +++ b/vim/after/ftplugin/tex/folding.vim @@ -0,0 +1,34 @@ +function! TexFolds() + let thisline = getline(v:lnum) + if match(thisline,'^\\chapter') >= 0 + return ">1" + elseif match(thisline,'^\\section') >= 0 + return ">1" + elseif match(thisline,'^\\subsection') >=0 + return ">1" + elseif match(thisline,'^\\subsubsection') >=0 + return ">1" + else + return "=" + endif +endfunction + +function! TexFoldText() + let startline = getline(v:foldstart) + let title = substitute(startline,'^.*{\(.*\)}.*$','\1',"") + if match(startline,'^\\chapter') >= 0 + return '*' . title . '' + elseif match(startline,'^\\section') >= 0 + return ' # ' . title + elseif match(startline,'^\\subsection') >=0 + return ' ## ' . title + elseif match(startline,'^\\subsubsection') >=0 + return ' ### ' . title + else + echom "Error, fold not recognized" + endif +endfunction + +setlocal foldmethod=expr +setlocal foldexpr=TexFolds() +setlocal foldtext=TexFoldText() diff --git a/vim/after/ftplugin/vim/folding.vim b/vim/after/ftplugin/vim/folding.vim new file mode 100644 index 0000000..773b38e --- /dev/null +++ b/vim/after/ftplugin/vim/folding.vim @@ -0,0 +1,25 @@ +function! VimFolds() + let thisline = getline(v:lnum) + if match(thisline,'^"" ') >= 0 + return ">1" + elseif match(thisline,'^" ') >=0 + return ">1" + else + return "=" + endif +endfunction + +function! VimFoldText() + let startline = getline(v:foldstart) + if match(startline,'^"" ') >= 0 + let title = substitute(startline,'^"" \(.*\)$','\1',"") + return '# ' . title + elseif match(startline,'^" ') >=0 + let title = substitute(startline,'^" \(.*\)$','\1',"") + return ' ## ' .title + endif +endfunction + +setlocal foldmethod=expr +setlocal foldexpr=VimFolds() +setlocal foldtext=VimFoldText() diff --git a/vim/after/syntax/cpp.vim b/vim/after/syntax/cpp.vim new file mode 100644 index 0000000..4da741d --- /dev/null +++ b/vim/after/syntax/cpp.vim @@ -0,0 +1,3 @@ +syntax keyword mPigroup pi +hi def link mPigroup Todo + diff --git a/vim/after/syntax/cpp.vim~ b/vim/after/syntax/cpp.vim~ new file mode 100644 index 0000000..e69de29 diff --git a/vim/after/syntax/tex.vim b/vim/after/syntax/tex.vim new file mode 100644 index 0000000..a40cc30 --- /dev/null +++ b/vim/after/syntax/tex.vim @@ -0,0 +1,6 @@ +syn match texMathSymbol '\\arr\>' contained conceal cchar=← +syn match texMathSymbol '\\,' contained conceal cchar= +syn match texMathSymbol '\\mathcal' contained conceal cchar= +syn match texMathSymbol '\\text' contained conceal cchar= +syn match texMathSymbol '\\mathbb' contained conceal cchar= +syn match texMathSymbol '\\quad' contained conceal cchar= diff --git a/vim/after/syntax/tex.vim~ b/vim/after/syntax/tex.vim~ new file mode 100644 index 0000000..4e1d112 --- /dev/null +++ b/vim/after/syntax/tex.vim~ @@ -0,0 +1,6 @@ +syn match texMathSymbol '\\arr\>' contained conceal cchar=← +syn match texMathSymbol '\\,' contained conceal cchar= +syn match texMathSymbol '\\mathcal' contained conceal cchar= +syn match texMathSymbol '\\text' contained conceal cchar= +syn match texMathSymbol '\\mathbb' contained conceal cchar= +syn match texMathSymbol '\\quad' contained conceal cchar= diff --git a/vim/colors/mine.vim b/vim/colors/mine.vim new file mode 100644 index 0000000..653682e --- /dev/null +++ b/vim/colors/mine.vim @@ -0,0 +1,29 @@ +" Vim color file +" Maintainer: Urbain +" Last Change: 2002/10/14 Mon 16:41. +" version: 1.0 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "mine" + +" Syntax group +hi Comment gui=none guifg=#af5f00 +hi Normal guibg=white guifg=Black +hi Type gui=none guifg=#005f00 +hi Statement gui=none guifg=#5f0000 +hi Special guifg=Black +hi Constant guifg=Gray +hi Error guifg=Red guibg=White +hi Preproc guifg=Blue "\end +hi Constant guifg=Green "\ $$ +hi Identifier guifg=Blue "\begin +hi LineNr gui=none guifg=Gray +hi FoldColumn guibg=#F5F4FD +hi Todo guibg=white gui=underline,italic guifg=Red +hi Conceal guibg=White guifg=DarkGreen diff --git a/vim/colors/mine.vim~ b/vim/colors/mine.vim~ new file mode 100644 index 0000000..653682e --- /dev/null +++ b/vim/colors/mine.vim~ @@ -0,0 +1,29 @@ +" Vim color file +" Maintainer: Urbain +" Last Change: 2002/10/14 Mon 16:41. +" version: 1.0 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "mine" + +" Syntax group +hi Comment gui=none guifg=#af5f00 +hi Normal guibg=white guifg=Black +hi Type gui=none guifg=#005f00 +hi Statement gui=none guifg=#5f0000 +hi Special guifg=Black +hi Constant guifg=Gray +hi Error guifg=Red guibg=White +hi Preproc guifg=Blue "\end +hi Constant guifg=Green "\ $$ +hi Identifier guifg=Blue "\begin +hi LineNr gui=none guifg=Gray +hi FoldColumn guibg=#F5F4FD +hi Todo guibg=white gui=underline,italic guifg=Red +hi Conceal guibg=White guifg=DarkGreen diff --git a/vim/mySnippets/python.snippets b/vim/mySnippets/python.snippets new file mode 100644 index 0000000..e69de29 diff --git a/vim/mySnippets/vim.snippets b/vim/mySnippets/vim.snippets new file mode 100644 index 0000000..41f9024 --- /dev/null +++ b/vim/mySnippets/vim.snippets @@ -0,0 +1,3 @@ +snippet test "Description" b +tste +endsnippet diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..1179bd9 --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,256 @@ +"" Required by Vundle +set nocompatible +filetype off +set rtp+=~/.vim/bundle/vundle/ +call vundle#rc() + +"" Plugins +Plugin 'gmarik/vundle' +Plugin 'LaTeX-Box-Team/latex-box' +Plugin 'fugitive.vim' +Plugin 'UltiSnips' +Plugin 'kien/ctrlp.vim' +Plugin 'tpope/vim-surround' +Plugin 'scrooloose/nerdtree' +Plugin 'tommcdo/vim-exchange' +Plugin 'unimpaired.vim' +Plugin 'Tabular' +Plugin 'tComment' +Plugin 'Gundo' +Plugin 'altercation/vim-colors-solarized' +Plugin 'honza/vim-snippets' + +filetype plugin indent on + +"" Configuration + +" UltiSnips +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" +let g:UltiSnipsListSnippets="" +let g:UltiSnipsEditSplit="horizontal" +let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" +let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] +let g:ctrlp_open_new_file = 't' +noremap :UltiSnipsEdit + +" Latex-Box +let g:tex_flavor='latex' +let g:tex_conceal= 'adgm' +let g:LatexBox_Folding=0 + +" Gundo +nnoremap :GundoToggle + +" Nerdtree +nnoremap :NERDTreeToggle +let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', + \ '\.fls$','\.bbl$','\.blg$', + \ '\.out$', '\.log$','\.aux$','\.sty$', + \ '\.fdb_latexmk$', '\.synctex.gz$','\.latexmain$'] + +" CTRL-P + +let g:ctrlp_map = '' +let g:ctrlp_by_filename = 1 +let g:ctrlp_working_path_mode = '' +let g:ctrlp_show_hidden = 1 + +"" Options + +" Tabs and indent +set smartindent +set nosmarttab +set expandtab +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set autoindent +set cindent + +" Folds +set foldcolumn=0 +set foldenable +set foldmethod=expr +set foldlevel=0 + +" Search +set hlsearch +set incsearch + +" Back up files +set noswapfile +set nowritebackup +set undofile +set undodir=/home/urbain/.vimundo/ + +" Layout window +set nonumber +set ruler +set showcmd +set listchars=tab:▸\ ,eol:¬ +set fillchars=fold:\ ,vert:\ , +set showbreak=... +set colorcolumn=0 +set scrolloff=0 +if has('gui_running') + set t_Co=256 +else + set t_Co=256 +endif +set guitablabel=%N\ %t\ %M +set showcmd + +" Layout text +set wrap +set linebreak +set textwidth=0 +set conceallevel=2 +set guifont=Monaco\ 11 + + +" Case and spell +set nospell +set smartcase +set ignorecase + +" General +set noautochdir +set wildmenu +set cpoptions+=I +set encoding=utf-8 + +"" Colorscheme +function! UpdateColorscheme() + try | colorscheme solarized | catch | endtry + if strftime("%H") >= 9 && strftime("%H") < 18 + set background=light + else + set background=dark + endif + + echom + + hi Cursor guifg=white guibg=blue + hi iCursor guifg=black guibg=green + hi! link conceal normal + hi! link folded comment +endfunction +autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme() + +"" Custom mappings + +" Definition of leader and localleader +let mapleader = "\\" +let maplocalleader = "+" + +" Leader maps +nmap +nmap p +nmap t +nnoremap h :set hlsearch! +nnoremap n :set relativenumber! +nnoremap q :q! +nnoremap sv :source ~/.vimrc +nnoremap sc :source % +nnoremap w :w +nnoremap te :tabedit +nnoremap tn :tabnew +nnoremap to :tabonly + +" Other maps +nnoremap o +nnoremap O +nnoremap J mzJ`z +nnoremap - za +nnoremap 3 +nnoremap 3 + +nnoremap j gj +nnoremap k gk +nnoremap $ g$ +nnoremap ^ g^ +nnoremap gj j +nnoremap gk k +nnoremap g$ $ +nnoremap g^ ^ + +vnoremap j gj +vnoremap k gk +vnoremap $ g$ +vnoremap ^ g^ +vnoremap gj j +vnoremap gk k +vnoremap g$ $ +vnoremap g^ ^ + +" Convenient maps +" nnoremap e j +" nnoremap u k +" nnoremap j e +" nnoremap k u + +"" Latex +nmap LatexChangeEnv +let g:tex_fast="" + +" Synctex +function! LatexEvinceSearch() + execute "!cd " . LatexBox_GetTexRoot() . '; evince_vim_dbus.py EVINCE "`basename ' . LatexBox_GetOutputFile(). '`" ' . line('.') . ' "%:p"' +endfun + +command! LatexEvinceSearch call LatexEvinceSearch() + +autocmd FileType tex map :silent LatexEvinceSearch +autocmd Filetype tex call SetTexOptions() + + +"" Functions +function! Tex_ForwardSearchLaTeX() + let cmd = 'evince_forward_search ' . fnamemodify(LatexBox_GetMainTexFile(), ":p:r") . '.pdf ' . line(".") . ' ' . expand("%:p") + let output = system(cmd) +endfunction + +function! SetTexOptions() + + inoremap (( \left( + inoremap )) \right) + inoremap {{ \left\{ + inoremap }} \right\} + inoremap [[ \left[ + inoremap ]] \right] + inoremap == \,=\, + inoremap >> \,\geq\, + inoremap << \,\leq\, + inoremap ++ \,+\, + inoremap -- \,-\, + + imap `a \alpha + imap `b \beta + imap `g \gamma + imap `d \delta + imap `e \varepsilon + imap `z \zeta + imap `h \eta + imap `t \theta + imap `i \iota + imap `k \kappa + imap `l \lambda + imap `m \mu + imap `n \nu + imap `x \xi + imap `r \rho + imap `s \sigma + imap `f \phi + imap `p \pi + imap `w \omega + +endfunction + +"" Autocommands +augroup autorelead_vimrc + au! + au BufWritePost ~/.vimrc source ~/.vimrc +augroup END + diff --git a/xmodmap b/xmodmap new file mode 100644 index 0000000..7e5dd12 --- /dev/null +++ b/xmodmap @@ -0,0 +1,31 @@ +# Remap dead key +xmodmap -e "keycode 94 = backslash asciicircum" + +# Make caps lock a modifier +xmodmap -e "clear Lock" +xmodmap -e "keycode 66 = Control_L" +xmodmap -e "add Control = Control_L" + + +xmodmap -e "keycode 94 = Mode_switch" + +# Numbers +xmodmap -e "keycode 65 = space space 0" +xmodmap -e "keycode 43 = d D 0" +xmodmap -e "keycode 39 = o O 1" +xmodmap -e "keycode 58 = m M 1" +xmodmap -e "keycode 40 = e E 2" +xmodmap -e "keycode 59 = w W 2" +xmodmap -e "keycode 41 = u U 3" +xmodmap -e "keycode 60 = v V 3" +xmodmap -e "keycode 44 = h H 4" +xmodmap -e "keycode 45 = t T 5" +xmodmap -e "keycode 46 = n N 6" +xmodmap -e "keycode 30 = g G 7" +xmodmap -e "keycode 31 = c C 8" +xmodmap -e "keycode 32 = r R 9" + +# Dollars, symbols hard to reach +xmodmap -e "keycode 47 = s S dollar" + +/home/urbain/xcape/xcape -e 'Control_L=Escape' diff --git a/zathurarc b/zathurarc new file mode 100644 index 0000000..e69de29 diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..102676a --- /dev/null +++ b/zshrc @@ -0,0 +1,122 @@ +# Key remapping + +# Path to your oh-my-zsh installation. +export ZSH=$HOME/.oh-my-zsh + +# Set name of the theme to load. +# Look in ~/.oh-my-zsh/themes/ +# Optionally, if you set this to "random", it'll load a random theme each +# time that oh-my-zsh is loaded. +ZSH_THEME="eastwood" + +# Uncomment the following line to use case-sensitive completion. +# CASE_SENSITIVE="true" + +# Uncomment the following line to disable bi-weekly auto-update checks. +# DISABLE_AUTO_UPDATE="true" + +# Uncomment the following line to change how often to auto-update (in days). +# export UPDATE_ZSH_DAYS=13 + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# HIST_STAMPS="mm/dd/yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# 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) +# Add wisely, as too many plugins slow down shell startup. +plugins=(vi-mode git) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" +# export MANPATH="/usr/local/man:$MANPATH" + +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 + +export EDITOR=/usr/bin/vim + +# ssh +# export SSH_KEY_PATH="~/.ssh/dsa_id" + +# Set personal aliases, overriding those provided by oh-my-zsh libs, +# plugins, and themes. Aliases can be placed here, though oh-my-zsh +# users are encouraged to define aliases within the ZSH_CUSTOM folder. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" + +alias -s vim=vim +alias -s cpp=vim +alias -s c=vim +alias -s tex=vim +alias -s pdf=zathura +alias -s py=vim + +alias tmux="TERM=screen-256color-bce tmux" +alias g='git' +alias v=$EDITOR +alias u='cd ~/Dropbox/phd' +alias uc='cd ~/Dropbox/phd/programs' +alias up='cd ~/Dropbox/phd/presentations' +alias ul='cd ~/Dropbox/phd/literature' +alias ur='cd ~/Dropbox/phd/reports' +alias m='mutt' +alias f='fetchmail' +alias a='vifm' +alias mn='vim .mynotes' + +# Configuration +alias zconf='vim ~/.zshrc' +alias mconf='vim ~/.mutt/muttrc' +alias vconf='vim ~/.vim/vimrc' +alias zaconf='vim ~/.zathurarc' +alias tconf='vim ~/.tmux.conf' +alias viconf='vim ~/.vifm/vifmrc' +alias oconf='vim ~/.offlineimaprc' + +# Fix smart search history +bindkey "^[[A" history-beginning-search-backward +bindkey "^[[B" history-beginning-search-forward + +sleep 1 +h=`date +%H` +if [ $h -lt 9 ]; then + xdotool key Alt+t p Down Return +elif [ $h -lt 18 ]; then + xdotool key Alt+t p Down Down Return +else + xdotool key Alt+t p Down Return +fi + +# setxkbmap -option ctrl:swapcaps +sh ~/.xmodmap +# ~/xcape/xcape -e 'Shift_L=Escape' +# ~/xcape/xcape -e 'Shift_R=Tab' -- cgit v1.2.3