Merge branch 'master' of gitlab.mathux.org:Mathieu/config
This commit is contained in:
commit
35073bc88b
@ -232,6 +232,9 @@
|
|||||||
<desktop>4</desktop>
|
<desktop>4</desktop>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
<keybind key="W-F12">
|
||||||
|
<action name="Reconfigure"/>
|
||||||
|
</keybind>
|
||||||
<keybind key="W-d">
|
<keybind key="W-d">
|
||||||
<action name="ToggleShowDesktop"/>
|
<action name="ToggleShowDesktop"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
@ -320,12 +323,12 @@
|
|||||||
<!-- Find the sound card id by looking into /proc/asound/cards and pass it by using the -c option-->
|
<!-- Find the sound card id by looking into /proc/asound/cards and pass it by using the -c option-->
|
||||||
<keybind key="XF86AudioRaiseVolume">
|
<keybind key="XF86AudioRaiseVolume">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<execute>amixer -c1 set Master 5+ unmute</execute>
|
<execute>amixer -c0 set Master 5+ unmute</execute>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="XF86AudioLowerVolume">
|
<keybind key="XF86AudioLowerVolume">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<execute>amixer -c1 set Master 5- unmute</execute>
|
<execute>amixer -c0 set Master 5- unmute</execute>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="C-A-l">
|
<keybind key="C-A-l">
|
||||||
|
@ -51,6 +51,8 @@ set-option -g visual-bell on
|
|||||||
#bind-key -t vi-copy PPage page-up
|
#bind-key -t vi-copy PPage page-up
|
||||||
#bind-key -t vi-copy NPage page-down
|
#bind-key -t vi-copy NPage page-down
|
||||||
|
|
||||||
|
set-window-option -g xterm-keys on
|
||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
||||||
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 8db3bcb5921103f0eb6de361c8b25cc03cb350b5
|
Subproject commit 4984767509e3d05ca051e253c8a8b37de784be45
|
52
.vimrc
52
.vimrc
@ -36,8 +36,21 @@
|
|||||||
"""""""""""
|
"""""""""""
|
||||||
" disable vi-compatible mode
|
" disable vi-compatible mode
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
|
" Switch syntax highlighting on when the terminal has colors or when using the
|
||||||
|
" GUI (which always has colors).
|
||||||
|
if &t_Co > 2 || has("gui_running")
|
||||||
|
" Revert with ":syntax off".
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
" I like highlighting strings inside C comments.
|
||||||
|
" Revert with ":unlet c_comment_strings".
|
||||||
|
let c_comment_strings=1
|
||||||
|
endif
|
||||||
|
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
" enable file type detection and do language-dependent indenting
|
||||||
|
filetype plugin indent on
|
||||||
"set clipboard=unnamed
|
"set clipboard=unnamed
|
||||||
""""""""
|
""""""""
|
||||||
" SAVE "
|
" SAVE "
|
||||||
@ -46,15 +59,23 @@ filetype plugin on
|
|||||||
set nobackup
|
set nobackup
|
||||||
" save before compilation
|
" save before compilation
|
||||||
set autowrite
|
set autowrite
|
||||||
" jump to last known position when reopening a file
|
" Put these in an autocmd group, so that you can revert them with:
|
||||||
if has("autocmd")
|
" ":augroup vimStartup | au! | augroup END"
|
||||||
|
augroup vimStartup
|
||||||
|
au!
|
||||||
|
|
||||||
|
" When editing a file, always jump to the last known cursor position.
|
||||||
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
|
" (happens when dropping a file on gvim).
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
|
||||||
\ execute "normal! g`\"" |
|
\ exe "normal! g`\"" |
|
||||||
\ endif
|
\ endif
|
||||||
endif
|
|
||||||
|
augroup END
|
||||||
|
|
||||||
" command line history
|
" command line history
|
||||||
set history=50
|
set history=200
|
||||||
|
|
||||||
" Check that file have not been changed
|
" Check that file have not been changed
|
||||||
" CursorHold : after cursor move
|
" CursorHold : after cursor move
|
||||||
@ -98,6 +119,8 @@ set number
|
|||||||
set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Tagname_By_Line()}]%)%3.(\ %)%-14.(%l,%c%V%)\ %P
|
set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Tagname_By_Line()}]%)%3.(\ %)%-14.(%l,%c%V%)\ %P
|
||||||
" always display status line
|
" always display status line
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
set showcmd " display incomplete commands
|
||||||
|
set wildmenu " display completion matches in a status line
|
||||||
|
|
||||||
" show bad white spaces
|
" show bad white spaces
|
||||||
let c_space_errors = 1
|
let c_space_errors = 1
|
||||||
@ -158,8 +181,6 @@ augroup Binary
|
|||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
" enable file type detection and do language-dependent indenting
|
|
||||||
" filetype plugin indent on
|
|
||||||
" detect indentation see http://www.freehackers.org/Indent_Finder
|
" detect indentation see http://www.freehackers.org/Indent_Finder
|
||||||
if has('python')
|
if has('python')
|
||||||
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
||||||
@ -335,7 +356,9 @@ imap <M-S-F1> <Esc><M-S-F1>
|
|||||||
" show current changes with F10
|
" show current changes with F10
|
||||||
command! DiffOrig
|
command! DiffOrig
|
||||||
\ vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
|
\ vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
|
||||||
|
\ | wincmd p | diffthis
|
||||||
map <M-F10> :DiffOrig<CR>
|
map <M-F10> :DiffOrig<CR>
|
||||||
|
|
||||||
imap <M-F10> <ESC><M-F10>a
|
imap <M-F10> <ESC><M-F10>a
|
||||||
" show git diff when committing
|
" show git diff when committing
|
||||||
let g:git_diff_spawn_mode = 1
|
let g:git_diff_spawn_mode = 1
|
||||||
@ -371,12 +394,9 @@ nmap <S-F10> zo<CR><CR>
|
|||||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"Omni-completion par CTRL-X_CTRL-O
|
"Omni-completion par CTRL-X_CTRL-O
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
filetype plugin on
|
|
||||||
set omnifunc=syntaxcomplete#Complete
|
set omnifunc=syntaxcomplete#Complete
|
||||||
|
|
||||||
" Enable omnicppcompletion
|
" Enable omnicppcompletion
|
||||||
set nocp
|
|
||||||
filetype plugin on
|
|
||||||
let OmniCpp_ShowAccess = 0
|
let OmniCpp_ShowAccess = 0
|
||||||
let OmniCpp_LocalSearchDecl=1
|
let OmniCpp_LocalSearchDecl=1
|
||||||
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
||||||
@ -433,6 +453,10 @@ if filereadable(expand('~/.vimrc.local'))
|
|||||||
source ~/.vimrc.local
|
source ~/.vimrc.local
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
""""""""""
|
||||||
|
" W3m
|
||||||
|
""""""""""
|
||||||
|
let g:w3m#external_browser = 'firefox'
|
||||||
|
|
||||||
""""""""""
|
""""""""""
|
||||||
" Debug
|
" Debug
|
||||||
@ -534,4 +558,10 @@ Plugin 'tmhedberg/matchit'
|
|||||||
|
|
||||||
" Kernel Formatting
|
" Kernel Formatting
|
||||||
Plugin 'gregkh/kernel-coding-style.git'
|
Plugin 'gregkh/kernel-coding-style.git'
|
||||||
|
|
||||||
|
" Web browsing
|
||||||
|
Plugin 'yuratomo/w3m.vim'
|
||||||
|
|
||||||
|
" Recognize Key in screen/tmux
|
||||||
|
Plugin 'drmikehenry/vim-fixkey'
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
@ -18,10 +18,7 @@ export ANDROID_DIR=/home/mathieu/android/android-sdk-linux_x86-1.5_r1
|
|||||||
export ANDROID_SKD=/opt/android-sdk/platforms/android-4
|
export ANDROID_SKD=/opt/android-sdk/platforms/android-4
|
||||||
export ANDROID_NDK=/opt/android-ndk
|
export ANDROID_NDK=/opt/android-ndk
|
||||||
#export PATH=$ANDROID_DIR/tools:$PATH
|
#export PATH=$ANDROID_DIR/tools:$PATH
|
||||||
#export JAVA_HOME=/usr/lib/jvm/java-6-sun
|
export PATH=$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK:$ECLIPSE_HOME:$PATH
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk
|
|
||||||
export CATALINA_HOME=/usr/share/tomcat6
|
|
||||||
export PATH=$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK:$ECLIPSE_HOME:$PATH
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user