summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryanss2015-02-08 23:07:17 -0500
committerryanss2015-02-08 23:11:56 -0500
commit14cd81b882b8db1a1f515b58837f0dca5bea232d (patch)
treea5074c1ce1e1812f367129d89d3b32dd47379167
parente9e5a267d1a0c9b9470262af8e78b35829290fe1 (diff)
downloadvim-hn-14cd81b882b8db1a1f515b58837f0dca5bea232d.tar.gz
Fix #16 Enable `filetype plugin` and `syntax` options
If `filetype plugin` is off the key remaps defined in `ftplugin/hackernews.vim` won't be loaded and pressing `o` will just create a new line instead of following links.
-rw-r--r--plugin/hackernews.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim
index 8516747..5e0b603 100644
--- a/plugin/hackernews.vim
+++ b/plugin/hackernews.vim
@@ -14,6 +14,11 @@ if !has('python')
endif
+" Filetype plugins and syntax highlighting should be enabled
+filetype plugin on
+syntax on
+
+
" Import Python code
execute "python import sys"
execute "python sys.path.append(r'" . expand("<sfile>:p:h") . "')"