extend config and rearrange some things
This commit is contained in:
@@ -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 ai! " auto indent
|
||||
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
|
||||
|
||||
@@ -10,19 +10,6 @@ map! <M-c> <ESC>3GA
|
||||
nmap <M-b> 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
|
||||
execute "normal /^$/\n"
|
||||
execute ":startinsert"
|
||||
|
||||
40
vim/.vim/mail.vim
Normal file
40
vim/.vim/mail.vim
Normal 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
BIN
vim/.vim/spell/de.utf-8.spl
Normal file
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
syn on
|
||||
" 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 expandtab " covert TAB to spaces
|
||||
@@ -27,7 +28,9 @@ set whichwrap+=<,>,[,]
|
||||
|
||||
" ASTROID
|
||||
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
|
||||
|
||||
" Thunderbird
|
||||
autocmd BufRead /tmp/*.eml :source ~/.vim/advanced.vim
|
||||
autocmd BufRead /tmp/*.eml :source ~/.vim/mail.vim
|
||||
|
||||
Reference in New Issue
Block a user