mirror of
https://github.com/golang/go.git
synced 2025-05-30 11:51:34 +00:00
misc/vim: update installation instructions to work better with some Linux distributions.
Fixes #3308. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7301086
This commit is contained in:
parent
6bbd12f176
commit
8ecc4cb41e
@ -1,9 +1,13 @@
|
|||||||
Vim plugins for Go (http://golang.org)
|
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
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user