2017-04-13 13:08:50 +02:00
|
|
|
syn on
|
|
|
|
|
" Enable Ctrl+Backspace deleting the last word
|
2017-04-22 22:28:30 +02:00
|
|
|
imap <C-BS> <C-W>
|
|
|
|
|
set backspace=indent,eol,start " more powerful backspacing
|
2017-04-13 13:08:50 +02:00
|
|
|
|
|
|
|
|
set nocompatible " no vi compatible, seems to be good
|
|
|
|
|
set expandtab " covert TAB to spaces
|
|
|
|
|
set shiftwidth=2 " width of tabs
|
|
|
|
|
set softtabstop=2 " width of tabs
|
|
|
|
|
|
|
|
|
|
" Ctrl copy/cut paste behaviour
|
|
|
|
|
vmap <C-c> "+yi
|
|
|
|
|
vmap <C-x> "+c
|
|
|
|
|
vmap <C-v> c<ESC>"+p
|
|
|
|
|
imap <C-v> <C-r><C-o>+
|
|
|
|
|
|
|
|
|
|
" Reformat shortcuts
|
2020-10-20 15:29:51 +02:00
|
|
|
nmap <F1> gqap " wrap paragraph
|
2017-04-13 13:08:50 +02:00
|
|
|
map! <F1> <ESC>gqapi
|
2020-10-20 15:29:51 +02:00
|
|
|
nmap <F5> vipJ " unwrap paragraph
|
|
|
|
|
map! <F5> <ESC>vipJi
|
|
|
|
|
"nmap <F3> kgqj " merge the previous line with the current one, with a correct formatting
|
2017-05-18 12:42:20 +02:00
|
|
|
"map! <F3> <ESC>kgqji
|
2017-04-13 13:08:50 +02:00
|
|
|
|
|
|
|
|
" Arrow left moves up line when at position 0
|
|
|
|
|
set whichwrap+=<,>,[,]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ASTROID
|
|
|
|
|
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/advanced.vim
|
|
|
|
|
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/astroid.vim
|
2017-05-18 12:42:20 +02:00
|
|
|
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/mail.vim
|
2018-07-16 16:51:56 +02:00
|
|
|
autocmd BufRead /home/max/.cache/astroid/* :source ~/.vim/addresses.vim
|
2017-04-13 13:08:50 +02:00
|
|
|
|
|
|
|
|
" Thunderbird
|
|
|
|
|
autocmd BufRead /tmp/*.eml :source ~/.vim/advanced.vim
|
2017-04-22 22:28:30 +02:00
|
|
|
autocmd BufRead /tmp/*.eml :source ~/.vim/mail.vim
|
2018-04-11 17:00:16 +02:00
|
|
|
|
|
|
|
|
" textern (Firefox Addon)
|
2021-01-07 14:52:56 +01:00
|
|
|
autocmd BufRead /*/textern/textern* :source ~/.vim/advanced.vim
|
|
|
|
|
autocmd BufRead /*/textern/textern* :source ~/.vim/mail.vim
|
2018-04-11 17:00:16 +02:00
|
|
|
autocmd BufRead /*/textern*/*.txt :source ~/.vim/advanced.vim
|
|
|
|
|
autocmd BufRead /*/textern*/*.txt :source ~/.vim/mail.vim
|