]> Cypherpunks repositories - gostls13.git/commitdiff
misc/vim: update installation instructions to work better with some Linux distributions.
authorDavid Symonds <dsymonds@golang.org>
Mon, 18 Feb 2013 03:03:47 +0000 (14:03 +1100)
committerDavid Symonds <dsymonds@golang.org>
Mon, 18 Feb 2013 03:03:47 +0000 (14:03 +1100)
Fixes #3308.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7301086

misc/vim/readme.txt

index 1e0aa4883d96887303e04781e0abc451b4f594f8..cb3a520739085c193fdc0ee309db179309073b60 100644 (file)
@@ -1,9 +1,13 @@
 Vim plugins for Go (http://golang.org)
 ======================================
 
-To use all the Vim plugins, add these lines to your vimrc.
+To use all the Vim plugins, add these lines to your $HOME/.vimrc.
 
-  set rtp+=$GOROOT/misc/vim
+  " Some Linux distributions set filetype in /etc/vimrc.
+  " Clear filetype flags before changing runtimepath to force Vim to reload them.
+  filetype off
+  filetype plugin indent off
+  set runtimepath+=$GOROOT/misc/vim
   filetype plugin indent on
   syntax on