linux:misc:vim

Differences

This shows you the differences between two versions of the page.


linux:misc:vim [2019/10/31 09:05] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 =====
 +<code bash>curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim</code>
 +
 +<code bash ~/.vim/plugins.vim>
 +call plug#begin('~/.vim/plugged')
 +Plug 'itchyny/lightline.vim'
 +call plug#end()
 +</code>
 +
 +<code bash ~/.vimrc>
 +so ~/.vim/plugins.vim
 +set laststatus=2
 +if !has('gui_running')
 +  set t_Co=256
 +endif
 +set noshowmode
 +let g:lightline = { 'colorscheme': 'wombat'}
 +</code>
 +
 +Launch Vim and run **:PlugInstall**
 +
 +<code bash ~/.bashrc>
 +export TERM=xterm-256color
 +</code>
 +
  
  • linux/misc/vim.txt
  • Last modified: 2019/10/31 09:05
  • by 127.0.0.1