随笔分类 -  Vim

摘要:The default Vim provided by Ubuntu 16.04 even did not have Python support. That's insane. I say, what if I wanted to use Vim as a Python IDE in Linux 阅读全文
posted @ 2016-06-22 21:43 spaceship9 阅读(344) 评论(0) 推荐(0) 编辑
摘要:Here is a brief introduction and package of dotfiles for linux/unix user.I think there are enough informative description about the package.Here is th... 阅读全文
posted @ 2014-05-15 10:12 spaceship9 阅读(223) 评论(0) 推荐(0) 编辑
摘要:Here I got a very neat plugin for vim which is awesome indeed.It's from youtube years before.So let's check this out. :)http://www.youtube.com/watch?v=67OZNp9Z0CQ&noredirect=1you can download the reference tools here: https://github.com/klen/python-mode#how-to-installSomeone mentioned ab 阅读全文
posted @ 2013-12-17 10:46 spaceship9 阅读(307) 评论(0) 推荐(0) 编辑
摘要:This is a great tutorial about tmux quick start:http://www.youtube.com/watch?v=wKEGA8oEWXw&noredirect=1and its text script , just read it :)http://timestream.net/screencasts/tmux-script.txtHere's the very nice functionailities.1)install tmux2)tmux works in this way.terminal ----- Tmux client 阅读全文
posted @ 2013-12-09 15:35 spaceship9 阅读(348) 评论(0) 推荐(0) 编辑
摘要:采用的是mario register这个方法,然后,把一段 auto-increament 操作记录下来,然后playback 循环往复多次。就达到了,每行都递增的目的。我写的文字如下:vim 输入的数字自动递增。采用的macro register1. 输入一行以后,开始输入,进入macro register,qa2. 复制这一行yy3. 将游标移动到需要递增的数字上,例子里面的是24. 输入ctrl + a (使第二行的数字递增为2)5. 推出 macro registerqTIPS:如果要输入多少次playback (重放功能)语法[number]@a此例子中,是输入的10@a表现结果为自 阅读全文
posted @ 2013-06-23 22:04 spaceship9 阅读(1401) 评论(0) 推荐(0) 编辑
摘要:很有用的命令。很给力的说。http://vim.wikia.com/wiki/Making_a_list_of_numbers我在 html中需要增加新的标签的时候,就有用到过。原来的html代码为: <div class="edit_box" id="box1"> <label> <h1 class="title">Title1</h1> <p class="description">很好</p> </label> ... 阅读全文
posted @ 2013-06-21 01:05 spaceship9 阅读(919) 评论(0) 推荐(0) 编辑
摘要:转发来源地址:http://blog.csdn.net/glorin/article/details/6317098替換(substitute):[range]s/pattern/string/[c,e,g,i]5.1range指的是範圍,1,7 指從第一行至第七行,1,$ 指從第一行至最後一行,也就是整篇文章,也可以 % 代表。還記得嗎? % 是目前編輯的文章,# 是前一次編輯的文章。pattern就是要被替換掉的字串,可以用 regexp 來表示。string將 pattern 由 string 所取代。cconfirm,每次替換前會詢問。e不顯示 error。gglobe,不詢問,整行替 阅读全文
posted @ 2013-06-20 19:02 spaceship9 阅读(181) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示