Configuration for tmux and screen + vimrc grep improved.

This commit is contained in:
Vahagn Khachatryan
2015-12-04 13:13:27 -05:00
parent f4c28be333
commit 00a78b192a
3 changed files with 33 additions and 1 deletions

2
config/.screenrc Normal file
View File

@@ -0,0 +1,2 @@
defscrollback 10000

29
config/.tmux.conf Normal file
View File

@@ -0,0 +1,29 @@
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set-option -g history-limit 10000
set -g status-keys vi
setw -g mode-keys vi
set -g status-position top
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set -g mode-mouse off
bind m \
set -g mode-mouse on \;\
set -g mouse-resize=pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
bind m \
set -g mouse-resize=pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'

View File

@@ -314,7 +314,8 @@ endif
" "
" F4 grep the word under cursor. " F4 grep the word under cursor.
map <F4> :execute "grep " . expand("<cword>") . " -r *.h *.cpp *.c *.f" <Bar> cw<CR> "map <F4> :execute "grep " . expand("<cword>") . " -r *.h *.cpp *.c *.f" <Bar> cw<CR>
map <F4> :execute "grep " . expand("<cword>") . " -r --include \*.h --include \*.cpp --include \*.c --include \*.f ." <Bar> cw<CR>
" Create a new tab. " Create a new tab.
map <silent> <C-F3> :tabnew<CR> map <silent> <C-F3> :tabnew<CR>
" "