Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOW TO INSTALL? #17

Open
orefalo opened this issue Nov 12, 2013 · 9 comments
Open

HOW TO INSTALL? #17

orefalo opened this issue Nov 12, 2013 · 9 comments

Comments

@orefalo
Copy link

orefalo commented Nov 12, 2013

I am sorry, but this is a basic question - not an issue

How on hell do you install this project in VIM?

For the novice it is far from trivial looking at the readme.
Please provide directions. I use spf13, anything special I should do?

Thank you

@dag
Copy link
Owner

dag commented Nov 12, 2013

According to https://github.com/spf13/spf13-vim#adding-new-plugins it seems you need to put

Bundle 'dag/vim-fish'

in ~/.vimrc.bundles.local.

I'll see about adding generic instructions to the README, so I'll leave this open.

@orefalo
Copy link
Author

orefalo commented Nov 12, 2013

Tks, then a vim restart and :BundleInstall

@orefalo
Copy link
Author

orefalo commented Nov 12, 2013

hum.. still it doesn't work - vim does apply colorization to my .fish scripts.

@dag
Copy link
Owner

dag commented Nov 12, 2013

May need to restart after :BundleInstall.

@orefalo
Copy link
Author

orefalo commented Nov 12, 2013

yep, it works - but no colorization, right? keywords are underlined

also what does this mean? it's chinese to me

To make the folds more pleasant to work with you might also want to tweak settings like foldlevelstart and foldminlines, which you could do either globally in your ~/.vimrc or locally as described above.

What are the customization parameters than can be applied to .vim/ftplugin/fish.vim

For now mine looks as

syntax enable
filetype plugin indent on


compiler fish

 setlocal textwidth=79

 setlocal foldmethod=expr

@dag
Copy link
Owner

dag commented Nov 12, 2013

You don't want

syntax enable
filetype plugin indent on

in ~/.vim/ftplugin/fish.vim, and in fact this is probably done for you by spf13 already.

@tommyjcarpenter
Copy link

Does this package support Vundle (in my .vimrc)? Sorry for commenting on a... 6 year old issue, but it was my question =)

@bjce
Copy link

bjce commented Apr 25, 2020

I have both Vim version 8.1.1550 and NVIM v0.4.3 on MacOS 10.14.6

I wrote the following lines in my .vimrc file as recommended enter link description here

set nocompatible
filetype off

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

Bundle 'gmarik/vundle'
Bundle 'dag/vim-fish'

filetype plugin indent on    " required
highlight LineNr ctermfg=grey

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

As indicated here, I also created a ~/.vim/ftplugin/fish.vim file and inserted the following in it:

" Set up :make to use fish for syntax checking.
compiler fish

" Set this to have long lines wrap inside comments.
setlocal textwidth=79

" Enable folding of block structures in fish.
setlocal foldmethod=expr

However I don't have highlighting for the following fish_prompt.fish file when opening it with vim

function fish_prompt
    set_color $fish_color_cwd
    echo ' [' (prompt_pwd) ' ] > '
end

@tommyjcarpenter
Copy link

I'd like to revist whether this plugin supports Vundle; if so a blurb about install instructions in the main README would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants