fwind's blog

coder


  • Home

  • Archives

linux下神级编辑器vim 简说

Posted on 2019-05-28

linux,vim

  • 查看
    在控制台下直接输入vim可以查看vim基本信息:
    vim
    
    vim.png
    键入以下命令,即可使用vim查看文件内容 :
    vim [文件名]
    
  • 显示行标
    在查看模式下,输入组合键Shift加:,输入命令:set number
  • 行操作
    1.定位最后一行:输入组合键Shift加G
    2.定位第一行:输入组合键Shift加1G
    3.定位第n行:输入组合键Shift加nG
  • 移动光标
    1.移动光标到行首::输入组合键Shift加^
    2.移动光标到行首::输入组合键Shift加$
  • 编辑
    直接输入i,可以开启编辑模式,使用键盘方向键移动光标进行编辑,退出编辑模式按Esc键即可。
  • 删除
    1.删除一行:双击d
  • 退出
    在查看模式下,输入组合键Shift加:,如果文件内容有变化,输入!wq保存退出;如果文件内容无变化,直接输入q即可退出;如果文件内容有变化但是又不打算保存,可以输入!q强制退出不保存。

ps:vim编辑器极为强大,这里只是冰山入门一角,感兴趣的同学可以自行查阅学习。

一些有趣的linux指令

Posted on 2019-03-01

linux,ubuntu,command

  • 黑客帝国来袭
    安装:

    apt-get install cmatrix
    

    执行:

    cmatrix
    

    效果:
    cmatrix.png

  • 火焰
    安装:

    apt-get install libaa-bin
    

    执行:

    aafire
    

    效果:
    aafire.png

  • 小火车,呜呜呜
    安装:

    apt-get install sl
    

    执行:

    sl
    

    效果:
    sl.png

Hello World

Posted on 2019-03-01

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

12

fwind

code

13 posts
7 tags
© 2025 fwind
Powered by Hexo
|
Theme — NexT.Muse v5.1.4