Update some dotfiles

f392389b719124e45959107e38013aea3ae53d44
Alexis Sellier committed ago 1 parent d787ba1f
.profile +1 -0
6 6
7 7
export PATH=~/bin:~/.local/bin:~/.cabal/bin:~/.cargo/bin:~/.gem/ruby/2.6.0/bin:~/.npm-packages/bin:$PATH
8 8
export EDITOR=nvim
9 9
export VISUAL=nvim
10 10
export MOZ_USE_XINPUT2=1 # Pixel scrolling in Firefox
11 +
export RIPGREP_CONFIG_PATH=$HOME/.rgrc
11 12
12 13
systemctl --user start share-sync
13 14
14 15
if command -v xinput >/dev/null; then
15 16
  prop="$(xinput | rg Touchpad | rg -o 'id=[0-9]+' | sed 's/id=//')"
.vimrc +13 -6
14 14
" Misc
15 15
set number
16 16
set ruler
17 17
set showmatch
18 18
set wildmenu
19 -
set wildmode=list,full
19 +
set wildmode=full
20 20
set nowrap
21 21
set hidden
22 22
set modeline
23 23
set hlsearch
24 24
set incsearch
28 28
set report=0                        " Report all changes
29 29
set laststatus=2                    " Always show status-line
30 30
set nocursorline                    " Highlight current line
31 31
set scrolloff=4
32 32
set nofoldenable
33 -
set timeoutlen=500                  " Set timeout between key sequences
33 +
set timeoutlen=200                  " Set timeout between key sequences
34 34
set background=dark
35 35
set mouse=a                         " Enable mouse in all modes
36 36
set directory=~/tmp,/var/tmp,/tmp,. " Keep swap files in one of these
37 37
set wmh=0                           " Minimum window height = 0
38 38
set showcmd
146 146
endif
147 147
148 148
" Remove trailing whitespace on save
149 149
autocmd BufWritePre * call s:StripTrailing()
150 150
function! s:StripTrailing()
151 -
    let l = line(".")
152 -
    let c = col(".")
153 -
    %s/\s\+$//e
154 -
    call cursor(l, c)
151 +
  if &ft =~ 'rust'
152 +
    return
153 +
  endif
154 +
155 +
  let l = line(".")
156 +
  let c = col(".")
157 +
  %s/\s\+$//e
158 +
  call cursor(l, c)
155 159
endfunction
156 160
161 +
" Markdown, highlight YAML frontmatter
162 +
let g:vim_markdown_frontmatter = 1
163 +
157 164
" We use a POSIX shell
158 165
let g:is_posix = 1
159 166
160 167
" Haskell
161 168
let g:haskellmode_completion_ghc = 0
.zshrc +1 -0
76 76
alias vim=nvim
77 77
alias clip='xclip -sel clip'
78 78
alias irc='weechat'
79 79
alias cloc='tokei'
80 80
alias shred='shred -uvz'
81 +
alias diskusage='ncdu'
81 82
82 83
export NNN_USE_EDITOR=1
83 84
84 85
#
85 86
# History