Convenience tweaks plus 79 chars line limit

This commit is contained in:
2018-07-29 19:26:43 +02:00
parent d61ccc6982
commit 8be1791f6d
4 changed files with 39 additions and 2 deletions

30
colorcube.sh Executable file
View File

@@ -0,0 +1,30 @@
for i in {0..1}
do
for k in {0..7}
do
tput setab $(($i * 8 + $k))
echo -n ' '
done
tput sgr0
echo ''
done
for i in {0..35}
do
for k in {0..5}
do
tput setab $((16 + $i * 6 + $k))
echo -n ' '
done
tput sgr0
echo ''
done
for i in {232..255}
do
tput setab $i
echo -n ' '
done
tput sgr0
echo ''

View File

@@ -1 +1,3 @@
setlocal list
nnoremap <buffer> <silent> <localleader>x :term ++hidden grip -b %<cr>

View File

@@ -1,2 +1,6 @@
iabbrev <buffer> inp import numpy as np
iabbrev <buffer> ipl import matplotlib.pyplot as plt
iabbrev <buffer> ipd import pandas as pd
iabbrev <buffer> inm if __name__ == '__main__'
nnoremap <buffer> <localleader>x :term python3 %<cr>

View File

@@ -90,7 +90,7 @@ let g:syntastic_python_checkers = ['python', 'pyflakes']
augroup badstyle
autocmd!
autocmd BufWinEnter * call clearmatches()
autocmd BufWinEnter * let w:m1 = matchadd('Unstylish', '\%81v.')
autocmd BufWinEnter * let w:m1 = matchadd('Unstylish', '\%80v.')
autocmd BufWinEnter * if &ft != 'make' && &ft != 'gitcommit'
\ && &ft != 'help'
\ | let w:m2 = matchadd('Unstylish', '\t') | endif
@@ -106,7 +106,7 @@ augroup END
augroup prose
autocmd!
autocmd FileType tex,text,markdown,rst
\ setlocal spell spelllang=en_us textwidth=80
\ setlocal spell spelllang=en_us textwidth=79
augroup END
" }}}
@@ -165,6 +165,7 @@ vnoremap <c-v> x"+P
nnoremap <leader>N :NERDTree<cr>
nnoremap <leader>] :YcmCompleter GoTo<cr>
nnoremap <leader>ye :YcmShowDetailedDiagnostic<cr>
nnoremap <leader>yh :YcmCompleter GetDoc<cr>
nnoremap <leader>yf :YcmCompleter FixIt<cr>:ccl<cr>
nnoremap <leader>yd :YcmDiags<cr>
nnoremap <leader>sd :SyntasticSetLoclist<cr>:lopen<cr>