Skip to content

Instantly share code, notes, and snippets.

@danoneata
Created December 15, 2020 10:39
Show Gist options
  • Save danoneata/08b4f9b3b55368d9431eadc4c00d219b to your computer and use it in GitHub Desktop.
Save danoneata/08b4f9b3b55368d9431eadc4c00d219b to your computer and use it in GitHub Desktop.
dotfiles
# Remap prefix to C-q.
set -g prefix C-q
unbind C-b
bind C-q send-prefix
# Use C-q C-q to go back to the last window.
bind-key C-q last-window
# Faster command sequences.
set -s escape-time 0
# Default statusbar colors.
set -g status-bg default
set -g default-terminal "tmux-256color"
# set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
set-window-option -g mode-keys vi
# Force a reload of the config file.
unbind r
bind r source-file ~/.tmux.conf
set -g @resurrect-strategy-vim 'session'
run-shell ~/src/tmux-resurrect/resurrect.tmux
set nocompatible
scriptencoding utf-8
execute pathogen#infect()
syntax enable
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set shiftwidth=4
set backspace=indent,eol,start
set number " show line numbers
set nowrap
filetype plugin indent on " load filetype-specific indent files
let mapleader = ","
let maplocalleader = ","
" FZF
set rtp+=/usr/local/opt/fzf
imap <c-x><c-f> <plug>(fzf-complete-path)
" Auto-completion.
set wildmode=longest,list,full
set wildmenu
" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol:¬
" Syntax highlighting for markdown
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
" Colorscheme
colorscheme solarized
" Use <Tab> and <Shift-Tab> to navigate around the buffers
nmap <silent> <tab> :bn<CR>
nmap <silent> <S-tab> :b#<CR>
" Insert date of today
nmap <Leader>t i<C-R>=strftime("%Y-%m-%d")<CR><Esc>
" Settings for vim-latex.
let g:tex_flavor='pdflatex'
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_MultipleCompileFormats='pdf'
let g:Tex_GotoError=0
augroup configgroup
autocmd!
autocmd FileType javascript setlocal tabstop=2
autocmd FileType javascript setlocal shiftwidth=2
autocmd FileType javascript setlocal softtabstop=2
augroup ENDd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment