dgy
/
hexagons
Archived
1
0
Fork 0

delirious due to lack of sleep and continuing fever

This commit is contained in:
CadaverLab 2017-09-30 01:32:17 -03:00
parent 2bb97b0cca
commit da360d3304
4 changed files with 262 additions and 146 deletions

154
.config/nvim/init.original Normal file
View File

@ -0,0 +1,154 @@
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_prog = '/usr/bin/python3'
let g:tagbar_ctags_bin = '/usr/bin/ctags'
filetype plugin on
syntax on
set path+=**
let g:mapleader = ' '
set timeoutlen=100
set scrolloff=7
set number
set background=dark
set tgc
set acd
set nosol
set ic
set scs
set cul
set hid
set lz
set sb
set spr
set title
set titleold="Terminal"
set titlestring=%F
set sc
set ru
set vb
set slm=mouse
set udf
set ts=4
set sw=4
set fcl=all
set si
set showmatch
set noswapfile
set nobackup
set nowb
set ttyfast
set wildmenu
set wildignore=.svn,CVS,.git,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.jpeg,*.png,*.xpm,*.gif
set wildmode=longest:list,full
set formatoptions+=w
" Tweaks for browsing
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
map <F7> :setlocal spell! spelllang=es_ar<CR>
function! InsertStatuslineColor(mode)
if a:mode == 'i'
hi statusline guibg=#95b9de guifg=#171717
elseif a:mode == 'r'
hi statusline guibg=Cyan guifg=#171717
else
hi statusline guibg=Red guifg=#171717
endif
endfunction
au InsertEnter * call InsertStatuslineColor(v:insertmode)
au InsertLeave * hi statusline guibg=White guifg=#171717
hi statusline guibg=White guifg=#171717
" Formats the statusline
set statusline=\%n\
set statusline+=%f\
set statusline+=%H\
set statusline+=%M\
set statusline+=%R\
set statusline+=%W\
set statusline+=\ %=
set statusline+=%{&ff}\ %{''.(&fenc!=''?&fenc:enc).''}\
set statusline+=%l:%c\
" What about the Q
nnoremap Q <nop>
map q <nop>
" Auto remove all trailing whitespace on :w
autocmd BufWritePre * :%s/\s\+$//e
" Autosave files when focus is lost
:au FocusLost * :wa
" Automatic syntax highlighting for files
au BufRead,BufNewFile *.txt set filetype=markdown
au BufRead,BufNewFile *.conf set filetype=dosini
au BufRead,BufNewFile *.bash* set filetype=sh
au BufRead,BufNewFile todo* set filetype=todo
"""BASIC TOOLS
"Navigating with guides
inoremap <Space><Space> <Esc>/<++><Enter>"_c4l
vnoremap <Space><Space> <Esc>/<++><Enter>"_c4l
map <Space><Space> <Esc>/<++><Enter>"_c4l
inoremap ;gui <++>
"For normal mode when in terminals (in X I have caps mapped to esc, this replaces it when I don't have X)
inoremap jw <Esc>
inoremap wj <Esc>
"Spell-check set to F7
inoremap <C-l> <Space><Space>
"""END
"""LATEX
autocmd FileType tex inoremap ;fr \begin{frame}<Enter>\frametitle{}<Enter><Enter><++><Enter><Enter>\end{frame}<Enter><Enter><++><Esc>6kf}i
autocmd FileType tex inoremap ;fi \begin{fitch}<Enter><Enter>\end{fitch}<Enter><Enter><++><Esc>3kA
autocmd FileType tex inoremap ;exe \begin{exe}<Enter>\ex<Space><Enter>\end{exe}<Enter><Enter><++><Esc>3kA
autocmd FileType tex inoremap ;em \emph{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;bf \textbf{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;it \textit{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;ct \citet{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;p \citep{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;glos {\gll<Space><++><Space>\\<Enter><++><Space>\\<Enter>\trans{``<++>''}}<Esc>2k2bcw
autocmd FileType tex inoremap ;x \begin{xlist}<Enter>\ex<Space><Enter>\end{xlist}<Esc>kA<Space>
autocmd FileType tex inoremap ;ol \begin{enumerate}<Enter><Enter>\end{enumerate}<Enter><Enter><++><Esc>3kA\item<Space>
autocmd FileType tex inoremap ;ul \begin{itemize}<Enter><Enter>\end{itemize}<Enter><Enter><++><Esc>3kA\item<Space>
autocmd FileType tex inoremap ;ref \ref{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;t \begin{tabular}<Enter><++><Enter>\end{tabular}<Enter><Enter><++><Esc>4kA{}<Esc>i
autocmd FileType tex inoremap ;tab \begin{tableau}<Enter>\inp{<++>}<Tab>\const{<++>}<Tab><++><Enter><++><Enter>\end{tableau}<Enter><Enter><++><Esc>5kA{}<Esc>i
autocmd FileType tex inoremap ;can \cand{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;con \const{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;v \vio{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;a \href{}{<++>}<Space><++><Esc>2T{i
autocmd FileType tex inoremap ;sc \textsc{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;sec \section{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;ssec \subsection{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;sssec \subsubsection{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;st <Esc>F{i*<Esc>f}i
autocmd FileType tex inoremap ;beg \begin{%DELRN%}<Enter><++><Enter>\end{%DELRN%}<Enter><Enter><++><Esc>4kfR:MultipleCursorsFind<Space>%DELRN%<Enter>c
"autocmd FileType tex inoremap ;up \usepackage{}<Esc>i
autocmd FileType tex inoremap ;up <Esc>/usepackage<Enter>o\usepackage{}<Esc>i
autocmd FileType tex nnoremap ;up /usepackage<Enter>o\usepackage{}<Esc>i
autocmd FileType tex inoremap ;tt \texttt{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;bt {\blindtext}
autocmd FileType tex inoremap ;nu $\varnothing$
autocmd FileType tex inoremap ;col \begin{columns}[T]<Enter>\begin{column}{.5\textwidth}<Enter><Enter>\end{column}<Enter>\begin{column}{.5\textwidth}<Enter><++><Enter>\end{column}<Enter>\end{columns}<Esc>5kA
"""END
autocmd Filetype markdown inoremap ;b ****<Space><++><Esc>F*hi
autocmd Filetype markdown inoremap ;s ~~~~<Space><++><Esc>F~hi
autocmd Filetype markdown inoremap ;e **<Space><++><Esc>F*i
autocmd Filetype markdown inoremap ;h ====<Space><++><Esc>F=hi
autocmd Filetype markdown inoremap ;i ![](<++>)<Space><++><Esc>F[a
autocmd Filetype markdown inoremap ;a [](<++>)<Space><++><Esc>F[a
autocmd Filetype markdown inoremap ;1 #<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;2 ##<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;3 ###<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;l --------<Enter>

View File

@ -1,154 +1,117 @@
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_prog = '/usr/bin/python3'
let g:tagbar_ctags_bin = '/usr/bin/ctags'
" -*- mode: vimrc -*-
"vim: ft=vim
filetype plugin on
syntax on
set path+=**
let g:mapleader = ' '
set timeoutlen=100
set scrolloff=7
set number
set background=dark
set tgc
set acd
set nosol
set ic
set scs
set cul
set hid
set lz
set sb
set spr
set title
set titleold="Terminal"
set titlestring=%F
set sc
set ru
set vb
set slm=mouse
set udf
set ts=4
set sw=4
set fcl=all
set si
set showmatch
set noswapfile
set nobackup
set nowb
set ttyfast
set wildmenu
set wildignore=.svn,CVS,.git,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.jpeg,*.png,*.xpm,*.gif
set wildmode=longest:list,full
set formatoptions+=w
function! Layers()
" Configuration Layers declaration.
" Add layers with `Layer '+layername'` and add individual packages
" with `ExtraPlugin 'githubUser/Repo'`.
" Tweaks for browsing
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
Layer '+core/behavior'
Layer '+core/sensible'
Layer '+completion/deoplete'
"Layer '+completion/snippets'
Layer '+checkers/neomake'
Layer '+nav/buffers'
Layer '+nav/files'
Layer '+nav/fuzzy'
"Layer '+nav/quit'
"Layer '+nav/start-screen'
Layer '+nav/text'
"Layer '+nav/tmux'
Layer '+nav/windows'
"Layer '+specs/testing'
Layer '+tools/terminal'
Layer '+ui/airline'
"Layer '+ui/toggles'
" Language layers.
"Layer '+lang/elm'
"Layer '+lang/haskell'
"Layer '+lang/javascript'
"Layer '+lang/python'
"Layer '+lang/ruby'
"Layer '+lang/vim'
map <F7> :setlocal spell! spelllang=es_ar<CR>
function! InsertStatuslineColor(mode)
if a:mode == 'i'
hi statusline guibg=#95b9de guifg=#171717
elseif a:mode == 'r'
hi statusline guibg=Cyan guifg=#171717
else
hi statusline guibg=Red guifg=#171717
endif
" Additional plugins.
"ExtraPlugin 'lervag/vimtex'
endfunction
au InsertEnter * call InsertStatuslineColor(v:insertmode)
au InsertLeave * hi statusline guibg=White guifg=#171717
function! UserInit()
" This block is called at the very startup of Spaceneovim initialization
" before layers configuration.
hi statusline guibg=White guifg=#171717
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_prog = '/usr/bin/python3'
let g:tagbar_ctags_bin = '/usr/bin/ctags'
" Formats the statusline
set statusline=\%n\
set statusline+=%f\
set statusline+=%H\
set statusline+=%M\
set statusline+=%R\
set statusline+=%W\
set statusline+=\ %=
set statusline+=%{&ff}\ %{''.(&fenc!=''?&fenc:enc).''}\
set statusline+=%l:%c\
endfunction
" What about the Q
nnoremap Q <nop>
map q <nop>
function! UserConfig()
" This block is called after Spaceneovim layers are configured.
" Auto remove all trailing whitespace on :w
autocmd BufWritePre * :%s/\s\+$//e
syntax on
set norelativenumber
set nostartofline
set nolist
set noexpandtab
set cursorline
set hidden
set lazyredraw
set title
set titleold="Terminal"
set titlestring=%F
set showcmd
set ruler
set visualbell
set slm=mouse
set tabstop=4
set shiftwidth=4
set fcl=all
set smartindent
set showmatch
set noswapfile
set ttyfast
set wildmenu
set wildignore=.svn,CVS,.git,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.jpeg,*.png,*.xpm,*.gif
set wildmode=longest:list,full
set formatoptions+=w
" What about the Q
nnoremap Q <nop>
map q <nop>
" Autosave files when focus is lost
:au FocusLost * :wa
" Auto remove all trailing whitespace on :w
autocmd BufWritePre * :%s/\s\+$//e
" Automatic syntax highlighting for files
au BufRead,BufNewFile *.txt set filetype=markdown
au BufRead,BufNewFile *.conf set filetype=dosini
au BufRead,BufNewFile *.bash* set filetype=sh
au BufRead,BufNewFile todo* set filetype=todo
" Autosave files when focus is lost
:au FocusLost * :wa
"""BASIC TOOLS
"Navigating with guides
inoremap <Space><Space> <Esc>/<++><Enter>"_c4l
vnoremap <Space><Space> <Esc>/<++><Enter>"_c4l
map <Space><Space> <Esc>/<++><Enter>"_c4l
inoremap ;gui <++>
"For normal mode when in terminals (in X I have caps mapped to esc, this replaces it when I don't have X)
inoremap jw <Esc>
inoremap wj <Esc>
"Spell-check set to F7
inoremap <C-l> <Space><Space>
"""END
" Automatic syntax highlighting for files
au BufRead,BufNewFile *.txt set filetype=markdown
au BufRead,BufNewFile *.conf set filetype=dosini
au BufRead,BufNewFile *.bash* set filetype=sh
au BufRead,BufNewFile todo* set filetype=todo
SetThemeWithBg 'dark', 'murmur'
"""LATEX
autocmd FileType tex inoremap ;fr \begin{frame}<Enter>\frametitle{}<Enter><Enter><++><Enter><Enter>\end{frame}<Enter><Enter><++><Esc>6kf}i
autocmd FileType tex inoremap ;fi \begin{fitch}<Enter><Enter>\end{fitch}<Enter><Enter><++><Esc>3kA
autocmd FileType tex inoremap ;exe \begin{exe}<Enter>\ex<Space><Enter>\end{exe}<Enter><Enter><++><Esc>3kA
autocmd FileType tex inoremap ;em \emph{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;bf \textbf{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;it \textit{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;ct \citet{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;p \citep{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;glos {\gll<Space><++><Space>\\<Enter><++><Space>\\<Enter>\trans{``<++>''}}<Esc>2k2bcw
autocmd FileType tex inoremap ;x \begin{xlist}<Enter>\ex<Space><Enter>\end{xlist}<Esc>kA<Space>
autocmd FileType tex inoremap ;ol \begin{enumerate}<Enter><Enter>\end{enumerate}<Enter><Enter><++><Esc>3kA\item<Space>
autocmd FileType tex inoremap ;ul \begin{itemize}<Enter><Enter>\end{itemize}<Enter><Enter><++><Esc>3kA\item<Space>
autocmd FileType tex inoremap ;ref \ref{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;t \begin{tabular}<Enter><++><Enter>\end{tabular}<Enter><Enter><++><Esc>4kA{}<Esc>i
autocmd FileType tex inoremap ;tab \begin{tableau}<Enter>\inp{<++>}<Tab>\const{<++>}<Tab><++><Enter><++><Enter>\end{tableau}<Enter><Enter><++><Esc>5kA{}<Esc>i
autocmd FileType tex inoremap ;can \cand{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;con \const{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;v \vio{}<Tab><++><Esc>T{i
autocmd FileType tex inoremap ;a \href{}{<++>}<Space><++><Esc>2T{i
autocmd FileType tex inoremap ;sc \textsc{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;sec \section{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;ssec \subsection{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;sssec \subsubsection{}<Enter><Enter><++><Esc>2kf}i
autocmd FileType tex inoremap ;st <Esc>F{i*<Esc>f}i
autocmd FileType tex inoremap ;beg \begin{%DELRN%}<Enter><++><Enter>\end{%DELRN%}<Enter><Enter><++><Esc>4kfR:MultipleCursorsFind<Space>%DELRN%<Enter>c
"autocmd FileType tex inoremap ;up \usepackage{}<Esc>i
autocmd FileType tex inoremap ;up <Esc>/usepackage<Enter>o\usepackage{}<Esc>i
autocmd FileType tex nnoremap ;up /usepackage<Enter>o\usepackage{}<Esc>i
autocmd FileType tex inoremap ;tt \texttt{}<Space><++><Esc>T{i
autocmd FileType tex inoremap ;bt {\blindtext}
autocmd FileType tex inoremap ;nu $\varnothing$
autocmd FileType tex inoremap ;col \begin{columns}[T]<Enter>\begin{column}{.5\textwidth}<Enter><Enter>\end{column}<Enter>\begin{column}{.5\textwidth}<Enter><++><Enter>\end{column}<Enter>\end{columns}<Esc>5kA
"""END
let g:airline#extensions#tabline#enabled = 1
autocmd Filetype markdown inoremap ;b ****<Space><++><Esc>F*hi
autocmd Filetype markdown inoremap ;s ~~~~<Space><++><Esc>F~hi
autocmd Filetype markdown inoremap ;e **<Space><++><Esc>F*i
autocmd Filetype markdown inoremap ;h ====<Space><++><Esc>F=hi
autocmd Filetype markdown inoremap ;i ![](<++>)<Space><++><Esc>F[a
autocmd Filetype markdown inoremap ;a [](<++>)<Space><++><Esc>F[a
autocmd Filetype markdown inoremap ;1 #<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;2 ##<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;3 ###<Space><Enter><++><Esc>kA
autocmd Filetype markdown inoremap ;l --------<Enter>
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let NERDTreeNaturalSort = 1
let NERDTreeShowHidden=1
let NERDTreeWinPos = "right"
let NERDTreeRespectWildIgnore = 1
let NERDTreeMinimalUI=1
let NERDTreeCascadeSingleChildDir=1
let NERDTreeCascadeOpenSingleChildDir=1
let g:polyglot_disabled = ['latex']
endfunction
" Do NOT remove these calls!
call spaceneovim#init()
call Layers()
call UserInit()
call spaceneovim#bootstrap()
call UserConfig()

View File

@ -148,7 +148,7 @@ super + b
# qutebrowser
super + shift + b
qutebrowser
qutebrowser --backend webengine
# volume
super + v

View File

@ -1,13 +1,12 @@
# Set the default TERM
set -g default-terminal tmux-256color
#set -g default-terminal screen-256color
# Update the TERM variable of terminal emulator when creating a new session or attaching a existing session
set -g update-environment 'DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY TERM'
# Truecolor
#set -ga terminal-overrides ",xterm-termite:Tc"
set -ga terminal-overrides ',xterm-256color:Tc'
# Set Zsh as default Tmux shell
set-option -g default-shell /bin/zsh
@ -57,12 +56,12 @@ unbind space
bind X select-layout even-vertical
# Mouse support
#setw -g mouse on
setw -g mouse on
setw -g mode-keys vi
# Copy/paste. Selecting any text with mouse automatically copies it to the clipboard
#bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
bind-key C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
@ -144,4 +143,4 @@ bind r source-file ~/.tmux.conf \; display-message ' reloaded '
# Better mouse support
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
set -g @scroll-speed-num-lines-per-scroll '3'
run-shell /usr/share/tmux/tmux-better-mouse-mode/scroll_copy_mode.tmux
run-shell /usr/share/tmux/tmux-better-mouse-mode/scroll_copy_mode.tmux