From 42dcad95e62efea476f25560cb59a108097a7c65 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 18 Sep 2013 11:44:54 -0700 Subject: try something for code color --- ...2008-06-14-how-to-use-vim-as-a-personal-wiki.md | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to '_posts') diff --git a/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md b/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md index 5b8899b..68ad9b0 100644 --- a/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md +++ b/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md @@ -17,18 +17,20 @@ I've got a **wiki** directory in my home directory, with all my files in it. I In my wiki directory, i've got another .vimrc with some specific mapping: - map ,I :e index.mkd - map ,T :e todo.mkd - map ,S :e someday.mkd - map ,c :s/^ /c/ - map ,w :s/^ /w/ - map ,x :s/^ /x/ - map gf :e .mkd " open page - map :bp - imap \date =strftime("%Y-%m-%d") - set tabstop=2 " Number of spaces counts for. - set shiftwidth=2 " Unify - set softtabstop=2 " Unify +```vimml +map ,I :e index.mkd +map ,T :e todo.mkd +map ,S :e someday.mkd +map ,c :s/^ /c/ +map ,w :s/^ /w/ +map ,x :s/^ /x/ +map gf :e .mkd " open page +map :bp +imap \date =strftime("%Y-%m-%d") +set tabstop=2 " Number of spaces counts for. +set shiftwidth=2 " Unify +set softtabstop=2 " Unify +``` I organize my files in directory. I've got a *work*, *lists*, *recipes*, *misc*, ... and I put my files in this directory. -- cgit v1.2.3