Created
June 3, 2018 22:02
-
-
Save tianruig/39a74efc683fa8e55961f61cf863f472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use ^b for prefix | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# resizing | |
bind j resize-pane -D 5 | |
bind k resize-pane -U 5 | |
bind l resize-pane -L 5 | |
bind h resize-pane -R 5 | |
set -g default-terminal "tmux-256color" | |
set-window-option -g mode-keys vi | |
set-option -g history-limit 5000 | |
set -g mouse on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim-plug | |
call plug#begin('~/.vim/plugged') | |
" Completions | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'vim-airline/vim-airline' | |
Plug 'altercation/vim-colors-solarized' | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'tpope/vim-sensible' | |
Plug 'tpope/vim-surround' | |
Plug 'lervag/vimtex' | |
" Initialize plugin system | |
call plug#end() | |
" already exec by vim-plug | |
" syntax enable | |
" filetype plugin indent on | |
set background=light | |
colorscheme solarized | |
set whichwrap=b,s,<,>,[,] | |
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
let g:airline_powerline_fonts = 1 | |
let g:airline_solarized_bg = 'light' | |
autocmd BufWritePre * StripWhitespace | |
" Highlight 100th character | |
"highlight ColorColumn ctermbg=magenta | |
"call matchadd('ColorColumn', '\%81v', 100) | |
set nomodeline | |
set mouse=a | |
" LaTeX | |
autocmd FileType tex setlocal shiftwidth=2 tabstop=2 | |
if !exists('g:ycm_semantic_triggers') | |
let g:ycm_semantic_triggers = {} | |
endif | |
let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme | |
autocmd FileType c,h setlocal shiftwidth=2 tabstop=2 | |
autocmd FileType make setlocal noexpandtab | |
" Spell Check | |
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us | |
if (has("gui_running")) | |
let s:c = ",undercurl" | |
else | |
let s:c = ",underline" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment