zoukankan      html  css  js  c++  java
  • vim插件安装

    ctags安装:

    1. 安装ctags:apt-get install ctags 或者 老版本系统直接上官网http://ctags.sourceforge.net/
    2. 将ctags-5.8.tar.gz拷贝到ubuntu下
    3. tar xvzf ctags-5.8.tar.gz
    4. 配置./configure

    效果  

    book@book-desktop:~/woo/tools/ctags-5.8$ ./configure 
    Exuberant Ctags, version 5.8
    Linux 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686
    checking whether to install link to etags... no
    checking whether to install readtags object file... no
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether ln -s works... yes
    checking for strip... strip
    checking directory to use for temporary files... /tmp
    checking whether #! works in shell scripts... yes
    checking for case-insensitive filenames... no
    checking selected sort method... external sort utility
    checking for sort... yes
    checking if sort accepts our command line... yes
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking fnmatch.h usability... yes
    checking fnmatch.h presence... yes
    checking for fnmatch.h... yes
    checking stat.h usability... no
    checking stat.h presence... no
    checking for stat.h... no
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking types.h usability... no
    checking types.h presence... no
    checking for types.h... no
    checking for unistd.h... (cached) yes
    checking sys/dir.h usability... yes
    checking sys/dir.h presence... yes
    checking for sys/dir.h... yes
    checking for sys/stat.h... (cached) yes
    checking sys/times.h usability... yes
    checking sys/times.h presence... yes
    checking for sys/times.h... yes
    checking for sys/types.h... (cached) yes
    checking if L_tmpnam is defined in stdio.h... yes
    checking if INT_MAX is defined in limits.h... yes
    checking for size_t... yes
    checking for off_t... yes
    checking for fpos_t... yes
    checking for clock_t... yes
    checking for an ANSI C-conforming const... yes
    checking if struct stat contains st_ino... yes
    checking for fnmatch... yes
    checking for strstr... yes
    checking for strcasecmp... yes
    checking for strncasecmp... yes
    checking for fgetpos... yes
    checking for mkstemp... yes
    checking for opendir... yes
    checking for strerror... yes
    checking for clock... yes
    checking for remove... yes
    checking for truncate... yes
    checking for setenv... yes
    checking for regcomp... yes
    checking if regcomp works... yes
    configure: checking for new missing prototypes...
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    

      5. make

    book@book-desktop:~/woo/tools/ctags-5.8$ make
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c args.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c ant.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c asm.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c asp.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c awk.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c basic.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c beta.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c c.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c cobol.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c dosbatch.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c eiffel.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c entry.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c erlang.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c flex.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c fortran.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c get.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c html.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c jscript.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c keyword.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c lisp.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c lregex.c
    lregex.c: In function ‘processLanguageRegex’:
    lregex.c:411: warning: format not a string literal and no format arguments
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c lua.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c main.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c make.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c matlab.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c ocaml.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c options.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c parse.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c pascal.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c perl.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c php.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c python.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c read.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c rexx.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c routines.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c ruby.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c scheme.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c sh.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c slang.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c sml.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c sort.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c sql.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c strlist.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c tcl.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c tex.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c verilog.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c vhdl.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c vim.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c yacc.c
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c vstring.c
    gcc  -o ctags args.o ant.o asm.o asp.o awk.o basic.o beta.o c.o cobol.o dosbatch.o eiffel.o entry.o erlang.o flex.o fortran.o get.o html.o jscript.o keyword.o lisp.o lregex.o lua.o main.o make.o matlab.o ocaml.o options.o parse.o pascal.o perl.o php.o python.o read.o rexx.o routines.o ruby.o scheme.o sh.o slang.o sml.o sort.o sql.o strlist.o tcl.o tex.o verilog.o vhdl.o vim.o yacc.o vstring.o 
    gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c readtags.c
    

      6. make install

    book@book-desktop:~/woo/tools/ctags-5.8$ sudo make install
    cp ctags /usr/local/bin/ctags  &&  chmod 755 /usr/local/bin/ctags
    cp ./ctags.1 /usr/local/share/man/man1/ctags.1  &&  chmod 644 /usr/local/share/man/man1/ctags.1
    

     vim插件安装:

    1. 将vim.rar解压缩,放入到ubuntu下
    2. 进入vim目录
    3. cp vim* ~ -R
    4. chmod 777 vim*
    5. vim test.c会发现都插件正常使用了

      vim插件地址:http://files.cnblogs.com/files/pokerface/vim.rar

  • 相关阅读:
    C# 面向对象之概念理解(2)
    Linux中常用常用常用快捷键
    shell基本脚本命令
    awk命令详解及应用技巧
    Windows(64位IIS)未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序
    基础知识(net)<3> virtural , new ,override
    WCF REST<2>: 消费WCF REST 服务
    智能表单(2):简单使用HtmlEditor
    智能表单(1) : 开源HtmlEditor介绍
    ASP.NET Web API <2> 跨域消费Web API(JSONP)
  • 原文地址:https://www.cnblogs.com/pokerface/p/5765991.html
Copyright © 2011-2022 走看看