aboutsummaryrefslogtreecommitdiff
path: root/dot_vimrc
blob: 507b7690fa4eda5b93470eecaae3823e95b5df80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
" Appearance
syntax on
colorscheme brookstream
set bg=dark
set modeline
set modelines=1

" Tabbing
set expandtab
set shiftwidth=4
set smarttab
set autoindent

" We want a mouse in consoles, so:"
set mouse=a

" Use system plugins
filetype plugin on

" Use system per-filetype indentation
filetype indent on

set textwidth=80

set pastetoggle=<F10>

au BufEnter ~/.local/state/neomutt/* set textwidth=72 | set list lcs=trail:-,nbsp:% | set filetype=mail
au BufEnter */gophermap set list lcs=trail:-,nbsp:%,tab:»·,space:·

augroup encrypted
  autocmd!
  autocmd BufReadPre,FileReadPre *.gpg set viminfo=
  autocmd BufReadPre,FileReadPre *.gpg set noswapfile noundofile nobackup
  autocmd BufReadPost *.gpg :%!gpg --decrypt 2> /dev/null
  autocmd BufWritePre *.gpg :%!gpg -ae --default-recipient-self
  autocmd BufWritePost *.gpg u
augroup END