
通常,与用于修复或编写某些单行脚本的时间相比,与编辑器花费的时间相比,我们花费的时间更多。我相信这个问题可以很快解决,因为为此有控制台编辑器
背景
, . .
, 2 — , 10 , . — . .
, "" . , , . .
?
2020 : VSCode, Sublime text, Atom, Vim, Neovim, Emacs, NotePad++, Brackets, Nano .
NeoVim?
, . , , ", ( ) " … ( VSCode) 5 , 3 , 2 , ( - Python, ) 10 . 20 ( , , ) - .
: — , NeoVim — . 2 ( 5, ). NeoVim . . : " Vim', " — , — , .
Vim?
NeoVim . " ", , , . , :
*standard-plugin-list*
Standard plugins
|pi_gzip.txt| Reading and writing compressed files
|pi_health.txt| Healthcheck framework
|pi_matchit.txt| Extended |%| matching
|pi_msgpack.txt| msgpack utilities
|pi_netrw.txt| Reading and writing files over a network
|pi_paren.txt| Highlight matching parens
|pi_spec.txt| Filetype plugin to work with rpm spec files
|pi_tar.txt| Tar file explorer
|pi_zip.txt| Zip archive explorer
:help () NeoVim
( )
( )
Vim
- Vim Vimscript
- : help nvim-from-vim, Vim
NeoVim
j
—
k
—
h
—
l
—
i
— (insert)
a
— (append)
I
—
A
—
dd
— (delete)
dw
— (delete a word)
dl
— (delete a letter)
o
— (insert) ,
O
— ,
, delete
: 7dl
— 7
- visual , y
(yank)
p
— () (paste)
w
— (word)
W
— ,
b
— ( ) (, ) (backword)
B
— (, )
e
— ( ) (end of the word)
E
— ( )
gg
—
G
—
^
—
$
—
/
— (n — ; N — )
?
—
, 50 , 3 . . . — , Ctrl+F, . .

NeoVim 3-4 (, ). NeoVim — . Vim- . , , - , .
这将是不诚实的,如果我没有提供一个链接到这个奇妙的编辑
//我添加了项目的GitHub的 - 约。主持人
正如Tim Berners-Lee所说:
在您了解魔术的原理之后,魔术就不复存在了。
为了以防万一,我将在这里保留使用的配置:
call plug#begin()
" FuzzyFinder ( )
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" NERDTree -
Plug 'preservim/nerdtree'
" oc -
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" NERDTree
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'scrooloose/nerdcommenter'
" Git, NERDTree
Plug 'airblade/vim-gitgutter'
Plug 'ryanoasis/vim-devicons'
"
Plug 'itchyny/lightline.vim'
"
Plug 'joshdick/onedark.vim'
Plug 'cocopon/iceberg.vim'
"
Plug 'scrooloose/syntastic'
"
"Plug 'Valloric/YouCompleteMe'
" Python
"Plug 'klen/python-mode'
call plug#end()
" Vim
set nocompatible
set t_Co=256
"
" **NeoVim**
set number
set ruler
" jkl - Escape Insert
inoremap jkl <ESC>
" ,
nmap j
nmap k
nmap h
nmap l
nmap i
nmap a
nmap d
" Ctrl+n :NERDTree
nmap <C-n> :NERDTreeToggle<CR>
vmap ++ <plug>NERDCommenterToggle
nmap ++ <plug>NERDCommenterToggl
let g:NERDTreeGitStatusWithFlags = 1
let g:NERDTreeIgnore = ['^node_modules$']
" **NeoVim**
syntax on
colorscheme iceberg
" :
set noshowmode " --INSERT--
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'iceberg',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }