aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/editor-syntax-etc/vim/ftplugin/sisurb.vim
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-11 20:54:27 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commitab84a8f2e98b93faea3b445c07882069df37cc62 (patch)
tree04771995c902efc7ce4ff64775543b7fdebe990f /misc/editor-syntax-etc/vim/ftplugin/sisurb.vim
parenthelp & manpages, start work (diff)
syntax highlighting, start work, based on sisu.rb
Diffstat (limited to 'misc/editor-syntax-etc/vim/ftplugin/sisurb.vim')
-rw-r--r--misc/editor-syntax-etc/vim/ftplugin/sisurb.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/editor-syntax-etc/vim/ftplugin/sisurb.vim b/misc/editor-syntax-etc/vim/ftplugin/sisurb.vim
new file mode 100644
index 0000000..b959626
--- /dev/null
+++ b/misc/editor-syntax-etc/vim/ftplugin/sisurb.vim
@@ -0,0 +1,7 @@
+:set number
+:set relativenumber
+:autocmd FileType ruby :set relativenumber
+:autocmd FocusLost *.rb :set norelativenumber
+:autocmd FocusGained *.rb :set relativenumber
+:autocmd InsertEnter *.rb :set norelativenumber
+:autocmd InsertLeave *.rb :set relativenumber