Linux基础知识总结2 | vim与bash 《鸟哥的Linux私房菜》学习笔记 1.Vim的使用 一般指令模式:vim进去模式的模式 编辑模式:在一般模式下按 “i, I, o, O, a, A, r, R” 可以进入编辑模式 命令行命令模式:在一般模式下输入 “: / ?” 任意一个,可以将光标移动到最下面那一列 vim fileName可以新建一个文件,编
一般设置,比如不要 tab 等 autocmd FileType python set tabstop=4 shiftwidth=4 expandtab autocmd FileType python map <F12> :!python %<CR> " 选中状态下 Ctrl+c 复制 "vmap <C-c> "+y "十六进制显示文件 nnoremap <leader>H :%!xxd<CR> "二进制显示文件 nnoremap <leader>B :%!xxd -r<...
nopluginDon't load plugin scripts-p[N] Open N tab pages (default: one for each file)-o[N] Open N windows (default: one for each file)-O[N] Like -o but split vertically+ Start at end of file+<lnum> Start at line <lnum>--cmd <command> Execute <command> before loading any ...
r 使用参考档的时间记录,与 --file 的效果一样。 d 设定时间与日期,可以使用各种不同的格式。 t 设定档案的时间记录,格式与 date 指令相同。 --no-create 不会建立新档案。 --help 列出指令格式。 --version 列出版本讯息。 使用touch 创建一个空文件 在Linux 系统上使用 touch 命令创建...
In the ideavimrc file, map an action using the map command and the <Action> keyword, for example: map \r <Action>(ReformatCode) Press CtrlShift0O to reload the changes. tip You can also execute actions as Ex commands. For more information, refer to IdeaVim documentation.Was...
that re-includes files excluded by a previous exclusion pattern) and are faster (in the given order as showed a coarse benchmark on Linux) than that built-in. They can be used by adding the following lines to vimrc:if executable('rg') let g:CtrlSpaceGlobCommand = 'rg --color=never ...
Insert the current date and time (useful for timestamps):iab xdate <C-r>=strftime("%d/%m/%y %H:%M:%S")<cr>Command line mappings$q is super useful when browsing on the command line. It deletes everything until the last slash:
1、Shell 是指"提供给使用者使用界面"的软件(命令解析器),类似于 DOS 下的 command(命令行)和后来的 cmd.exe 。它之所以被称作 Shell 是因为它隐藏了操作系统底层的细节。 ■ Shell 脚本(shell script): ■ Shell 环境: 2、bash: ☆四、Linux 目录结构介绍 ☆五、Linux系统分为两种: 1、RedHat系列:Redhat...
1, mt - 移动到的目录 2, mf - 标记要移动的文件 3, mc - 移动/复制 R 移动文件 打开当前编辑文件的目录 :Explore :Hexplore :Nexplore :Pexplore :Sexplore :Texplore :Vexplore 好文推荐 27个常用的Linux命令 Vim编辑器常用命令 git - 简明指南...
Linux常用命令 解压文件 vim操作tips shell脚本tips 格式转换(ImageMagick) CDO文件操作 NCO文件操作 循环读取文本文件注意事项 Mrakdown Linux常用命令 使用man command-name 获取命令的详细信息 du filename 评估文件大小 chmod +x file 文件添加权限,在非管理员的服务器上,不要忘记对.sh文件+x ...