this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Publish Vim-porn

+182 -108
+1 -1
fish/config.fish
··· 17 17 18 18 theme base16-ocean dark 19 19 20 - set fish_greeting (fortune zen) 20 + # set fish_greeting (fortune zen) 21 21 22 22 enable direnv hook fish 23 23 enable hub alias -s
+3 -7
fish/functions/work.fish
··· 1 1 function work 2 2 set NAME $argv[1] 3 3 4 - mkdir -p (dirname "/tmp/work/$NAME") 5 - set -x NVIM_LISTEN_ADDRESS "/tmp/work/$NAME" 6 - 7 - if not tmux has-session -t "$NAME" ^/dev/null 8 - tmux start-server \;\ 9 - new-session -d -s "$NAME" -c "$WORKSPACE_SRC/$NAME" 4 + tmux new-session -A -s "$NAME" -c "$WORKSPACE_SRC/$NAME" ^/dev/null 5 + if [ ! -z "$TMUX" ] 6 + tmux switch-client -t "$NAME" 10 7 end 11 - tmux attach -t "$NAME" 12 8 end
+2
git/config
··· 14 14 root = !git checkout master && git up 15 15 squash = rebase -i @{u} 16 16 st = status -sb 17 + todo = grep -Ee '\\bTODO:?\\b' 18 + fixme = grep -Ee '\\bFIX(ME)?:?\\b' 17 19 18 20 [mergetool] 19 21 keepBackup = false
+2 -1
nix/config.nix
··· 35 35 name = "tools"; 36 36 paths = [ 37 37 pkgs.wrk 38 - pkgs.tmux 38 + tmux 39 39 40 40 # CLI tools 41 41 pkgs.tldr ··· 50 50 51 51 universal-ctags = pkgs.callPackage ./pkgs/universal-ctags {}; 52 52 htop = pkgs.callPackage ./pkgs/htop {}; 53 + tmux = pkgs.callPackage ./pkgs/tmux.nix {}; 53 54 }; 54 55 }
+25
nix/pkgs/tmux.nix
··· 1 + { stdenv, fetchgit, automake, autoconf, ncurses, pkgconfig, libevent }: 2 + 3 + stdenv.mkDerivation { 4 + name = "tmux-2.2-e9d369a0"; 5 + 6 + buildInputs = [ 7 + automake 8 + autoconf 9 + pkgconfig 10 + ncurses 11 + libevent 12 + ]; 13 + 14 + src = fetchgit { 15 + url = "https://github.com/tmux/tmux.git"; 16 + rev = "e9d369a0"; 17 + sha256 = "7ae3811591a7ce45e4c85163dbd3c0925acd1fbd21d9eed714cfb6a290c71869"; 18 + }; 19 + 20 + preConfigure = "./autogen.sh"; 21 + configureFlags = [ 22 + "--with-truecolor" 23 + ]; 24 + } 25 +
+3
nvim/after/ftplugin/dirvish.vim
··· 1 + " Map gh to hide "hidden" files. 2 + nnoremap <silent> <buffer> gh 3 + \ :g@\v/\.[^\/]+/?$@d <bar> set nohlsearch<CR>
+1 -1
nvim/after/ftplugin/makefile.vim
··· 1 - set noexpandtab 1 + setlocal noexpandtab
+1 -1
nvim/after/ftplugin/robots.vim
··· 1 - set commentstring=#\ %s 1 + setlocal commentstring=#%s
+1 -6
nvim/after/ftplugin/ruby.vim
··· 1 - augroup ctags 2 - au! 3 - au BufWritePost * :NeomakeSh ripper-tags -f .tags -R . --exclude vendor 4 - augroup END 5 - 6 1 augroup format 7 2 au! 8 - au BufWritePost * :RubocopFmt 3 + au BufWritePost *.rb :RubocopFmt 9 4 augroup END 10 5 11 6 command! RubocopFmt NeomakeSh rubocop -la %
+1 -2
nvim/after/ftplugin/rust.vim
··· 1 1 compiler cargo 2 - nnoremap <buffer> g= :RustFmt<CR> 3 2 3 + setlocal formatprg=rustfmt\ --write-mode=display 4 4 let g:rustfmt_autosave = 1 5 5 6 6 let g:neomake_rust_cargo_maker = { ··· 15 15 \ '%f:%l: %tarning: %m,'. 16 16 \ '%f:%l: %m', 17 17 \ } 18 - 19 18 20 19 let g:neomake_rust_rustc_maker = { 21 20 \ 'args': ['-Z', 'parse-only'],
+1 -1
nvim/after/ftplugin/toml.vim
··· 1 - set commentstring=#\ %s 1 + setlocal commentstring=#%s
+6
nvim/after/syntax/rust.vim
··· 1 + syntax match rustDocCommentHeader "#\+\s.*" contained containedin=rustCommentLineDoc 2 + syntax match rustDocCommentLink "\[[^]]\+\]" contained containedin=rustCommentLineDoc 3 + syntax match rustDocCommentURL "https\?://\S\+" contained containedin=rustCommentLineDoc 4 + hi link rustDocCommentHeader Define 5 + hi link rustDocCommentLink Include 6 + hi link rustDocCommentURL Underline
+11 -11
nvim/autoload/lightline/colorscheme/base16.vim
··· 10 10 let s:green = [ '#a3be8c', 2 ] 11 11 let s:yellow = [ '#ebcb8b', 3] 12 12 let s:blue = [ '#8fa1b3', 4 ] 13 - let s:magenta = [ '#a67db3', 5 ] 14 - let s:lightgray = [ '#585858', 8 ] 15 - let s:black = [ '#262626', 0] 16 - let s:darkgray = [ '#3a3a3a', 18] 17 - let s:gray = [ '#a8a8a8', 20] 18 - let s:text = [ '#121212', 18] 13 + let s:magenta = [ '#b48ead', 5 ] 14 + let s:lightgray = [ '#a7adba', 20 ] 15 + let s:black = [ '#2b303b', 0 ] 16 + let s:darkgray = [ '#343d46', 18 ] 17 + let s:gray = [ '#4f5b66', 19 ] 18 + let s:text = [ '#343d46', 18 ] 19 19 20 20 let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} 21 - let s:p.normal.left = [ [ s:text, s:blue, 'bold' ], [ s:gray, s:darkgray ] ] 21 + let s:p.normal.left = [ [ s:text, s:blue ], [ s:lightgray, s:darkgray ] ] 22 22 let s:p.normal.right = [ [ s:text, s:blue ], [ s:blue, s:darkgray ] ] 23 - let s:p.normal.middle = [ [ s:lightgray , s:background ] ] 24 - let s:p.insert.left = [ [ s:text, s:green, 'bold' ], [ s:gray, s:darkgray ] ] 23 + let s:p.normal.middle = [ [ s:gray , s:background ] ] 24 + let s:p.insert.left = [ [ s:text, s:green ], [ s:gray, s:darkgray ] ] 25 25 let s:p.insert.right = [ [ s:text, s:green ], [ s:green, s:darkgray ] ] 26 - let s:p.replace.left = [ [ s:text, s:red, 'bold' ], [ s:gray, s:darkgray ] ] 26 + let s:p.replace.left = [ [ s:text, s:red ], [ s:gray, s:darkgray ] ] 27 27 let s:p.replace.right = [ [ s:text, s:red ], [ s:red, s:darkgray ] ] 28 - let s:p.visual.left = [ [ s:text, s:magenta, 'bold' ], [ s:gray, s:darkgray ] ] 28 + let s:p.visual.left = [ [ s:text, s:magenta ], [ s:gray, s:darkgray ] ] 29 29 let s:p.visual.right = [ [ s:text, s:magenta ], [ s:magenta, s:darkgray ] ] 30 30 let s:p.inactive.left = [ [ s:gray , s:black ], [ s:lightgray , s:black ] ] 31 31 let s:p.inactive.right = [ [ s:lightgray , s:darkgray ], [ s:lightgray , s:black ] ]
+33 -11
nvim/autoload/plug.vim
··· 149 149 return type(a:v) == s:TYPE.string ? a:v : join(a:v, "\n") . "\n" 150 150 endfunction 151 151 152 + function! s:glob(from, pattern) 153 + return s:lines(globpath(a:from, a:pattern)) 154 + endfunction 155 + 152 156 function! s:source(from, ...) 157 + let found = 0 153 158 for pattern in a:000 154 - for vim in s:lines(globpath(a:from, pattern)) 159 + for vim in s:glob(a:from, pattern) 155 160 execute 'source' s:esc(vim) 161 + let found = 1 156 162 endfor 157 163 endfor 164 + return found 158 165 endfunction 159 166 160 167 function! s:assoc(dict, key, val) ··· 425 432 for dir in a:types 426 433 call s:source(rtp, dir.'/**/*.vim') 427 434 endfor 428 - for file in a:000 429 - call s:source(rtp, file) 430 - endfor 435 + if a:0 436 + if !s:source(rtp, a:1) && !empty(s:glob(rtp, a:2)) 437 + execute 'runtime' a:1 438 + endif 439 + call s:source(rtp, a:2) 440 + endif 431 441 if exists('#User#'.name) 432 442 execute 'doautocmd User' name 433 443 endif ··· 556 566 syn match plugTag /(tag: [^)]\+)/ 557 567 syn match plugInstall /\(^+ \)\@<=[^:]*/ 558 568 syn match plugUpdate /\(^* \)\@<=[^:]*/ 559 - syn match plugCommit /^ [0-9a-z]\{7} .*/ contains=plugRelDate,plugSha,plugTag 560 - syn match plugSha /\(^ \)\@<=[0-9a-z]\{7}/ contained 569 + syn match plugCommit /^ \X*[0-9a-z]\{7} .*/ contains=plugRelDate,plugEdge,plugTag 570 + syn match plugEdge /^ \X\+$/ 571 + syn match plugEdge /^ \X*/ contained nextgroup=plugSha 572 + syn match plugSha /[0-9a-z]\{7}/ contained 561 573 syn match plugRelDate /([^)]*)$/ contained 562 574 syn match plugNotLoaded /(not loaded)$/ 563 575 syn match plugError /^x.*/ ··· 581 593 582 594 hi def link plugError Error 583 595 hi def link plugRelDate Comment 596 + hi def link plugEdge PreProc 584 597 hi def link plugSha Identifier 585 598 hi def link plugTag Constant 586 599 ··· 652 665 endfunction 653 666 654 667 function! s:prepare(...) 668 + if empty(getcwd()) 669 + throw 'Invalid current working directory. Cannot proceed.' 670 + endif 671 + 655 672 call s:job_abort() 656 673 if s:switch_in() 657 674 normal q ··· 1728 1745 endfunction 1729 1746 1730 1747 function! s:glob_dir(path) 1731 - return map(filter(s:lines(globpath(a:path, '**')), 'isdirectory(v:val)'), 's:dirpath(v:val)') 1748 + return map(filter(s:glob(a:path, '**'), 'isdirectory(v:val)'), 's:dirpath(v:val)') 1732 1749 endfunction 1733 1750 1734 1751 function! s:progress_bar(line, bar, total) ··· 2005 2022 let b:plug_preview = !s:is_preview_window_open() 2006 2023 endif 2007 2024 2008 - let sha = matchstr(getline('.'), '\(^ \)\@<=[0-9a-z]\{7}') 2025 + let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-z]\{7}') 2009 2026 if empty(sha) 2010 2027 return 2011 2028 endif ··· 2030 2047 endfunction 2031 2048 2032 2049 function! s:format_git_log(line) 2033 - let [sha, refs, subject, date] = split(a:line, nr2char(1)) 2050 + let indent = ' ' 2051 + let tokens = split(a:line, nr2char(1)) 2052 + if len(tokens) != 5 2053 + return indent.substitute(a:line, '\s*$', '', '') 2054 + endif 2055 + let [graph, sha, refs, subject, date] = tokens 2034 2056 let tag = matchstr(refs, 'tag: [^,)]\+') 2035 2057 let tag = empty(tag) ? ' ' : ' ('.tag.') ' 2036 - return printf(' %s%s%s (%s)', sha, tag, subject, date) 2058 + return printf('%s%s%s%s%s (%s)', indent, graph, sha, tag, subject, date) 2037 2059 endfunction 2038 2060 2039 2061 function! s:append_ul(lnum, text) ··· 2055 2077 call s:append_ul(2, origin ? 'Pending updates:' : 'Last update:') 2056 2078 for [k, v] in plugs 2057 2079 let range = origin ? '..origin/'.v.branch : 'HEAD@{1}..' 2058 - let diff = s:system_chomp('git log --pretty=format:"%h%x01%d%x01%s%x01%cr" '.s:shellesc(range), v.dir) 2080 + let diff = s:system_chomp('git log --graph --color=never --pretty=format:"%x01%h%x01%d%x01%s%x01%cr" '.s:shellesc(range), v.dir) 2059 2081 if !empty(diff) 2060 2082 let ref = has_key(v, 'tag') ? (' (tag: '.v.tag.')') : has_key(v, 'commit') ? (' '.v.commit) : '' 2061 2083 call append(5, extend(['', '- '.k.':'.ref], map(s:lines(diff), 's:format_git_log(v:val)')))
+1
nvim/ftdetect/epub.vim
··· 1 + au BufRead,BufNewFile *.epub set ft=epub
+60 -61
nvim/init.vim
··· 10 10 Plug 'kshenoy/vim-signature' 11 11 12 12 " Languages 13 - Plug 'LnL7/vim-nix' 14 - Plug 'cespare/vim-toml' 13 + Plug 'sheerun/vim-polyglot' 15 14 Plug 'dag/vim-fish' 16 - Plug 'ekalinin/Dockerfile.vim' 17 - Plug 'elixir-lang/vim-elixir' 18 - Plug 'lambdatoast/elm.vim' 19 - Plug 'lervag/vimtex' 20 - Plug 'rust-lang/rust.vim' 21 - Plug 'vim-ruby/vim-ruby' 22 - Plug 'puppetlabs/puppet-syntax-vim' 23 15 24 16 " Git 25 17 Plug 'mhinz/vim-signify' ··· 32 24 33 25 " File management 34 26 Plug 'justinmk/vim-dirvish' 35 - Plug 'tpope/vim-vinegar' 36 27 Plug 'tpope/vim-eunuch' 37 28 38 29 " Time management ··· 44 35 45 36 " Completion 46 37 Plug 'Shougo/deoplete.nvim' 47 - " Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' 48 - Plug 'racer-rust/vim-racer' 49 38 Plug 'mattn/emmet-vim' 39 + Plug 'racer-rust/vim-racer' 50 40 51 41 " Code manipulation 52 - Plug 'Raimondi/delimitMate' 42 + Plug 'cohama/lexima.vim' 53 43 Plug 'tommcdo/vim-exchange' 54 44 Plug 'tpope/vim-commentary' 55 45 Plug 'tpope/vim-surround' 56 - Plug 'd0c-s4vage/vim-morph' 57 46 58 47 " Build & Configuration 59 48 Plug 'benekastah/neomake' ··· 65 54 Plug 'mjbrownie/swapit' 66 55 Plug 'tpope/vim-repeat' 67 56 Plug 'tpope/vim-unimpaired' 68 - Plug 'junegunn/limelight.vim' 69 - Plug 'junegunn/goyo.vim' 70 57 71 58 call plug#end() 72 59 " }}} 73 60 " Colors {{{ 74 - " Show 80 column 75 - let &colorcolumn="81,+" . join(range(1,100), ',+') 76 - set cursorline 77 - 78 61 " Use Dark Solarized theme 79 62 let base16colorspace=256 80 63 set background=dark ··· 85 68 set wildignore=*.o,*~,*.pyc,.git,*/tmp/* 86 69 87 70 " Display tabs and trailing spaces visually 88 - set list listchars=tab:→\ ,trail:· 71 + set list 72 + set listchars=tab:→\ ,trail:· 89 73 90 74 " Line numbers are good 91 75 set number ··· 98 82 set encoding=utf8 99 83 100 84 " Shorten interruptive command output 101 - set shortmess=atI 85 + set shortmess+=atI 102 86 103 87 " This makes vim act like all other editors, buffers can 104 88 " exist in the background without being in a window. 105 89 set hidden 106 90 107 91 " Wrap line on movements 108 - set whichwrap+=<,>,h,l,[,] 92 + set whichwrap+=<,>,[,] 109 93 110 94 " Use system clippboard as default 111 95 set clipboard=unnamed ··· 115 99 116 100 " Show me more! 117 101 set scrolloff=10 118 - " }}} 119 - " Autoupdate {{{ 120 - " Automatically reload changed files 121 - set autoread 102 + 103 + " Show 80 column 104 + let &colorcolumn="81,+" . join(range(1,100), ',+') 105 + set cursorline 122 106 123 - " Save on buffer change 124 - set autowriteall 107 + set lazyredraw 125 108 " }}} 126 109 " Identation {{{ 127 110 set smartindent ··· 143 126 " Smart case searches 144 127 set ignorecase 145 128 set smartcase 146 - 147 - " Better search 148 - set magic 149 129 " }}} 150 - " Backup & undo {{{ 130 + " Backup, swap & undo {{{ 151 131 " Turn backup off, since most stuff is in SVN, git etc. anyway... 152 132 set nobackup 153 - set updatecount=10 133 + set noswapfile 154 134 155 135 " Keep undo history across sessions, by storing in file. 156 136 " Only works all the time. ··· 161 141 set undofile 162 142 " }}} 163 143 " Tags {{{ 164 - set tags+=.tags 144 + command! UpdateTags call UpdateTags(0) 145 + 146 + let g:tagscmd = 'ctags -a' 147 + 148 + function! UpdateTags(check) 149 + let l:cwd = getcwd() 150 + let l:tagsfile = l:cwd . '/tags' 151 + 152 + if a:check && filewritable(tagsfile) 153 + exec('NeomakeSh ' . g:tagscmd . ' -f ' . tagsfile . ' ' . @%) 154 + endif 155 + endfunction 156 + 165 157 augroup ctags 166 158 au! 167 - au BufWritePost * :NeomakeSh ctags -R . 159 + au BufWritePost * call UpdateTags(1) 168 160 augroup END 169 161 " }}} 170 162 " Mappings {{{ ··· 178 170 " Smart <Home> and `^` {{{ 179 171 " <Home> goes to the beginning of the text on first press and to the beginning 180 172 " of the line on second press. It alternates afterwards. 181 - nnoremap <expr> <Home> virtcol('.') - 1 <= indent('.') && col('.') > 1 ? '0' : '_' 182 173 nnoremap <expr> ^ virtcol('.') - 1 <= indent('.') && col('.') > 1 ? '0' : '_' 174 + nmap <Home> ^ 183 175 " }}} 184 176 " Reselect last Visual {{{ 185 177 nnoremap gV `[v`] ··· 188 180 nnoremap ZS :xa<CR> 189 181 nnoremap ZA :qa<CR> 190 182 nnoremap ZX :cq<CR> 183 + nnoremap ZB :bd<CR> 191 184 " }}} 192 185 " Split line at cursor position {{{ 193 - nnoremap K i<CR><Esc>k$ 194 - nnoremap Q K 186 + nnoremap K i<CR><Esc>k$ 187 + nnoremap Q K 195 188 " }}} 196 189 " Simplify switching to Command mode {{{ 197 190 nnoremap ; : ··· 207 200 " }}} 208 201 " FZF {{{ 209 202 noremap <C-p> :<C-u>Files<CR> 210 - noremap gt :<C-u>Tags<CR> 211 - nnoremap gb :<C-u>Buffers<CR> 203 + noremap zz :<C-u>Files<CR> 204 + noremap zt :<C-u>Tags<CR> 205 + noremap zb :<C-u>Buffers<CR> 212 206 " }}} 213 207 " UndoTree {{{ 214 - noremap <F2> :UndotreeToggle<CR> 208 + noremap <F2> :<C-u>UndotreeToggle<CR> 215 209 " }}} 216 210 " EasyAlign {{{ 217 211 vmap <leader>a <Plug>(EasyAlign) 218 212 nmap <leader>a <Plug>(EasyAlign) 219 213 " }}} 220 - " Format whole file {{{ 221 - noremap g= :<C-u>Format<CR> 214 + " Format {{{ 215 + noremap g= gg=Gg`` 222 216 " }}} 223 217 " Search {{{ 224 - nnoremap <silent> <leader><leader> :<C-u>set nohlsearch <bar> update<CR> 225 - 218 + " Easier change and replace word 226 219 noremap c* *``cgn 227 220 noremap c# #``cgN 228 221 noremap cg* g*``cgn 229 222 noremap cg# g#``cgN 223 + 224 + " Search for selection 225 + vnoremap // y/<C-r>"<CR> 226 + 227 + " Consistent search forward 228 + noremap <expr> n 'Nn'[v:searchforward] 229 + noremap <expr> N 'nN'[v:searchforward] 230 230 " }}} 231 231 " Git {{{ 232 232 nnoremap U <nop> ··· 236 236 nnoremap Uc :<C-u>Gcommit<CR> 237 237 nnoremap Um :<C-u>Gmerge<CR> 238 238 nnoremap Uu :<C-u>Git up<CR> 239 + nnoremap Uf :<C-u>GitFiles<CR> 239 240 nmap UU Uu 240 241 " }}} 241 242 " }}} 242 - " Plugins {{{ 243 + " Configuration {{{ 244 + " Grep {{{ 245 + set grepformat^=%f:%l:%c:%m 246 + set grepprg=ag\ --vimgrep\ --hidden 247 + " }}} 243 248 " BufferLine {{{ 244 249 let g:bufferline_echo = 1 245 250 let g:bufferline_rotate = 1 251 + let g:bufferline_active_buffer_left = '[' 252 + let g:bufferline_active_buffer_right = ']' 246 253 let g:bufferline_fname_mod = ':~:.' 247 254 " }}} 248 255 " Deoplete {{{ 249 256 let g:deoplete#enable_at_startup = 1 250 - " }}} 251 - " DelimitMate {{{ 252 - let g:delimitMate_expand_cr = 1 253 - let g:delimitMate_expand_space = 1 254 - let g:delimitMate_balance_matchpairs = 1 257 + 258 + let g:deoplete#omni_patterns = {} 259 + let g:deoplete#omni_patterns.rust = '[(\.)(::)]' 255 260 " }}} 256 261 " Unload netrw {{{ 257 - let g:loaded_nerwPlugin = 1 262 + let g:loaded_netrw = 1 263 + let g:loaded_netrwPlugin = 1 258 264 " }}} 259 265 " Formatting & Cleaning {{{ 260 266 command! Clean let _s=@/ | %s/\s\+$//e | let @/=_s | set nohlsearch 261 - command! Format norm gg=Gg`` 262 - " }}} 263 - " Limelight {{{ 264 - let g:limelight_conceal_guifg = 'DarkGray' 265 - " }}} 266 - " Morph {{{ 267 - let g:Morph_UserMorphs = expand('~') . '/.config/Morphs.morph' 268 267 " }}} 269 268 " Neomake {{{ 270 269 augroup syntax_check 271 270 au! 272 - autocmd BufEnter,BufWritePost * silent! Neomake 271 + autocmd BufEnter,BufWritePost * silent Neomake 273 272 augroup END 274 273 275 274 let g:neomake_warning_sign = {
+5
nvim/plugin/files.vim
··· 1 + augroup pandoc 2 + au! 3 + au BufReadPost *.epub,*.odt,*.docx silent %!pandoc "%" -tmarkdown 4 + au BufWritePost *.epub,*.odt,*.docx silent write !pandoc -o "%" -fmarkdown 5 + augroup END
+1 -1
nvim/plugin/statusline.vim
··· 8 8 \ 'right': [ 9 9 \ [ 'lineinfo' ], 10 10 \ [ 'percent' ], 11 - \ [ 'filetype' ] 11 + \ [ 'filetype' ], 12 12 \ ] 13 13 \ }, 14 14 \ 'enable': {
+21
nvim/plugin/whirl.vim
··· 1 + " whirl.vim - vinegar for your dirvish 2 + " Maintainer: Łukasz Jan Niemier <http://lukasz.niemier.pl> 3 + 4 + if exists("g:loaded_whirl") || v:version < 700 || &cp 5 + finish 6 + endif 7 + let g:loaded_whirl = 1 8 + 9 + augroup dirvish_sort 10 + au! 11 + au FileType dirvish sort r /[^\/]$/ 12 + au FileType dirvish g/\~$/d 13 + augroup END 14 + 15 + if empty(maparg('-', 'n')) 16 + nnoremap <silent> - :<C-u>Dirvish .<CR> 17 + endif 18 + 19 + if empty(maparg('+', 'n')) 20 + nnoremap <silent> + :<C-u>Dirvish %:p:h<CR> 21 + endif
+3 -3
tmux/init.tmux
··· 12 12 13 13 # Smart pane switching with awareness of vim splits 14 14 is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' 15 - bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" 15 + bind -n C-h if-shell "$is_vim" "send-keys Escape \"[104;5u\"" "select-pane -L" 16 16 bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" 17 17 bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" 18 18 bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" 19 19 bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" 20 20 21 21 # Allow sending prefix to child 22 - bind-key j command-prompt -p "Join pane from:" "join-pane -s '%%'" 23 - bind-key s command-prompt -p "Send pane to:" "join-pane -t '%%'" 22 + bind-key J command-prompt -p "Join pane from:" "join-pane -s '%%'" 23 + bind-key S command-prompt -p "Send pane to:" "join-pane -t '%%'" 24 24 25 25 # Start windows and panes at 1, not 0 26 26 set -g base-index 1
-1
utils/ctags
··· 2 2 --exclude=log 3 3 --exclude=tmp 4 4 --exclude=target 5 - --exclude=vendor/bundle