From 3c2961a0d7c16407428b1f8bdae3f9810ebf2049 Mon Sep 17 00:00:00 2001 From: Blubber Date: Mon, 10 Oct 2016 00:29:44 +0200 Subject: tmux changes prefix to C-s; vim changed leader to 'S' (capital s) --- .bashrc.files/settings | 5 +++++ .gitconfig | 2 ++ .tmux.conf | 6 +++--- .vim/vimrc_files/keymaps.vim | 31 +++++++++++++++++++------------ .vim/vimrc_files/vundle.vim | 2 ++ 5 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 .bashrc.files/settings diff --git a/.bashrc.files/settings b/.bashrc.files/settings new file mode 100644 index 0000000..ad9c4ad --- /dev/null +++ b/.bashrc.files/settings @@ -0,0 +1,5 @@ +# dotfiles -- .bashrc/settings +# author: johannst + +# disable sticky mode +stty -ixon diff --git a/.gitconfig b/.gitconfig index 3faff9c..e4dca34 100644 --- a/.gitconfig +++ b/.gitconfig @@ -8,3 +8,5 @@ editor = vim [diff] tool = vimdiff +[difftool] + prompt = false diff --git a/.tmux.conf b/.tmux.conf index 93b92cc..30528ef 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,7 +1,7 @@ ### Basic Settings # re-map prefix key -set -g prefix C-x +set -g prefix C-s bind-key a send-prefix # for nested tmux sessions # re-source tmux.conf bind-key r source-file ~/.tmux.conf @@ -18,8 +18,8 @@ setw -g mouse on # default TERM set -g default-terminal "screen-256color" # split settings -bind-key s split-window -h -bind-key h split-window +bind-key v split-window -h +bind-key s split-window # move between splits bind-key k select-pane -U bind-key j select-pane -D diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index f61663f..d520ad7 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -2,7 +2,8 @@ " author: johannst " set leader key -let mapleader="," +"execute "set =\es" +let mapleader="S" " re-source .vimrc map v :source ~/.vimrc @@ -20,33 +21,39 @@ noremap q :q map f mzgg=G`z " navigate between different splits -map j -map k -map l -map h +map j +map k +map l +map h +map j +map k +map l +map h " resize splits -map 5- -map 5+ -map 5< -map 5> +"map 5- +"map 5+ +"map 5< +"map 5> " navigate between different buffers nnoremap :bprevious nnoremap :bnext +nnoremap :bprevious +nnoremap :bnext " ctrl-ae jump to line start/end nnoremap 0 nnoremap $ -inoremap 0 -inoremap $ +inoremap 0 +inoremap $ vnoremap 0 vnoremap $ cnoremap cnoremap " Shortcut to toggle relative numbering mode -nnoremap :call ToggleRelativeNumber() +nnoremap :call ToggleRelativeNumber() " add a marker fold snippet (for C/C++) nnoremap o//{{{ o//}}}A diff --git a/.vim/vimrc_files/vundle.vim b/.vim/vimrc_files/vundle.vim index eb568ef..6b8b21a 100644 --- a/.vim/vimrc_files/vundle.vim +++ b/.vim/vimrc_files/vundle.vim @@ -18,6 +18,8 @@ Plugin 'vim-airline/vim-airline-themes' Plugin 'majutsushi/tagbar' +Plugin 'kien/ctrlp.vim' + " c++ modifief headers: http://www.vim.org/scripts/script.php?script_id=2358 "Plugin 'vim-scripts/OmniCppComplete' -- cgit v1.2.3