Skip to content

Commit f19808f

Browse files
committed
Reformat asciicasts commands
1 parent fd262a1 commit f19808f

File tree

3 files changed

+78
-53
lines changed

3 files changed

+78
-53
lines changed

_posts/2015-12-01-adding_a_project_to_bookmarks.md

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,66 @@ categories: asciicast
1717
change that! Fasten your seatbelts and add your first project to bookmarks
1818
following the steps below!
1919

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-
```
20+
1. <kbd>CTRL</kbd>+<kbd>SPACE</kbd>
21+
2. <kbd>b</kbd>
22+
3. <kbd>a</kbd>
23+
4. *Vim-CtrlSpace* will ask you to type the path to the project
24+
5. Confirm the path with <kbd>Enter</kbd>
25+
6. Optionally you can change the bookmark name
26+
27+
After adding the project to bookmarks, choose the project from the list using
28+
either:
2829

29-
After adding the project to bookmarks, you choose the project from the list
30-
using <kbd>j</kbd> and <kbd>k</kbd> keys. Press <kbd>Enter</kbd> to confirm.
30+
- <kbd>j</kbd> and <kbd>k</kbd>
31+
- toggling search mode with <kbd>/</kbd> when the list is long
3132

32-
An unnamed tab should open.
33+
Press <kbd>Enter</kbd> to confirm the choice. An unnamed tab should open.
3334

3435
```
3536
> [1*No Name] ★
3637
```
3738

38-
Press <kbd>o</kbd> to open project file list. Press <kbd>r</kbd> to index all files from the
39-
project. After indexing you should get this message:
39+
1. Press <kbd>o</kbd> to open project file list.
40+
2. Press <kbd>r</kbd> to index all project files.
41+
42+
After indexing you should get this message:
4043

4144
```
4245
⌗ Collecting files... Done (399).
4346
```
47+
48+
Now you’re ready to feel the power of *Vim-CtrlSpace*!
49+
50+
## Common questions
51+
52+
### Re-indexing — do I need it?
53+
54+
Almost **each editor**, or *IDE* you have had experience with, **re-index
55+
files**. Many of them do it automatically for you. This allows for faster
56+
searching files. Some *IDE* like *RubyMine* can, in large projects, hang even
57+
a powerful *Macbook Pro*.
58+
59+
*Vim-CtrlSpace* allows you to re-index files **manually**. Don’t worry about
60+
forgetting to re-index as sooner or later it’ll become your habit.
61+
62+
### Re-indexing — when?
63+
64+
Usually when:
65+
66+
- Switching between *Git* (or any other *VCS*) branches
67+
- Regenerating *Ctags*
68+
- Adding or removing files
69+
70+
Remember that you can still open the files with:
71+
72+
- `:e file-name.rb`
73+
- [The NERD Tree][1]
74+
- [vinegar.vim][2]
75+
- Your favourite tool, etc.
76+
77+
New files will not be available when **using fuzzy search** until you re-index
78+
them. That’s it!
79+
80+
81+
[1]: https://github.com/scrooloose/nerdtree
82+
[2]: https://github.com/tpope/vim-vinegar

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@ categories: asciicast
1414

1515
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
17-
*Vim-CtrlSpace*. Fortunately it’s a walk in the park! See below how easy it is:
17+
*Vim-CtrlSpace*. Fortunately all you have to do is **pressing**:
1818

19-
```console
20-
$ vim
21-
[CTRL]+[C]
22-
[B]
23-
```
19+
<kbd>CTRL</kbd>+<kbd>SPACE</kbd> and then <kbd>b</kbd>.
20+
21+
## Opening projects in search mode
22+
23+
Capital <kbd>B</kbd> **opens the project list in the search mode** so you can
24+
find the project faster.
2425

25-
Capital <kbd>B</kbd> **opens the project list in a search mode** so you can start
26-
typing your search term.
2726
Alternatively you can open the list of projects with <kbd>b</kbd> and then
28-
open the search mode with <kbd>/</kbd>.
27+
open the search mode with <kbd>/</kbd>. The same applies for all lists.
2928

3029
Opening projects in *Vim* has never been so easy!
3130

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

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -24,41 +24,28 @@ 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-
```console
28-
$ vim
27+
Opening project
2928

30-
# Open Ember project
31-
[CTRL]+[SPACE]
32-
[B]
33-
>ember<
34-
[Enter]
29+
1. <kbd>CTRL</kbd> + <kbd>SPACE</kbd>
30+
2. <kbd>B</kbd>
31+
3. Enter project name `>ember<`
32+
4. Confirm with <kbd>Enter</kbd>
3533

36-
# Search for `README.md` and open it in the current tab without closing the plugin window
37-
[O]
38-
>readme<
39-
[enter][space]
34+
Finding file and opening it in the first tab
4035

41-
# Open 3 files in a separate tab (note the `+3` indicator)
42-
[/]
43-
[CTRL]+[U]
44-
>computed<
36+
1. <kbd>O</kbd>
37+
2. Enter file name `>readme<` and confirm with <kbd>Enter</kbd>
38+
3. Press <kbd>space</kbd> to add the file to the tab without closing the plugin window
4539

46-
# Select each file with:
47-
[SHIFT]+[T]
40+
Opening another 3 files in a separate tab
4841

49-
# Clear search term
50-
[/]
51-
[CTRL]+[U]
52-
[/]
42+
1. Open search mode with <kbd>/</kbd>
43+
2. Press <kbd>CTRL</kbd> + <kbd>U</kbd> to clear the previous search term
44+
3. Type `>computed<` to find new files
45+
4. Open each found file with <kbd>Shift</kbd> + <kbd>T</kbd>
5346

54-
# Open list of tabs
55-
[l]
47+
Adding a custom tab label
5648

57-
# Give second tab custom label
58-
[j]
59-
[=]
60-
>Computed feature + spec<
61-
[Enter]
62-
[ESC]
63-
[qa]
64-
```
49+
1. Press <kbd>Backspace</kbd> to exit search mode
50+
2. Press <kbd>l</kbd> to open a list of tabs
51+
3. Press <kbd>=</kbd> to change the default label

0 commit comments

Comments
 (0)