Comments (20)
From my experience, this is how it will work (only tested on Ubuntu):
sudo apt-get install liblua5.1-dev
copy all files from /usr/include/lua5.1/ to /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so
Go to vim source folder:
./configure --with-features=huge --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-multibyte --enable-fontset --disable-gui --disable-netbeans --enable-luainterp=yes --with-lua-prefix=/usr/include/lua5.1 --enable-largefile
make
sudo make install
from neocomplete.vim.
This is not neocomplete issues...
from neocomplete.vim.
I'm having the same issue. Some help compiling vim with if_lua would be very helpful.
I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes
compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.
from neocomplete.vim.
I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.
You should check ./configure
output.
I think the configure fails lua compilation.
from neocomplete.vim.
I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.
I met with the same problem in compelling vim 7.4
, Ubuntu
.
I set the option./configure --enable-luainterp=yes
or ./configure --enable-luainterp=dynamic
,
but :ver
output always says '- lua'
...
Some guideline will be helpful.
@JohanTan @myimedia
from neocomplete.vim.
I think you must install Lua development package.
You should check "./configure output". It contains warning messages.
from neocomplete.vim.
How about setting the option --enable-fail-if-missing
?
It outputs error messages.
I recommend to set the option --with-luajit
in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing
from neocomplete.vim.
it works now,thank you all!
from neocomplete.vim.
I recommend to set the option --with-luajit in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing
what's the difference between luajit
and the ordinary way? Does luajit
have a better performance?
from neocomplete.vim.
Yes.
from neocomplete.vim.
Does luajit have a better performance?
Standards: if_lua accelerates Vim scripts
from neocomplete.vim.
I recommend to set the option --with-luajit in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing
I'm trying to compel vim with lua-jit and setting optiions like above ,
but console says configure error:could not config lua
I have lua 5.1
installed already.
So what's the problem?
@crazymaster
from neocomplete.vim.
I'm trying to compel vim with lua-jit and setting optiions like above ,
but console says configure error:could not config lua
I have lua 5.1installed already.
You must install "luajit" package from apt not "lua 5.1".
from neocomplete.vim.
You must install "luajit" package from apt not "lua 5.1".
I'm sorry I didn't notice that......
Here I installed the luajit
and libluajit-5.1-dev
with the info:
LuaJIT 2.0.0-beta9 -- Copyright (c ) 2005-2011 Mike Pall.http://luajit.org
Run ./configer --enable-luainterp --with-luajit
and nothing changed.
Below are output summary:
checking --enable-luainterp argument... yes checking --with-lua-prefix argument... no checking LUA_PREFIX environment var... not set, default to /usr checking --with-luajit... yes checking for luajit... no checking if lua.h can be found in /usr/include... no checking if lua.h can be found in /usr/include/lua... no
from neocomplete.vim.
I found the same problem.
vim-jp/issues#348 (comment)
from neocomplete.vim.
@lookforit, you may have to do this.
$ sudo apt-get install libluajit-5.1
from neocomplete.vim.
I installed lua5.2 on ubuntu 12.04; sudo apt-get install lua5.2
, then sudo apt-get install liblua5.2-dev
which will put that offending header file in /usr/include/lua5.2/
from neocomplete.vim.
Here's what worked for me on Ubuntu 12.04.
https://gist.github.com/jdewit/9818870
from neocomplete.vim.
It was not a succes with Xubuntu 14.04. The compile is done, but still no lua support.
Just install vim-nox from package manager, then make a Vim alias for /usr/bin/vim.nox
from neocomplete.vim.
@JohanTan Is a genius!!! Your advice worked like a charm!
Here is a repost:
From my experience, this is how it will work (only tested on Ubuntu):
sudo apt-get install liblua5.1-dev
copy all files from /usr/include/lua5.1/ to /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so
Go to vim source folder:
./configure --with-features=huge --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-multibyte --enable-fontset --disable-gui --disable-netbeans --enable-luainterp=yes --with-lua-prefix=/usr/include/lua5.1 --enable-largefile
make
sudo make install
from neocomplete.vim.
Related Issues (20)
- Vim freezes if the completion candidates are very long HOT 5
- Third party libraries; HOT 3
- Python completion - Feature request HOT 4
- neocomplete.vim with problem of 100% cpu usage HOT 2
- neocomplete development is over HOT 3
- problem when editing tex file HOT 3
- "vim" is not found HOT 1
- Default CSS and SCSS Omni completion input patterns allow too-short strings HOT 5
- Onmi Window Doesn't Appear for PHP While Typing HOT 2
- SCSS keyword patterns include final colon in strings
- Sass variable ctags that begin with dollar signs aren't included in completion popups HOT 5
- New feature request HOT 1
- brew install vim --with-luajit cant work HOT 1
- jedi-vim omni completions not working sometimes HOT 1
- when I press esc Press ENTER or type command to continue HOT 1
- "Extract the files and put them in your Vim directory" which files? HOT 1
- E: Package 'vim-gnome' has no installation candidate HOT 1
- lua array index in vim now starts with 1 starting with patch-8.2.1066 HOT 1
- Asking for username and password HOT 3
- Use register other than the unnamed one HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neocomplete.vim.