commit: aad53fc82ccb0d5a8d7d9df4f61d8f3a7b1f1819
parent: 6da9ec2cd45d808cef5694c7c6afd7681d6dc01f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 4 Jul 2016 23:54:10 +0200
.vimrc Add LaTeX support and relative line numbers
Diffstat:
M | .vimrc | 54 | ++++++++---------------------------------------------- |
1 file changed, 8 insertions(+), 46 deletions(-)
diff --git a/.vimrc b/.vimrc
@@ -1,11 +1,11 @@
-"ilet loaded_matchparen = 1
let g:neocomplete#enable_at_startup = 1
+filetype plugin on
filetype indent plugin off "KISS and no PEP8
set nobomb
set encoding=utf-8
-"set uc=0
+
set noautoindent
set nosmartindent
set hlsearch
@@ -15,52 +15,14 @@ set foldmethod=indent
set tabstop=4
syntax on
-set bg=dark
colorscheme solarized
+set bg=dark
-noremap <F8> :call HexMe()<CR>
-let $in_hex=0
-
-function HexMe()
- set binary
- if $in_hex>0
- :%!xxd -r
- let $in_hex=0
- else
- :%!xxd
- let $in_hex=1
- endif
-endfunction
-
-" Transparent editing of gpg encrypted files.
-" By Wouter Hanegraaff
-augroup encrypted
- au!
-
- " First make sure nothing is written to ~/.viminfo while editing
- " an encrypted file.
- autocmd BufReadPre,FileReadPre *.gpg set viminfo=
- " We don't want a various options which write unencrypted data to disk
- autocmd BufReadPre,FileReadPre *.gpg set noswapfile noundofile nobackup
-
- " Switch to binary mode to read the encrypted file
- autocmd BufReadPre,FileReadPre *.gpg set bin
- autocmd BufReadPre,FileReadPre *.gpg let ch_save = &ch|set ch=2
- " (If you use tcsh, you may need to alter this line.)
- autocmd BufReadPost,FileReadPost *.gpg '[,']!gpg --decrypt 2> /dev/null
-
- " Switch to normal mode for editing
- autocmd BufReadPost,FileReadPost *.gpg set nobin
- autocmd BufReadPost,FileReadPost *.gpg let &ch = ch_save|unlet ch_save
- autocmd BufReadPost,FileReadPost *.gpg execute ":doautocmd BufReadPost " . expand("%:r")
-
- " Convert all text to encrypted text before writing
- " (If you use tcsh, you may need to alter this line.)
- autocmd BufWritePre,FileWritePre *.gpg '[,']!gpg --default-recipient-self -ae 2>/dev/null
- " Undo the encryption so we are back in the normal text, directly
- " after the file has been written.
- autocmd BufWritePost,FileWritePost *.gpg u
-augroup END
+set list
+set rnu
set statusline=%<%F\ [%{&ff}][%{&enc}%{((exists(\"+bomb\")\ &&\ &bomb)?\",\ BOM\":\"\")}]\ %=\ %-14.(%l,%c%V%)\ %P
set laststatus=2
+# app-vim/vim-latex
+set grepprg=grep\ -nH\ $*
+let g:tex_flavor='latex'