diff --git a/colorcube.sh b/colorcube.sh new file mode 100755 index 0000000..dc06de0 --- /dev/null +++ b/colorcube.sh @@ -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 '' diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index b7b53e5..dc5663e 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1 +1,3 @@ setlocal list + +nnoremap x :term ++hidden grip -b % diff --git a/ftplugin/python.vim b/ftplugin/python.vim index fa9cdc5..5ad155e 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -1,2 +1,6 @@ iabbrev inp import numpy as np iabbrev ipl import matplotlib.pyplot as plt +iabbrev ipd import pandas as pd +iabbrev inm if __name__ == '__main__' + +nnoremap x :term python3 % diff --git a/plugin/settings.vim b/plugin/settings.vim index 3d8114a..962347c 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -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 x"+P nnoremap N :NERDTree nnoremap ] :YcmCompleter GoTo nnoremap ye :YcmShowDetailedDiagnostic +nnoremap yh :YcmCompleter GetDoc nnoremap yf :YcmCompleter FixIt:ccl nnoremap yd :YcmDiags nnoremap sd :SyntasticSetLoclist:lopen