Skip to content

Instantly share code, notes, and snippets.

@bbtdev
bbtdev / tmux color fix
Created February 8, 2018 14:37
tmux color fix
I build the tmux from Github (Version 2.4), the problem still didn't solve.
Put the following config in .vimrc seems fixed the problem in my case.
set background=dark
set t_Co=256
Both the color scheme and font are normal(still don't know why).
@bbtdev
bbtdev / gist:f4550c5d0a3092a9e0ef51411690547b
Created February 8, 2018 18:03
lxde apply keyboard shortcuts
openbox-lxde --reconfigure
@bbtdev
bbtdev / gist:65e113fbe70dfe2f657a39df96305ead
Created March 7, 2018 18:10
vim ruby ripper tags gutentags setup
"gutentags ripper tags ruby setup
let g:gutentags_define_advanced_commands = 1
let g:gutentags_ctags_executable_ruby = 'ripper-tags --ignore-unsupported-options'
bogdan@bogdan-Aspire-E5-571:~/.vim/bundle/vim-gutentags/res$ ls
ctags_recursive.options
change --rec bla bla to -R
for debugging
let g:gutentags_trace = 1
@bbtdev
bbtdev / .vimrc
Created March 8, 2018 10:35
vimrc backup
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@bbtdev
bbtdev / .vimrc
Created March 8, 2018 10:35
vimrc backup
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@bbtdev
bbtdev / vimrc
Created March 8, 2018 13:23
vimrc with nvimcompletemanager
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@bbtdev
bbtdev / async
Created March 16, 2018 19:06
asyncomplete
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-buffer.vim'
Plug 'prabirshrestha/asyncomplete-tags.vim'
Plug 'yami-beta/asyncomplete-omni.vim'
Plug 'prabirshrestha/asyncomplete-file.vim'
Plug 'prabirshrestha/asyncomplete-necovim.vim'
call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
\ 'name': 'buffer',
\ 'whitelist': ['*'],
@bbtdev
bbtdev / config_functions.vim
Created April 3, 2018 16:46
vim config denisa lubuntu
" tmux
fun! DoesPaneAlreadyExists()
let panes_list = split(system('tmux list-panes -s -F "#{pane_index}"', "\n"))
let panes_count = len(panes_list)
if panes_count > 1
exec ':echo "' . panes_list[1] . '"'
call system('tmux kill-pane -t ' . panes_list[1] )
else
endif
@bbtdev
bbtdev / gist:82783aa677bcb98320cff5d9ad3b201a
Created April 3, 2018 16:47
tmux config denisa lubuntu
# ORIGINAL
# bind-key v split-window -h
# bind-key s split-window -v
# bind-key h select-pane -L
# bind-key j select-pane -D
# bind-key k select-pane -U
# bind-key l select-pane -R
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
@bbtdev
bbtdev / Ubuntu 18.04 rvm rubies fix
Created July 1, 2018 13:11
rvm recipe for target 'ext/openssl/all' failed ubuntu 18.04 rvm get master
rvm get master