003_vim使用tip

vim 使用tip

编写python程序

  1. 自动插入头信息:

    • #!/usr/bin/env python
    • # coding=utf-8
  • 输入.或按TAB键会触发代码补全功能
  • :w保存代码之后会自动检查代码错误与规范
  • F6可以按pep8格式对代码格式优化
  • F5可以一键执行代码

多窗口操作

  1. 使用:sp + 文件名可以水平分割窗口
  • 使用:vs + 文件名可以垂直分割窗口
  • 使用Ctrl + w可以快速在窗口间切换

编写markdown文件

  1. 编写markdown文件(*.md)的时候,在normal模式下按 md 即可在当前目录下生成相应的html文件
  • 生成之后还是在normal模式按fi可以使用firefox打开相应的html文件预览
  • 当然也可以使用万能的F5键来一键转换并打开预览
  • 如果打开过程中屏幕出现一些混乱信息,可以按Ctrl + l来恢复

快速注释

  • \ 可以根据文件类型自动注释
时间: 2024-08-24 22:59:03

003_vim使用tip的相关文章

Tip:JSP标签也称之为Jsp Action(JSP动作)元素

JSP标签也称之为Jsp Action(JSP动作)元素,它用于在Jsp页面中提供业务逻辑功能,避免在JSP页面中直接编写java代码,造成jsp页面难以维护. ================ <jsp:include>标签用于把另外一个资源的输出内容插入进当前JSP页面的输出内容之中,这种在JSP页面执行时的引入方式称之为动态引入.语法: <jsp:include page="relativeURL | <%=expression%>" flush=&

命令执行的tip

先看一个例子:本地测试环境:php 5.4.45 + win <?php $command = 'dir '.$_POST['dir']; $escaped_command = escapeshellcmd($command); var_dump($escaped_command); file_put_contents('out.bat',$escaped_command); system('out.bat'); ?> 应该如何去绕过执行? escapeshellcmd http://php.

Vagrant Tip: Virtualbox Guest Additions

Vagrant Tip: Virtualbox Guest Additions 12 February 2016 Tired of seeing this message when you run vagrant up? ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not m

解决 failed to push some refs to &#39;[email&#160;protected]:zle1992/head-first-java&#39; hint: Updates were rejected because the tip of your curr

问题描述: 寒假之前用实验室电脑push到github 上head first java 的程序,寒假回家后,想用自己的笔记本继续编,继续push . 我先从github下载zip到本地,然后 解压后,继续编程,但是用git push origin master 出现问题如下: 试了很多方法,最终解决方案如下: 思路: 新建一个文件夹,用pull 命令把文件从github下载下来,编写好新的程序,git add  git commit  git push 参考: http://www.tuico

Saw a tweet from Andrew Liam Trask, sounds like Oxford DeepNLP 2017 class have all videos slides practicals all up. Thanks Andrew for the tip!

Saw a tweet from Andrew Liam Trask, sounds like Oxford DeepNLP 2017 class have all videos/slides/practicals all up. Thanks Andrew for the tip! Preamble This repository contains the lecture slides and course description for the Deep Natural Language P

封装tip控件

在界面上有时需要显示一个提示,大多的前端框架都把提示做成一个带有小尖角的提示框,因此自己也仿照了实现了一下,效果图如下: 尖角的实现很简单的,一般都是通过css将div的宽高设置为0,然后将尖角朝向的那一边的边的宽度设置为0,然后给两边的边框设置宽度为一个大于0的数字,并将颜色设置为透明,然后将剩余的一边框设置宽度和颜色即可. 下面是我的实现方式: 首先是对应的HTML文件: <!DOCTYPE> <html> <head> <title>tip_demo&

tip of Firefox extention tab mix plus

Tabs are presented in most-recently-used order, similar to Alt+Tab on various operating systems tip of Firefox extention tab mix plus,布布扣,bubuko.com

tip of Firefox extention foxyproxy

tip of Firefox extention foxyproxytip of Firefox extention foxyproxy,布布扣,bubuko.com

小tip:CSS3下的渐变文字效果实现——张鑫旭

by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=1601 一.方法一:借助mask-image属性 可以狠狠地点击这里:CSS3下的渐变文字效果方法一demo 如果您手头上的浏览器是Chrome或是Safari,则您可以在demo页面中看到类似下面的效果: 相应的HTML代码如下: <h2 class="text-gradient" data-text=