extend config and rearrange some things

This commit is contained in:
2017-04-22 22:28:30 +02:00
parent 04522a176e
commit 8212800aab
5 changed files with 56 additions and 15 deletions

View File

@@ -1,5 +1,16 @@
set tw=72 set tw=72 " text width for line-break
set comments=s1:/mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:* set comments=s1:/mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:*
set ai! " auto indent set ai! " auto indent
set fo+=tcqn " format options set fo+=tcqn " format options
" delete lines until end
nmap <C-d> dG1o
map! <C-d> <ESC>dG1o
" delete current line
nmap <C-s> ddi
map! <C-s> <ESC>ddi
" add empty line
nmap <C-a> 1o
map! <C-a> <ESC>1o

View File

@@ -10,19 +10,6 @@ map! <M-c> <ESC>3GA
nmap <M-b> 4GA nmap <M-b> 4GA
map! <M-b> <ESC>4GA map! <M-b> <ESC>4GA
" delete lines until end
nmap <C-d> dG1o
map! <C-d> <ESC>dG1o
" delete current line
nmap <C-s> ddi
map! <C-s> <ESC>ddi
" add empty line
nmap <C-a> 1o
map! <C-a> <ESC>1o
" Go to first empty line and start insert mode " Go to first empty line and start insert mode
execute "normal /^$/\n" execute "normal /^$/\n"
execute ":startinsert" execute ":startinsert"

40
vim/.vim/mail.vim Normal file
View File

@@ -0,0 +1,40 @@
""""" Mail specific setting, auto replacements etc, not depending on mail client
" hide gvim elements
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
" highlight words for better writing ( http://mashable.com/2015/05/03/words-eliminate-vocabulary/ )
syn keyword Todo that That went Went honestly Honestly Absolutely absolutely very Very really Really amazing Amazing always Always never Never literally Literally just Just maybe Maybe stuff Stuff things Things thing Thing irregardless Irregardless
" Some auto replacements for end of mails
iab _v Viele Grüße<C-M>Max
iab _vm Viele Grüße<C-M>Max Mehl
iab _bg Beste Grüße<C-M>Max
iab _bgm Beste Grüße<C-M>Max Mehl
iab _b Best,<C-M>Max
iab _br Best regards,<C-M>Max
iab _brm Best regards,<C-M>Max Mehl
" highlight CApital LEtter TYpos
:match Title /\<\u\{2}\l.\{-}\>/
" Auto-replace dumb typos
iab teh the
iab MAx Max
"" Spell checking
setlocal spell spelllang=en_gb " default: EN spellcheck
" Disable spell check
nmap <M-c> :setlocal spell!<CR>
map! <M-c> <ESC>:setlocal spell!<CR>li
" EN spell check
nmap <M-e> :setlocal spell spelllang=en_gb<CR>
map! <M-e> <ESC>:setlocal spell spelllang=en_gb<CR>li
" DE spell check
nmap <M-d> :setlocal spell spelllang=de_20<CR>
map! <M-d> <ESC>:setlocal spell spelllang=de_20<CR>li

BIN
vim/.vim/spell/de.utf-8.spl Normal file

Binary file not shown.

View File

@@ -1,6 +1,7 @@
syn on syn on
" Enable Ctrl+Backspace deleting the last word " Enable Ctrl+Backspace deleting the last word
:imap <C-BS> <C-W> imap <C-BS> <C-W>
set backspace=indent,eol,start " more powerful backspacing
set nocompatible " no vi compatible, seems to be good set nocompatible " no vi compatible, seems to be good
set expandtab " covert TAB to spaces set expandtab " covert TAB to spaces
@@ -27,7 +28,9 @@ set whichwrap+=<,>,[,]
" ASTROID " ASTROID
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/advanced.vim autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/advanced.vim
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/mail.vim
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/astroid.vim autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/astroid.vim
" Thunderbird " Thunderbird
autocmd BufRead /tmp/*.eml :source ~/.vim/advanced.vim autocmd BufRead /tmp/*.eml :source ~/.vim/advanced.vim
autocmd BufRead /tmp/*.eml :source ~/.vim/mail.vim