diff options
author | Max Christian Pohle | 2018-04-16 01:26:11 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-04-16 01:26:11 +0200 |
commit | fffdbfc807b450007ca74248aa60a269ab9d4e5d (patch) | |
tree | 81bd1f98f1f67f19be918a7d596a279fb7849554 /vimrc-full | |
parent | 7fbf4a822abb9d4d559f20c464cf3895333e0ea7 (diff) | |
download | vim-karlmarks-fffdbfc807b450007ca74248aa60a269ab9d4e5d.tar.bz2 vim-karlmarks-fffdbfc807b450007ca74248aa60a269ab9d4e5d.zip |
Further simplifications
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -59,7 +59,11 @@ if has("multi_byte") | |||
59 | " set listchars+=eol:↲ | " symbols used when using :set list (which displays non-printable chars) | 59 | " set listchars+=eol:↲ | " symbols used when using :set list (which displays non-printable chars) |
60 | " set listchars+=space:· | " symbols used when using :set list (which displays non-printable chars) | 60 | " set listchars+=space:· | " symbols used when using :set list (which displays non-printable chars) |
61 | set showbreak+=› | " symbol used in the beginning of a wrapped line | 61 | set showbreak+=› | " symbol used in the beginning of a wrapped line |
62 | set list | 62 | |
63 | " automatically enter list mode when going in insert mode (makes above syntax command temporarily ineffective) | ||
64 | set nolist | ||
65 | autocmd InsertEnter * set list | ||
66 | autocmd InsertLeave * set nolist | ||
63 | " set fillchars+=stlnc:\― | " | 67 | " set fillchars+=stlnc:\― | " |
64 | end | 68 | end |
65 | 69 | ||
@@ -234,7 +238,8 @@ set foldnestmax=1 | " top level folding only | |||
234 | set foldopen=block,hor,search | " when do we unfold? | 238 | set foldopen=block,hor,search | " when do we unfold? |
235 | " set foldtext=Foldtext() | " | 239 | " set foldtext=Foldtext() | " |
236 | " set foldtext=v:folddashes.substitute(getline(v:foldstart),'\\v^/[/*]\','','g') | 240 | " set foldtext=v:folddashes.substitute(getline(v:foldstart),'\\v^/[/*]\','','g') |
237 | set foldtext='⊞\ '.substitute(getline(v:foldstart),'^[\ '.printf(&cms,'').']*','','').'↵'.getline(v:foldstart+1).'↵'.getline(v:foldstart+2) | 241 | " set foldtext='⊞\ '.substitute(getline(v:foldstart),'^[\ '.printf(&cms,'').']*','','').'↵'.getline(v:foldstart+1).'↵'.getline(v:foldstart+2) |
242 | set foldtext='⊞\ '.substitute(join(getline(v:foldstart,v:foldend),'↵'),'\[*\/\]','','g') | ||
238 | 243 | ||
239 | " vim window behaviour | 244 | " vim window behaviour |
240 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 245 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
@@ -1031,10 +1036,6 @@ function! ExtendColorTheme() | |||
1031 | 1036 | ||
1032 | highlight! link Convention Error | 1037 | highlight! link Convention Error |
1033 | 1038 | ||
1034 | " automatically enter list mode when going in insert mode (makes above syntax command temporarily ineffective) | ||
1035 | autocmd InsertEnter * set list | ||
1036 | autocmd InsertLeave * set nolist | ||
1037 | |||
1038 | " autocmd InsertLeave * call matchadd('Conceal', ' \+$', -1, 101, { 'conceal': '⟶' }) | 1039 | " autocmd InsertLeave * call matchadd('Conceal', ' \+$', -1, 101, { 'conceal': '⟶' }) |
1039 | autocmd InsertEnter * silent! call matchdelete(101) | 1040 | autocmd InsertEnter * silent! call matchdelete(101) |
1040 | autocmd InsertLeave * call matchadd('Convention', ' \+$', -1, 101, { 'conceal': '⟶' }) | 1041 | autocmd InsertLeave * call matchadd('Convention', ' \+$', -1, 101, { 'conceal': '⟶' }) |