Configuration for tmux and screen + vimrc grep improved.
This commit is contained in:
2
config/.screenrc
Normal file
2
config/.screenrc
Normal file
@@ -0,0 +1,2 @@
|
||||
defscrollback 10000
|
||||
|
||||
29
config/.tmux.conf
Normal file
29
config/.tmux.conf
Normal 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'
|
||||
|
||||
@@ -314,7 +314,8 @@ endif
|
||||
"
|
||||
|
||||
" 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.
|
||||
map <silent> <C-F3> :tabnew<CR>
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user