summaryrefslogtreecommitdiffhomepage
path: root/.exrc
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-23 01:01:29 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-23 01:01:29 +0100
commitbc9b490ea8afc2feec6f39dc1dafc5ea11d6b8d6 (patch)
tree211edf1fcd4e494b114374179285463c9530faaf /.exrc
parent79b7ac752e18672935b887fcaccdc360a5ea7eee (diff)
More things
Diffstat (limited to '.exrc')
-rw-r--r--.exrc14
1 files changed, 10 insertions, 4 deletions
diff --git a/.exrc b/.exrc
index 1eb5cfb..0d9ddf4 100644
--- a/.exrc
+++ b/.exrc
@@ -1,8 +1,14 @@
-" Autowrap lines
-set tw=80
+function s:build()
+ update
+ make!
+ let qf = getqflist()
+ if len(filter(getqflist(), 'get(v:val, "valid", 1)')) == 0
+ call feedkeys(" ")
+ endif
+endfunction
-" Auto-compile the site
-nnoremap M :w \| make<CR><CR>
+nnoremap <silent> M :call <sid>build()<cr>
+set tw=80
let g:netrw_sort_sequence = '^index.gsp$,[\/]$,'
let g:netrw_list_hide .= ',^.*\.html$'