47 lines
1.1 KiB
VimL
47 lines
1.1 KiB
VimL
|
set laststatus=2
|
||
|
filetype indent plugin on
|
||
|
" show existing tab with 4 spaces width
|
||
|
set tabstop=4
|
||
|
" when indenting with '>', use 4 spaces width
|
||
|
set shiftwidth=4
|
||
|
" On pressing tab, insert 4 spaces
|
||
|
set expandtab
|
||
|
" hilight tab
|
||
|
highlight SpecialKey ctermfg=1
|
||
|
set list
|
||
|
set listchars=tab:T>
|
||
|
|
||
|
""""""""""""""""""""
|
||
|
" GnuPG Extensions "
|
||
|
""""""""""""""""""""
|
||
|
" sudo zypper install vim-plugin-gnupg
|
||
|
|
||
|
let g:GPGDefaultRecipients=[
|
||
|
\"Jonas Forsberg <jonas@forsberg.co>",
|
||
|
\"Jonas Forsberg <jonas.forsberg@suse.com>"
|
||
|
\]
|
||
|
|
||
|
" Tell the GnuPG plugin to armor new files.
|
||
|
let g:GPGPreferArmor=1
|
||
|
|
||
|
" Tell the GnuPG plugin to sign new files.
|
||
|
let g:GPGPreferSign=1
|
||
|
|
||
|
augroup GnuPGExtra
|
||
|
" Set extra file options.
|
||
|
autocmd BufReadCmd,FileReadCmd *.\(gpg\|asc\|pgp\) call SetGPGOptions()
|
||
|
" Automatically close unmodified files after inactivity.
|
||
|
autocmd CursorHold *.\(gpg\|asc\|pgp\) quit
|
||
|
augroup END
|
||
|
|
||
|
function SetGPGOptions()
|
||
|
" Set updatetime to 1 minute.
|
||
|
set updatetime=60000
|
||
|
" Fold at markers.
|
||
|
set foldmethod=marker
|
||
|
" Automatically close all folds.
|
||
|
set foldclose=all
|
||
|
" Only open folds with insert commands.
|
||
|
set foldopen=insert
|
||
|
endfunction
|