Browse code

Add implementation

Robert Cranston authored on 03/06/2022 01:42:07
Showing 1 changed files
... ...
@@ -1,2 +1,43 @@
1 1
 set nocompatible
2 2
 set rtp+=.
3
+
4
+set commentstring=
5
+set shiftwidth=2
6
+set textwidth=79
7
+set fillchars+=fold:─
8
+set foldtext=unobtrusive_fold#text()
9
+
10
+syntax enable
11
+filetype plugin indent on
12
+
13
+autocmd FileType *        UnobtrusiveFoldComment
14
+autocmd FileType markdown UnobtrusiveFoldChar #
15
+
16
+function! Demo(file) abort
17
+  set background=dark
18
+  highlight! Comment term=NONE cterm=NONE gui=NONE ctermbg=NONE guibg=NONE ctermfg=Grey guifg=Grey
19
+  highlight! link Folded Comment
20
+
21
+  execute 'args' a:file
22
+  nnoremap gz :redraw \| sleep 1<CR>
23
+  normal ggzMgz
24
+  if a:file ==# '~/.vim/vimrc'
25
+    normal 5jgz
26
+    normal zagz
27
+    normal 10jgz
28
+    normal zagz
29
+    normal gz
30
+    normal zcgz
31
+    normal zcgz
32
+  endif
33
+  if a:file ==# '~/projects/ansible/playbook/desktop/desktop.yml'
34
+    normal 12jgz
35
+    normal zagz
36
+    normal 7jgz
37
+    normal zagz
38
+    normal gz
39
+    normal zcgz
40
+    normal zcgz
41
+  endif
42
+  qall!
43
+endfunction
Browse code

Add project

Robert Cranston authored on 04/06/2022 02:03:59
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,2 @@
1
+set nocompatible
2
+set rtp+=.