aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/editor-syntax-etc/vim/ftplugin/sisurb.vim
diff options
context:
space:
mode:
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