This is the version 5f54dfcf8c78ad0733b892f5 from 2020-09-06 13:10:39 comment: 'some commands'
nvim ed
...a vim-based text editor!
Table of Contents
basic usage ed
leave any mode by ESC ...go into "normal mode"
command mode ed
From general mode type :Some commands:
:q quit :q! quit (ignore changes) :wq save + quit :w save :!XXX run a shell command XXX :r FFF read a file and insert at cursor :r!XXX run a shell command and insert the output
TAB can display auto complete
normal mode ed
/ search n next i edit mode dd delete line yy copy line p paste line u undo Ctrl+r redo
insert mode ed
Almost like a regular text editor...
nerd tree ed
- install vim-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'- install nerdtree
git clone https://github.com/preservim/nerdtree.git ~/.vim/pack/vendor/start/nerdtree vim -u NONE -c "helptags ~/.vim/pack/vendor/start/nerdtree/doc" -c q
- edit .config/nvim/init.vim
call plug#begin()
Plug 'preservim/nerdtree'
call plug#end()
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endifESC:PlugInstall
Categories: Computer