vim.opt.mouse ='a'-- allow the mouse to be used in Nvim-- Tabvim.opt.tabstop =4-- number of visual spaces per TABvim.opt.softtabstop =4-- number of spacesin tab when editingvim.opt.shiftwidth =4-- insert 4 spaces on a tabvim.opt.expandtab =true-- tabs are spaces, mainly b...
ShortcutAction tt Open file browser ? show help (in explorer) rnvimr - file browser Make sure you have ranger installed Press R to open Ranger (file selector) And Within rnvimr (ranger), you can: ShortcutAction Ctrl t Open the file in a new tab Ctrl x Split up and down with ...
Open a file: nvim path/to/file Enter text editing mode (insert mode): <Esc>i Copy ("yank") or cut ("delete") the current line (paste it with P): <Esc>yy|dd Enter normal mode and undo the last operation: <Esc>u Search for a pattern in the file (press n/N to go to next...
:e <filename>打开文件并编辑 :saveas <filename>另存为文件 :r <filename>读取文件并将内容插入到光标后 :r !dir将dir命令的输出捕获并插入到光标后 :close关闭文件 :q退出 :q!强制退出 :wa保存所有文件 :cd <path>切换Vim当前路径 :new打开一个新的窗口编辑新文件 ...
exists('g:loaded_defx') | finish | endif " Define mappings "cnoreabbrev sf Defx -listed -new " \ -columns=indent:mark:icon:icons:filename:git:size " \ -buffer-name=tab`tabpagenr()`<CR> nnoremap <silent>sf :<C-u>Defx -listed -resume \ -columns=indent:mark:icon:icons:filename:...
set nowritebackup " only in case you don't want a backup file while editing set noundofile " no undo files "折叠功能 "折叠 set nofoldenable "语法高亮 syntax on filetype on filetype plugin on set ignorecase set mouse=a "搜索高亮
change_root_to_node, opts("CD")) -- END_DEFAULT_ON_ATTACH -- Customize keymap --vim.keymap.set("n", "c", copy_file_to, opts("Copy File To")) --vim.keymap.set("n", "t", api.node.open.tab, opts("Open: New Tab")) -- 以上是默认的 keymap,注释掉的是我需要修改的自己习惯...
("1", l.TM_FILENAME), {}), }), -- Set store_selection_keys = "<Tab>" (for example) in your -- luasnip.config.setup() call to access TM_SELECTED_TEXT. In -- this case, select a URL, hit Tab, then expand this snippet. s("link_url", { t(''), i(1), t(""), i...
let NERDTreeMapOpenInTab = "o" let NERDTreeMapPreview = "" let NERDTreeMapCloseDir = "n" let NERDTreeMapChangeRoot = "y" let NERDTreeShowLineNumbers=1 let NERDTreeShowHidden=1 let NERDTreeWinSize=25 " automatically startup NERDTree when open a file using nvim then focus the file instead...
new filea remove file/directoryd rename file/directoryr open directoryo/Enter close directoryo/Backspace copy filenamey copy relative pathY copy absolute pathgy toggle file/directory begin with dotH toggle hidden file/directory configured in nvim-treeI ...