From ae1fa7a5e830c07c97ebb81c1b56e88818e8e792 Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Tue, 12 Dec 2017 23:40:31 -0600 Subject: [PATCH 1/3] Delete khdrc --- khdrc | 116 ---------------------------------------------------------- 1 file changed, 116 deletions(-) delete mode 100644 khdrc diff --git a/khdrc b/khdrc deleted file mode 100644 index 5343445..0000000 --- a/khdrc +++ /dev/null @@ -1,116 +0,0 @@ -# enable kwm compatibility mode -khd kwm on - -# suppress unregistered keybinds outside default mode -# enabled by default! must be explicitly set to 'off' -khd void_unlisted_bind off - - -# set border color for different modes -khd mode default color 0xddd5c4a1 -khd mode switcher color 0xddbdd322 -khd mode swap color 0xdd458588 - - -# toggle between modes -ctrl - f : khd -e "mode activate switcher" -switcher + ctrl - f : khd -e "mode activate default" -swap + ctrl - f : khd -e "mode activate default" -ytd + ctrl - f : khd -e "mode activate default" -space + ctrl - f : khd -e "mode activate default" -tree + ctrl - f : khd -e "mode activate default" -info + ctrl -f : khd -e "mode activate default" - -switcher - a : khd -e "mode activate swap" -#switcher - w : khd -e "mode activate ytd" -#switcher - s : khd -e "mode activate space" -#switcher - d : khd -e "mode activate tree" -#switcher - q : khd -e "mode activate info" - - -### MINE -# i3 style -lalt - up : kwmc window -f north -lalt - right : kwmc window -f east -lalt - down : kwmc window -f south -lalt - left : kwmc window -f west - -# move window -lalt + shift - up : kwmc window -m north -lalt + shift - right : kwmc window -m east -lalt + shift - down : kwmc window -m south -lalt + shift - left : kwmc window -m west - -#Move windows between spaces -lalt + ctrl - right : kwmc window -m space right;\ - kwmc space -fExperimental right -lalt + ctrl - left : kwmc window -m space left;\ - kwmc space -fExperimental left - -# Toggle float mode for window -lalt + cmd - f : kwmc window -t focused - -# Toggle tiling modes -lalt + cmd - a : kwmc space -t bsp -lalt + cmd - s : kwmc space -t monocle -lalt + cmd - d : kwmc space -t float - -### /MINE - - -# switcher mode -switcher - r : khd -e "reload" # reload config - -switcher - h : kwmc window -f west -switcher - l : kwmc window -f east -switcher - j : kwmc window -f south -switcher - k : kwmc window -f north -switcher - n : kwmc window -fm prev -switcher - m : kwmc window -fm next - -switcher - 1 : kwmc space -fExperimental 1 -switcher - 2 : kwmc space -fExperimental 2 -switcher - 3 : kwmc space -fExperimental 3 -switcher - 4 : kwmc space -fExperimental 4 -switcher - 5 : kwmc space -fExperimental 5 -switcher - 6 : kwmc space -fExperimental 6 - -switcher - z : kwmc space -fExperimental left -switcher - c : kwmc space -fExperimental right -switcher - f : kwmc space -fExperimental previous - -switcher + shift - z : kwmc window -m space left;\ - kwmc space -fExperimental left - -switcher + shift - c : kwmc window -m space right;\ - kwmc space -fExperimental right - -switcher + shift - 1 : kwmc display -f 0 -switcher + shift - 2 : kwmc display -f 1 -switcher + shift - 3 : kwmc display -f 2 - -switcher - return : osascript ~/bin/iterm.scpt - - -# swap mode -swap - h : kwmc window -s west -swap - j : kwmc window -s south -swap - k : kwmc window -s north -swap - l : kwmc window -s east -swap - m : kwmc window -s mark - -swap + shift - k : kwmc window -m north -swap + shift - l : kwmc window -m east -swap + shift - j : kwmc window -m south -swap + shift - h : kwmc window -m west -swap + shift - m : kwmc window -m mark - -swap - 1 : kwmc window -m space 1 -swap - 2 : kwmc window -m space 2 -swap - 3 : kwmc window -m space 3 -swap - 4 : kwmc window -m space 4 -swap - 5 : kwmc window -m space 5 - -swap - z : kwmc window -m space left -swap - c : kwmc window -m space right - From 21b375bc908727b6c6795ec07d945fed88312cd3 Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Tue, 12 Dec 2017 23:40:40 -0600 Subject: [PATCH 2/3] Delete kwmrc --- kwmrc | 57 --------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 kwmrc diff --git a/kwmrc b/kwmrc deleted file mode 100644 index 47e6160..0000000 --- a/kwmrc +++ /dev/null @@ -1,57 +0,0 @@ -# Set default values for screen padding -kwmc config padding 40 20 20 20 - -# Set default values for container gaps -kwmc config gap 15 15 - -# Default tiling mode for Kwm (bsp | monocle | float) -kwmc config tiling bsp - -# Automatically float windows that fail to resize -kwmc config float-non-resizable on - -# Automatically resize the window to its container -kwmc config lock-to-container on - -# Set focus-follows-mouse-mode to autoraise -kwmc config focus-follows-mouse off - -kwmc config standby-on-float on - -# Center window when made floating -kwmc config center-on-float on - -kwmc config mouse-follows-focus on - -kwmc config mouse-drag on - -# The modifier keys to be held down to initiate mouse-drag -kwmc config mouse-drag mod shift+ctrl - -# Allow window focus to wrap-around -kwmc config cycle-focus on - -# Set default container split-ratio -kwmc config split-ratio 0.5 - -# New splits become the left leaf-node -kwmc config spawn left - -kwmc rule owner="iTerm2" properties={role="AXDialog"} -kwms rule owner="Visual Studio" properties={role="AXGroup"} - -kwmc rule owner="Dialpad" properties={float="true"} -kwmc rule owner="DB Browser for SQLLite" properties={float="true"} - - -# Enable border for focused window -kwmc config border focused on -kwmc config border focused size 2 -kwmc config border focused color 0xFFBDD322 -kwmc config border focused radius 6 - -# Enable border for marked window -kwmc config border marked on -kwmc config border marked size 2 -kwmc config border marked color 0xFFCC5577 -kwmc config border marked radius 6 From 6546d5c43e08c0b4163ad9d7c0fe1d3233f65045 Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Tue, 12 Dec 2017 23:42:52 -0600 Subject: [PATCH 3/3] Create vimrc --- vimrc | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 vimrc diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..f1faeb2 --- /dev/null +++ b/vimrc @@ -0,0 +1,121 @@ +" system stuff +filetype off " for now, enabled after Vundle +set nocompatible " disable vi compatibility +set shell=/bin/bash " set our shell, always bash +set laststatus=2 " always show a status-bar +set encoding=utf-8 " always be unicode-ing +set hidden " hide abandoned buffers, don't close +set mouse=a " enable mouse support everywhere + + +" aesthetics +syntax enable " enable syntax processing +set scrolloff=4 " always show 5 lines above/below cursor +set sidescrolloff=5 " always show 5 chars over +set display=lastline " show as much as possible, no @s +set colorcolumn=80 " show bar at column # as a guide (pep8) + + +" tabs +set expandtab " make any tabs into spaces +set tabstop=4 " turn them into 4 spaces +set softtabstop=4 " even in insert mode +set shiftwidth=4 " also 4 spaces for <> indenting + + +" interface +set nowrap " never wrap long lines +set number " show line numbers +set relativenumber " show numbers relative to current line +set cursorline " highlight currently selected line +set wildmenu " command autocomplete bar +"set lazyredraw " redraw only when needed +set showmatch " highlight matching brackets/parens +set incsearch " real-time searching while typing +set hlsearch " highlight search matches +set autoindent " auto-match surrounding indentation for newlines +set backspace=indent,start " let backspace delete autoindent, not eol + + +" folding +set foldenable " turn on vim folding +set foldnestmax=8 " stay out of fold-hell, only 10-deep +set foldmethod=indent " unless told otherwise, fold on indents + + +" set Vundle runtime path and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" Plugins for Vundle to handle +Plugin 'VundleVim/Vundle.vim' " handle Vundle itself +Plugin 'fholgado/minibufexpl.vim' " mini-buffer explorer (tabs at top) +Plugin 'itchyny/lightline.vim' " status bar replacement +Plugin 'Lokaltog/vim-distinguished.git' " ancient color-scheme, should replace +Plugin 'scrooloose/nerdtree.git' +Plugin 'ervandew/supertab.git' +Plugin 'nvie/vim-flake8.git' +Plugin 'kien/rainbow_parentheses.vim.git' +Plugin 'hynek/vim-python-pep8-indent' +Plugin 'tmhedberg/SimpylFold' +Plugin 'w0rp/ale' +" Plugin 'vim-syntastic/syntastic' + +" end vundle setup +call vundle#end() +colorscheme distinguished " such colours + + +" autocmd check +if has("autocmd") + filetype plugin indent on " enable filetype detection + " \8 to run Flake8 on python files + autocmd FileType python map 8 :call Flake8() + " set filetypes in odd extensions for decent highlighting + autocmd BufNewFile,BufRead *.djhtml set filetype=html + autocmd BufNewFile,BufRead *.raml set filetype=yaml + autocmd BufNewFile,BufRead *.rst set filetype=rust + autocmd BufNewFile,BufRead *.cls set filetype=apex + " for rainbow parentheses plugin + autocmd VimEnter * RainbowParenthesesToggle + autocmd Syntax * RainbowParenthesesLoadRound + autocmd Syntax * RainbowParenthesesLoadSquare + autocmd Syntax * RainbowParenthesesLoadBraces +endif + +" [COMMANDS] +" close html/xml tags with a hotkey +imap ,/ +" turn off search-highlighting +nnoremap :nohlsearch +" highlight last inserted text +nnoremap gV `[v`] +" show invisible characters +nmap l :set list! +set listchars=tab:▸\ ,eol:¬ +" don't be a noob - disable arrow keys everywhere +map +map +map +map +imap +imap +imap +imap + +" [PLUGIN COMMANDS] +" show nerd-tree bar +nmap e :NERDTreeToggle +" validate xml +nmap ; :%w !xmllint --valid --noout - + + +" [Syntastic Settings] +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_loc_list_height = 3