Browse Source

add tmux_start.sh and update gdb_dashboard

master
dummy 8 years ago
parent
commit
a1fc96e1b3
  1. 4
      .gdbinit.d/gdbdashbard.conf
  2. 6
      .tmux.conf
  3. 29
      .vimrc
  4. 3
      sync.sh
  5. 3
      tmux_start.sh

4
.gdbinit.d/gdbdashbard.conf

@ -1,6 +1,6 @@
# auto generated by GDB dashboard # auto generated by GDB dashboard
dashboard -layout source expressions stack assembly memory !history !registers !threads dashboard -layout assembly !registers stack memory source expressions !history !threads
dashboard -style syntax_highlighting 'rrt' dashboard -style syntax_highlighting 'rrt'
dashboard -style style_low '0;37' dashboard -style style_low '0;37'
dashboard source -style context 15 #dashboard source -style context 15

6
.tmux.conf

@ -1,11 +1,15 @@
setw -g xterm-keys on setw -g xterm-keys on
set -g default-terminal "screen-256color"
set-option -g prefix C-a set-option -g prefix C-a
bind-key C-a last-window bind-key C-a last-window
set-window-option -g mode-keys vi set-window-option -g mode-keys vi
set -s escape-time 50 set -s escape-time 50
# colors
set -g default-terminal "screen-256color"
set -g status-bg black
set -g status-fg white
####################################### #######################################
# MOUSE SCROLL WHEEL # MOUSE SCROLL WHEEL

29
.vimrc

@ -1,5 +1,5 @@
" "
" Begin Vundle config " Begin Vundle config
" https://github.com/VundleVim/Vundle.vim " https://github.com/VundleVim/Vundle.vim
" "
set nocompatible set nocompatible
@ -34,6 +34,7 @@ syntax on
colorscheme deus colorscheme deus
set hlsearch set hlsearch
set nowrap
" don't clutter directories with backup files " don't clutter directories with backup files
set nobackup set nobackup
@ -57,23 +58,27 @@ set wildmenu
set ttimeoutlen=10 set ttimeoutlen=10
" line numbering gutter " line numbering gutter
set number set nonu
set numberwidth=3 "set number
set cpoptions+=n " use gutter for wrapped lines "set numberwidth=3
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE "set cpoptions+=n " use gutter for wrapped lines
"highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
" airline plugin stuffs " airline plugin stuffs
set laststatus=2 set laststatus=2
let g:airline#extensions#tabline#enabled = 1 "let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'default' "let g:airline#extensions#tabline#formatter = 'default'
let g:airline_section_a = airline#section#create(['mode',' ','branch'])
let g:airline_section_b = airline#section#create(['hunks', 'branch'])
"let g:airline_section_c = '%{getcwd()}'
let g:airline_theme='bubblegum' let g:airline_theme='bubblegum'
let g:airline_left_sep = '' let g:airline_left_sep = ''
let g:airline_left_alt_sep = '' let g:airline_left_alt_sep = ''
let g:airline_right_sep = '' let g:airline_right_sep = ''
let g:airline_right_altsep = '' let g:airline_right_altsep = ''
"let g:airline_section_c = '%{getcwd()}' "let g:airline_section_warning = '' " disable whitespace warnings
let g:airline_section_warning = '' " disable whitespace warnings
"let g:airline_powerline_fonts = 1 "let g:airline_powerline_fonts = 1
let g:airline_symbols.maxlinenr = ''
" custom keybinds " custom keybinds
" C-PageUp/Down conflicts with xfce-terminal, so there is a trick to fixing " C-PageUp/Down conflicts with xfce-terminal, so there is a trick to fixing
@ -90,7 +95,7 @@ map <F6> :ccl<CR>
map <F2> :cn<CR> map <F2> :cn<CR>
nmap <F4> :bp\|bd #<CR> nmap <F4> :bp\|bd #<CR>
" AsyncRun " AsyncRun
" https://github.com/skywind3000/asyncrun.vim " https://github.com/skywind3000/asyncrun.vim
" map <F5> :AsyncRun -cwd=<root> -save=2 make<CR> " map <F5> :AsyncRun -cwd=<root> -save=2 make<CR>
map <F5> :AsyncRun -cwd=<root> -save=2 make<CR> map <F5> :AsyncRun -cwd=<root> -save=2 make<CR>
@ -98,7 +103,7 @@ map <F5> :AsyncRun -cwd=<root> -save=2 make<CR>
augroup vimrc augroup vimrc
" remove all vimrc autocommands " remove all vimrc autocommands
autocmd! autocmd!
autocmd QuickFixCmdPost * copen 8 autocmd QuickFixCmdPost * copen 16
" Don't screw up folds when inserting text that might affect them, until " Don't screw up folds when inserting text that might affect them, until
" " leaving insert mode. Foldmethod is local to the window. Protect against " " leaving insert mode. Foldmethod is local to the window. Protect against
@ -108,7 +113,7 @@ augroup vimrc
" save folds/cursor positions of buffers " save folds/cursor positions of buffers
autocmd BufWinLeave *.* mkview autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview autocmd BufWinEnter *.* silent loadview
augroup END augroup END
" fix keycodes when running inside tmux " fix keycodes when running inside tmux

3
sync.sh

@ -7,7 +7,8 @@ FILES="$HOME/.vim/colors/deus.vim \
$HOME/.profile \ $HOME/.profile \
$HOME/.gdbinit.d \ $HOME/.gdbinit.d \
$HOME/.ctags \ $HOME/.ctags \
$HOME/bin/hide_panel.sh" $HOME/bin/hide_panel.sh \
$HOME/bin/tmux_start.sh"
rsync -avP ${FILES} ./ rsync -avP ${FILES} ./

3
tmux_start.sh

@ -0,0 +1,3 @@
#!/bin/bash
tmux new -s dev \; splitw -h \; selectp -t 0 \; resizep -x 83 \; splitw -v -l 15 \; selectp -t 0 \;
Loading…
Cancel
Save