vim 删除多行和定位到某行&查看特殊字符

vim 删除多行和定位到某行&查看特殊字符


删除多行
400 #     request = urllib2.Request(url, data=json.dumps(reqBody), headers=header)
401 #     response = urllib2.urlopen(request)
402 #     responseData = response.read()
403 #     responseJson = json.loads(responseData)
404 #     print("response:" + responseData)
405 #     print("data:", responseJson['data'])
406 #     print("\n")
407 #
408 #     result = {}
409 #     list = []
410 #     for data in responseJson['data']:
411 #         json_list = {}
412 #         json_list['name'] = data['id']
413 #         json_list['count'] = data['pv']
414 #         json_list['avgTime'] = data['timeLong']
415 #         list.append(json_list)
416 #
417 #     result['data'] = list
418 #     print('ajaxUrlGroupBy-result:', result)
419 #     return result


命令模式下400,10d后
400 #     request = urllib2.Request(url, data=json.dumps(reqBody), headers=header)
401 #     response = urllib2.urlopen(request)
402 #         json_list['count'] = data['pv']
403 #         json_list['avgTime'] = data['timeLong']
404 #         list.append(json_list)
405 #
406 #     result['data'] = list
407 #     print('ajaxUrlGroupBy-result:', result)
408 #     return result
409 #
410 #
411 #
412 # def make_app():
413 #     ## todo 加一个分时的计算接口
414 #     return tornado.web.Application([



跳到某行
比如想跳转到文本的第12行,可以执行如下命令:

(1)12gg / 12G

(2):12

(3)打开文件时输入vim +12 filename

查看特殊字符

命令: set list

The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms.  The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.


    aad    bbb    ccc
    qqq aaa bbb
The U.S. Government Department of Commerce, Bureau of Industry and$
Security (BIS), has classified this software as Export Commodity $
Control Number (ECCN) 5D002.C.1, which includes information security$
software using or performing cryptographic functions with asymmetric$
algorithms.  The form and manner of this Apache Software Foundation$
distribution makes it eligible for export under the License Exception$
ENC Technology Software Unrestricted (TSU) exception (see the BIS $
Export Administration Regulations, Section 740.13) for both object $
code and source code.$
$
$
^Iaad    bbb    ccc$
^Iqqq^Iaaa^Ibbb$
~
~
~
~/zhang/flink-1.7.2/README.txt [utf-8]  35,2                                                                                     35/35 (100%)2019-11-29-14:24
:set list

参考:

  • https://blog.csdn.net/wallwind/article/details/7633356

  • https://blog.csdn.net/u011848617/article/details/38434359

你可能感兴趣的:(vim 删除多行和定位到某行&查看特殊字符)