Showing posts with label Vim (text editor). Show all posts
Showing posts with label Vim (text editor). Show all posts

Tuesday, November 8, 2016

Manjaro Linux: Installin vi and Vim Text Editors

Command:

$ sudo pacman -S vi


Result:

resolving dependencies...
looking for conflicting packages...

Packages (1) vi-1:070224-2

Total Download Size:   0.14 MiB
Total Installed Size:  0.28 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 vi-1:070224-2-x86_64                      148.0 KiB  1850K/s 00:00 [#####################################] 100%
(1/1) checking keys in keyring                                      [#####################################] 100%
(1/1) checking package integrity                                    [#####################################] 100%
(1/1) loading package files                                         [#####################################] 100%
(1/1) checking for file conflicts                                   [#####################################] 100%
(1/1) checking available disk space                                 [#####################################] 100%
:: Processing package changes...
(1/1) installing vi                                                 [#####################################] 100%
Optional dependencies for vi
    s-nail: used by the preserve command for notification [installed]


Command:

 $ sudo pacman -S vim


Result:

resolving dependencies...
looking for conflicting packages...

Packages (2) vim-runtime-8.0.0055-1  vim-8.0.0055-1

Total Download Size:    6.35 MiB
Total Installed Size:  29.23 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 vim-runtime-8.0.0055-1-x86_64               5.1 MiB  2.65M/s 00:02 [#####################################] 100%
 vim-8.0.0055-1-x86_64                    1239.7 KiB  3.00M/s 00:00 [#####################################] 100%
(2/2) checking keys in keyring                                      [#####################################] 100%
(2/2) checking package integrity                                    [#####################################] 100%
(2/2) loading package files                                         [#####################################] 100%
(2/2) checking for file conflicts                                   [#####################################] 100%
(2/2) checking available disk space                                 [#####################################] 100%
:: Processing package changes...
(1/2) installing vim-runtime                                        [#####################################] 100%
(2/2) installing vim                                                [#####################################] 100%
Optional dependencies for vim
    python2: Python 2 language support [installed]
    python: Python 3 language support [installed]
    ruby: Ruby language support
    lua: Lua language support [installed]
    perl: Perl language support [installed]
    tcl: Tcl language support [installed]

Tuesday, September 13, 2016

macOS Sierra: Installing Macvim with Lua

Command:

$ brew install macvim --with-lua


Result:

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for macvim: cscope
==> Installing macvim dependency: cscope
==> Downloading https://homebrew.bintray.com/bottles/cscope-15.8b.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cscope-15.8b.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cscope/15.8b: 10 files, 714K
==> Installing macvim
==> Using the sandbox
==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-108.tar.gz
==> Downloading from https://codeload.github.com/macvim-dev/macvim/tar.gz/snapshot-108
######################################################################## 100.0%
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Ho
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/macvim/7.4-108: 2,099 files, 33.5M, built in 1 minute 47 seconds


Command:

$ mvim --version | grep lua


Result:

+dialog_con_gui  +lua             +rightleft       +writebackup
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa  -L/usr/local/opt/lua/lib -llua -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python   -framework Ruby  

macOS Sierra: Vim: Installing Lua Required for NeoBundle (Plug-in Manager): Fail

Command:

$ vim --version | grep lua


Result:

+dialog_con      -lua             -rightleft       +windows


Command:

$ brew install vim --with-lua


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 4fb691e to 5a264cf.
Updated 2 taps (homebrew/core, homebrew/python).
==> New Formulae
hashcat                                                     httpstat                                                    tldr                                                    
==> Updated Formulae
afl-fuzz              cli53                 format-udf            homebrew/python/h5py  macvim                pam_yubico            svtplay-dl            wireshark        
antigen               collectd              freetype ✔            hub                   mkvtoolnix            planck                swagger-codegen       youtube-dl        
apache-flink          cryptopp              gd                    ibex                  mldonkey              pre-commit            texinfo          
autojump              dropbear              gnutls                imagemagick           mysql                 prometheus            tile38            
buku                  etcd                  gron                  jenkins               nghttp2               protobuf              vert.x            
carthage              fabio                 gtk+                  kapacitor             nodeenv               roswell               vim              
cattle                folly                 h2o                   libbluray             noti                  shadowsocks-libev     voms              
chromedriver          fontconfig            hadoop                libdrawtext           notmuch               simple-tiles          watchman          
==> Renamed Formulae
sonar -> sonarqube

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for vim: lua
==> Installing vim dependency: lua
==> Downloading https://homebrew.bintray.com/bottles/lua-5.2.4_4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring lua-5.2.4_4.sierra.bottle.tar.gz
==> Caveats
Please be aware due to the way Luarocks is designed any binaries installed
via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin.

This is, for now, unavoidable. If this is troublesome for you, you can build
rocks with the `--tree=` command to a special, non-conflicting location and
then add that to your `$PATH`.
==> Summary
🍺  /usr/local/Cellar/lua/5.2.4_4: 143 files, 697.4K
==> Installing vim
==> Using the sandbox
==> Downloading https://github.com/vim/vim/archive/v8.0.0002.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0002
######################################################################## 100.0%
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0002/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-l
==> make
==> make install prefix=/usr/local/Cellar/vim/8.0.0002 STRIP=/usr/bin/true
🍺  /usr/local/Cellar/vim/8.0.0002: 1,703 files, 23.2M, built in 1 minute 23 seconds


Command:

$ vim --version | grep lua


Result:

+dialog_con      -lua             -rightleft       +windows

macOS Sierra: Vim: Installing NeoBundle (Plug-in Manager)

Command:

$ cat installNeoBundle.sh


Result:

#!/bin/sh

if type curl; then
:
else
echo 'Please install curl or update your path to include the curl executable!'
exit 1
fi

tmpfile=`mktemp`

curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > $tmpfile
sh $tmpfile


Command:

$ sh installNeoBundle.sh


Result:

curl is /usr/bin/curl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4088  100  4088    0     0   3268      0  0:00:01  0:00:01 --:--:--  3267
/Users/USERNAME/.vim/bundle/neobundle.vim
/Users/USERNAME/.config/nvim/bundle/neobundle.vim
git is /usr/local/bin/git
Begin fetching NeoBundle...
Cloning into '/Users/USERNAME/.vim/bundle/neobundle.vim'...
remote: Counting objects: 9188, done.
remote: Total 9188 (delta 0), reused 0 (delta 0), pack-reused 9188
Receiving objects: 100% (9188/9188), 2.23 MiB | 486.00 KiB/s, done.
Resolving deltas: 100% (4453/4453), done.
Checking connectivity... done.
Done.
Please add the following settings for NeoBundle to the top of your .vimrc file:


"NeoBundle Scripts-----------------------------
if &compatible
  set nocompatible               " Be iMproved
endif

" Required:
set runtimepath+=/Users/USERNAME/.vim/bundle/neobundle.vim/

" Required:
call neobundle#begin(expand('/Users/USERNAME/.vim/bundle'))

" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'

" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'

" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }

" Required:
call neobundle#end()

" Required:
filetype plugin indent on

" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------


Done.
Complete setup NeoBundle!

macOS Sierra: Vim Version

Command:

$ vim --version


Result:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug  1 2016 19:37:21)
Included patches: 1-898
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             -farsi           -mouse_netterm   +syntax
-arabic          +file_in_path    -mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           -mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
+builtin_terms   -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         -gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    -keymap          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             -rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      -sniff           -xsmp
+eval            -mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv        

Ubuntu: Vim Version

Command:

$ vim --version


Result:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 08 2016 11:38:28)
Included patches: 1-1689
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
-balloon_eval    +float           +mouse_urxvt     -tcl
-browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
-clientserver    +iconv           +packages        -toolbar
-clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             -perl            +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      -python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con      -lua             +rightleft       +writebackup
+diff            +menu            -ruby            -X11
+digraphs        +mksession       +scrollbind      -xfontset
-dnd             +modify_fname    +signs           -xim
-ebcdic          +mouse           +smartindent     -xsmp
+emacs_tags      -mouseshape      +startuptime     -xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    -xpm
+extra_search    -mouse_jsbterm   +syntax        
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1    
Linking: gcc   -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux -lacl -lattr -lgpm -ldl      

Ubuntu: Vim and vi's True Identity

Command:

$ ls -l /usr/bin/vim


Result:

lrwxrwxrwx 1 root root 21 May 15 13:42 /usr/bin/vim -> /etc/alternatives/vim


Command:

$ ls -l /usr/bin/vi


Result:

lrwxrwxrwx 1 root root 20 May 15 13:37 /usr/bin/vi -> /etc/alternatives/vi


Command:

$ ls -l /etc/alternatives/vim


Result:

lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vim -> /usr/bin/vim.basic


Command:

$ ls -l /etc/alternatives/vi


Result:

lrwxrwxrwx 1 root root 18 May 15 13:42 /etc/alternatives/vi -> /usr/bin/vim.basic