this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleanup vim config

+25 -46
-3
fish/config.fish
··· 28 28 enable jump shell fish 29 29 30 30 ssh-add -K ^/dev/null 31 - 32 - test -e $HOME/.iterm2_shell_integration.fish 33 - and source $HOME/.iterm2_shell_integration.fish 34 31 end
+25 -43
nvim/init.vim
··· 65 65 " Code manipulation 66 66 Plug 'jiangmiao/auto-pairs' 67 67 Plug 'tommcdo/vim-exchange' 68 - 69 68 Plug 'tommcdo/vim-lion' 70 69 Plug 'tpope/vim-commentary' 71 70 Plug 'tpope/vim-endwise' ··· 73 72 Plug 'AndrewRadev/splitjoin.vim' 74 73 75 74 Plug 'hauleth/sad.vim', { 'on': ['<Plug>(sad-change-forward)'] } 75 + 76 76 nmap c <Plug>(sad-change-forward) 77 77 vmap c <Plug>(sad-change-forward) 78 78 nmap C <Plug>(sad-change-forward)$ ··· 83 83 84 84 " Build & Configuration 85 85 Plug 'skywind3000/asyncrun.vim' 86 + Plug 'romainl/vim-qf' 87 + 86 88 command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ <args> 87 89 88 90 Plug 'tpope/vim-projectionist' ··· 93 95 Plug 'mjbrownie/swapit' 94 96 Plug 'tpope/vim-repeat' 95 97 Plug 'tpope/vim-unimpaired' 96 - Plug 'tpope/tpope-vim-abolish' 97 - Plug 'romainl/vim-qf' 98 98 99 - Plug 'justinmk/vim-sneak' 100 - nmap : <Plug>Sneak_; 101 - vmap : <Plug>Sneak_; 102 - "replace 'f' with 1-char Sneak 103 - nmap f <Plug>Sneak_f 104 - nmap F <Plug>Sneak_F 105 - xmap f <Plug>Sneak_f 106 - xmap F <Plug>Sneak_F 107 - omap f <Plug>Sneak_f 108 - omap F <Plug>Sneak_F 109 - "replace 't' with 1-char Sneak 110 - nmap t <Plug>Sneak_t 111 - nmap T <Plug>Sneak_T 112 - xmap t <Plug>Sneak_t 113 - xmap T <Plug>Sneak_T 114 - omap t <Plug>Sneak_t 115 - omap T <Plug>Sneak_T 99 + call plug#end() 100 + " }}} 101 + " Identation {{{ 102 + set tabstop=4 shiftwidth=0 softtabstop=-1 expandtab 116 103 117 - call plug#end() 104 + set textwidth=80 105 + set nowrap " Don't wrap lines 106 + set linebreak " Break lines at convenient points 107 + set formatoptions+=l 118 108 " }}} 119 109 " Colors {{{ 120 110 set termguicolors ··· 125 115 set wildignore=*.o,*~,*.pyc,.git,*/tmp/* 126 116 127 117 " Display tabs and trailing spaces visually 128 - set list 129 - set listchars=tab:→\ ,trail:·,nbsp:␣ 118 + set list listchars=tab:→\ ,trail:·,nbsp:␣ 130 119 set conceallevel=2 131 120 132 121 " Do not show current mode down the bottom 133 122 set noshowmode 134 123 135 - set nohidden 136 - set autowriteall 124 + " Autowrite files when possible 125 + set nohidden autowriteall 137 126 138 127 " Wrap line on movements 139 128 set whichwrap+=[,] ··· 141 130 " Keep cursor in the middle 142 131 set scrolloff=9999 143 132 133 + set mouse=a 134 + 135 + " Hypen is part of the keyword, if you want to substract then add spaces 144 136 set iskeyword+=- 145 137 146 138 " Show 80 column 147 - let &colorcolumn='81' 139 + let &colorcolumn = &textwidth + 1 148 140 149 141 set splitright splitbelow 142 + 143 + " Diff in vertical splits and ignore whitespaces 150 144 set diffopt+=vertical,iwhite 151 145 152 - func! SetStatusline() 146 + func! SetStatusline() abort 153 147 let &laststatus = 2 154 148 let &statusline = "%<%2n » %f%{&modified ? ' +' : ''} «" 155 149 \ . "%=%4c:%l" ··· 157 151 158 152 augroup StatusLine 159 153 au! 154 + 160 155 autocmd BufEnter * call SetStatusline() 161 156 augroup END 162 - 163 - " }}} 164 - " Identation {{{ 165 - set shiftwidth=0 166 - set softtabstop=-1 167 - set tabstop=4 168 - set expandtab 169 - 170 - set textwidth=80 171 - set nowrap " Don't wrap lines 172 - set linebreak " Break lines at convenient points 173 - set formatoptions+=l 174 157 " }}} 175 158 " Search {{{ 176 159 " Smart case searches 177 - set smartcase inccommand=nosplit 160 + set ignorecase smartcase inccommand=nosplit 178 161 " }}} 179 162 " Backup, swap & undo {{{ 180 163 " Turn backup off, since most stuff is in SVN, git etc. anyway... 181 - set nobackup 182 - set noswapfile 164 + set nobackup noswapfile 183 165 184 166 " Keep undo history across sessions, by storing in file. 185 167 " Only works all the time. ··· 244 226 autocmd VimResized * wincmd = 245 227 augroup END 246 228 247 - command! Note setlocal nobl bt=nofile bh=delete 229 + command! Note setlocal nobuflisted buftype=nofile bufhidden=delete 248 230 249 231 let g:sql_type_default = 'pgsql' 250 232 " }}}