Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


linux:misc:vim

Vim

Resolving **/usr/bin/env: ‘node\r’: No such file or directory**

  • Open file in vim, and use command: :set ff=unix
  • Save file

You should have unix line endings now

Vim plugins installer (vim-plug) and LightLine status bar replacement

curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
~/.vim/plugins.vim
call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
call plug#end()
~/.vimrc
so ~/.vim/plugins.vim
set laststatus=2
if !has('gui_running')
  set t_Co=256
endif
set noshowmode
let g:lightline = { 'colorscheme': 'wombat'}

Launch Vim and run :PlugInstall

~/.bashrc
export TERM=xterm-256color

Discussion

Enter your comment:
Q Y W P N
 
linux/misc/vim.txt · Last modified: 2019/07/17 14:41 by tplecko