Commits

Jiyin Yiyong committed 6a0d0e6

update breaks

  • Participants
  • Parent commits 4985028

Comments (0)

Files changed (2)

lib/markup.coffee

 
 color =require("highlight").Highlight
 
-marked.setOptions {
+marked.setOptions
   gfm: yes
   sanitize: yes
   highlight: color
-}
+  breaks: yes
 
 exports.markup = (file, url) ->
   extname = path.extname url
   if extname in ['.md', '.markdown']
-    ret = marked file.replace(/\n/g, "  \n")
+    ret = marked file
     # show ret
     ret
   else if extname in ['.wl', '.willow']
     ret =  willow.willow file
     ret
-  else file
+  else file

posts/linux/vim/autocomplete-and-save.md

+
+## Vim 自动补全, 以及 `strl+s` 保存
+
+不喜欢 Vim, 有图形界面时用 Vim 主要把问题变复杂的
+但在 Sublime Text 无法用中文时还是要求助 Vim, 基本的配置
+
+需要的功能是 `ctrl+s` 时保存文件, 网上这个办法实现了
+http://fatkun.com/2011/05/vim-ctrl-s.html
+
+然后是空格和缩进的基本配置, 搜到了对的版本, 加在 `~/.vim` 即可
+http://vim.wikia.com/wiki/Converting_tabs_to_spaces
+```vimscript
+set tabstop=2
+set shiftwidth=2
+set expandtab
+```