-
Notifications
You must be signed in to change notification settings - Fork 4
Just in case you wanted to see/take any of these changes #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 8 commits
f849327
84bde69
1aef86e
c0f6130
b070996
2298b9f
e6f6c85
8ea9289
c617df3
81c9cd3
4945c1a
f663dc2
59ade0e
871394c
c669f85
7c70928
a508e1c
6dab77e
0ec41cb
f916c27
f183a09
a18a814
88a7d33
9462c2a
df15e59
54ffdec
7fcba04
31920b8
abce038
bf9bc71
e632743
9480075
3b1ba5a
161a672
e1895a8
fcdfc68
ffd9424
68a3945
b1a4ac8
fc9966d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,21 +92,15 @@ bind + select-layout main-horizontal | |
| ############ | ||
|
|
||
| # Toggle mouse on | ||
| unbind m | ||
| bind m \ | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixes for 2.0+ tmux mouse mode. |
||
| set -g mode-mouse on \;\ | ||
| set -g mouse-resize-pane on \;\ | ||
| set -g mouse-select-pane on \;\ | ||
| set -g mouse-select-window on \;\ | ||
| set-option -g -q mouse on \;\ | ||
| bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" \;\ | ||
| bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" \;\ | ||
| bind-key -t vi-copy WheelUpPane halfpage-up \;\ | ||
| bind-key -t vi-copy WheelDownPane halfpage-down \;\ | ||
| display 'Mouse: ON' | ||
|
|
||
| # Toggle mouse off | ||
| bind M \ | ||
| set -g mode-mouse off \;\ | ||
| set -g mouse-resize-pane off \;\ | ||
| set -g mouse-select-pane off \;\ | ||
| set -g mouse-select-window off \;\ | ||
| display 'Mouse: OFF' | ||
|
|
||
| # Navigate panes | ||
| ################ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,19 @@ autocmd bufwritepost .vimrc source $MYVIMRC | |
| call plug#begin() | ||
|
|
||
| " ESSENTIALS | ||
| Plug 'fabianvf/pytest.vim' | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My fork of |
||
| nmap <silent><Leader>tF :Pytest file verbose<CR> | ||
| nmap <silent><Leader>tc :Pytest class verbose<CR> | ||
| nmap <silent><Leader>tm :Pytest method verbose<CR> | ||
| nmap <silent><Leader>tf :Pytest function verbose<CR> | ||
| nmap <silent><Leader>tdF :Pytest file verbose doctest<CR> | ||
| nmap <silent><Leader>tdc :Pytest class verbose doctest<CR> | ||
| nmap <silent><Leader>tdm :Pytest method verbose doctest<CR> | ||
| nmap <silent><Leader>tdf :Pytest function verbose doctest<CR> | ||
|
|
||
| Plug 'bling/vim-airline' | ||
| let g:airline#extensions#hunks#enabled = 0 | ||
| Plug 'christoomey/vim-tmux-navigator' | ||
|
|
||
| Plug 'tpope/vim-sensible' | ||
| Plug 'rstacruz/vim-opinion' | ||
|
|
@@ -70,16 +83,16 @@ Plug 'alfredodeza/khuno.vim' | |
|
|
||
| " NICE TO HAVE | ||
|
|
||
| Plug 'bling/vim-airline' | ||
| let g:airline_theme='tomorrow' | ||
| " Plug 'bling/vim-airline' | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't sure what these were for, disabled out of laziness. |
||
| " let g:airline_theme='tomorrow' | ||
| " Show buffers in tabline | ||
| let g:airline#extensions#tabline#enabled = 1 | ||
| " let g:airline#extensions#tabline#enabled = 1 | ||
| " Disable stuff I don't need to see | ||
| let g:airline#extensions#hunks#enabled = 0 | ||
| let g:airline#extensions#bufferline#enabled = 1 | ||
| let g:airline#extensions#tagbar#enabled = 0 | ||
| let g:airline#extensions#virtualenv#enabled = 0 | ||
| let g:airline#extensions#csv#enabled = 0 | ||
| " let g:airline#extensions#hunks#enabled = 0 | ||
| " let g:airline#extensions#bufferline#enabled = 1 | ||
| " let g:airline#extensions#tagbar#enabled = 0 | ||
| " let g:airline#extensions#virtualenv#enabled = 0 | ||
| " let g:airline#extensions#csv#enabled = 0 | ||
| Plug 'christoomey/vim-tmux-navigator' | ||
|
|
||
| Plug 'SirVer/ultisnips' | ||
|
|
@@ -177,6 +190,33 @@ if executable('npm') | |
| " Rename with <C-c>rr (also like in python-mode) | ||
| autocmd Filetype javascript noremap <buffer> <C-c>r :TernRename<CR> | ||
| endif | ||
| Plug 'sophacles/vim-bundle-mako' | ||
| Plug 'plasticboy/vim-markdown' | ||
| let g:vim_markdown_folding_disabled=1 | ||
|
|
||
| " Idris stuff | ||
| Plug 'idris-hackers/idris-vim' | ||
|
|
||
| Plug 'ZoomWin' | ||
| Plug 'terryma/vim-multiple-cursors' | ||
| " For previewing markdown, rst ,etc | ||
| Plug 'greyblake/vim-preview' | ||
| Plug 'matchit.zip' | ||
| Plug 'duff/vim-scratch' | ||
| " Open scratch buffer with space-tab | ||
| command! ScratchToggle call ScratchToggle() | ||
|
|
||
| function! ScratchToggle() | ||
| if exists("w:is_scratch_window") | ||
| unlet w:is_scratch_window | ||
| exec "q" | ||
| else | ||
| exec "normal! :Sscratch\<cr>\<C-W>L" | ||
| let w:is_scratch_window = 1 | ||
| endif | ||
| endfunction | ||
|
|
||
| nnoremap <silent> <leader><tab> :ScratchToggle<cr> | ||
|
|
||
| call plug#end() | ||
| filetype plugin indent on | ||
|
|
@@ -198,13 +238,20 @@ set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if sp | |
| set shiftwidth=4 " number of spaces to use for autoindenting | ||
| set shiftround " use multiple of shiftwidth when indenting with '<' and '>' | ||
|
|
||
|
|
||
| " No bells | ||
| set noerrorbells visualbell t_vb= | ||
| """ VISUAL SETTINGS """ | ||
|
|
||
| set t_Co=256 " Must be 256 for many themes to display correctly | ||
| " Favorites: hybrid iceberg Tomorrow hybrid-light | ||
| silent! colorscheme hybrid | ||
| " May want to have different schemes for termvim vs gvim | ||
| " if has('gui_running') | ||
| " silent! colorscheme emacs | ||
| " else | ||
| " silent! colorscheme underwater | ||
| " endif | ||
|
|
||
| " Show trailing whitespace | ||
| set list listchars=tab:▸\ ,trail:▫ | ||
|
|
@@ -352,3 +399,15 @@ if has('gui_running') | |
| set go-=L | ||
| endif | ||
| endif | ||
|
|
||
| function! NumberToggle() | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Toggle num/relnum |
||
| if(&relativenumber == 1) | ||
| set norelativenumber | ||
| set number | ||
| else | ||
| set relativenumber | ||
| set number | ||
| endif | ||
| endfunc | ||
|
|
||
| nnoremap <C-n> :call NumberToggle()<cr> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,6 @@ zstyle ':prezto:load' pmodule \ | |
| 'completion' \ | ||
| 'prompt' \ | ||
| 'osx' \ | ||
| 'git' \ | ||
| 'python' | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabled out of laziness |
||
|
|
||
| # | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not this one though, this one is mine.