Skip to content

Commit f0f4e66

Browse files
committed
Embed snippets in code
1 parent af29bf9 commit f0f4e66

File tree

4 files changed

+85
-4
lines changed

4 files changed

+85
-4
lines changed

_posts/2015-12-01-adding_a_project_to_bookmarks.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ categories: asciicast
1717
change that! Fasten your seatbelts and add your first project to bookmarks
1818
following the steps below!
1919

20-
{% gist ryrych/5e4ec3fb8ccad17e04d8 %}
20+
```console
21+
$ vim
22+
<kbd>CTRL</kbd>+<kbd>C</kbd>
23+
<kbd>b</kbd>
24+
<kbd>a</kbd>
25+
⌗ Add directory to bookmarks: /Users/ryrych/projects/ember_awesome/<kbd>Enter</kbd>
26+
⌗ New bookmark name: Ember is Awesome Bookmark<kbd>Enter</kbd>
27+
```
2128

2229
After adding the project to bookmarks, you choose the project from the list
2330
using <kbd>j</kbd> and <kbd>k</kbd> keys. Press <kbd>Enter</kbd> to confirm.

_posts/2015-12-01-finding-bookmarked-projects.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ Once you [added your first project to bookmarks][1], every time you start
1616
working on the project, after opening *Vim*, you have to select the project in
1717
*Vim-CtrlSpace*. Fortunately it’s a walk in the park! See below how easy it is:
1818

19-
{% gist ryrych/c2d868449e4dcf18cdd1 %}
19+
```console
20+
$ vim
21+
[CTRL]+[C]
22+
[B]
23+
```
2024

2125
Capital <kbd>B</kbd> **opens the project list in a search mode** so you can start
2226
typing your search term.

_posts/2015-12-01-grouping-files.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,41 @@ the project scope. This way a third tab, *Plans & goals* can be added.
2424

2525
Will **learning Vim-CtrlSpace** land in your **2016 Plan & goals** list?
2626

27-
{% gist ryrych/e95ba23a5f71c93cfda4 %}
27+
```console
28+
$ vim
29+
30+
# Open Ember project
31+
[CTRL]+[SPACE]
32+
[B]
33+
>ember<
34+
[Enter]
35+
36+
# Search for `README.md` and open it in the current tab without closing the plugin window
37+
[O]
38+
>readme<
39+
[enter][space]
40+
41+
# Open 3 files in a separate tab (note the `+3` indicator)
42+
[/]
43+
[CTRL]+[U]
44+
>computed<
45+
46+
# Select each file with:
47+
[SHIFT]+[T]
48+
49+
# Clear search term
50+
[/]
51+
[CTRL]+[U]
52+
[/]
53+
54+
# Open list of tabs
55+
[l]
56+
57+
# Give second tab custom label
58+
[j]
59+
[=]
60+
>Computed feature + spec<
61+
[Enter]
62+
[ESC]
63+
[qa]
64+
```

getting-started.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,40 @@ To not mess up your original config, plugins will be installed in
5454

5555
Copy the content and store it somewhere.
5656

57-
<script src="https://gist.github.com/ryrych/895bbabd3f6c40bf7d29.js"></script>
57+
```vim
58+
set nocompatible
59+
filetype off
60+
61+
set rtp+=~/.vim/bundle/Vundle.vim
62+
" Change path if necessary
63+
call vundle#begin('~/vim-ctrlspace-learning')
64+
65+
Plugin 'VundleVim/Vundle.vim'
66+
Plugin 'szw/vim-ctrlspace'
67+
Plugin 'NLKNguyen/papercolor-theme'
68+
69+
call vundle#end()
70+
filetype plugin indent on
71+
72+
set t_Co=256
73+
set background=dark
74+
colorscheme PaperColor
75+
76+
set nocompatible
77+
set hidden
78+
set wildignore=.git,.svn,CVS,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif,*.pyc,tags,*.tags
79+
80+
if has("gui_running")
81+
" Settings for MacVim and Inconsolata font
82+
let g:CtrlSpaceSymbols = { "File": "◯", "CTab": "▣", "Tabs": "▢" }
83+
endif
84+
85+
if executable("ag")
86+
let g:CtrlSpaceGlobCommand = 'ag -l --nocolor -g ""'
87+
endif
88+
89+
let g:CtrlSpaceIgnoredFiles = '\v(tmp|temp|Godeps)[\/]'
90+
```
5891

5992
### Install Vim-CtrlSpace and plugins
6093

0 commit comments

Comments
 (0)