You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,12 @@ Unzip the most recent [ZIP archive] [download] file inside your Vim profile dire
28
28
29
29
## Options
30
30
31
-
All options have reasonable defaults so if the plug-in works after installation you don't need to change any options. They're available for people who like to customize their directory layout. These options can be configured in your [vimrc][vimrc] by including a line like this:
31
+
All options have reasonable defaults so if the plug-in works after installation you don't need to change any options. They're available for people who like to customize their directory layout. These options can be configured in your [vimrc script][vimrc] by including a line like this:
32
32
33
33
let g:notes_directory = '~/Documents/Notes'
34
34
35
+
Note that after changing an option in your [vimrc script][vimrc] you have to restart Vim for the changes to take effect.
36
+
35
37
### The `g:notes_directory` option
36
38
37
39
All your notes are stored together in one directory. This option defines the path of this directory.
@@ -48,6 +50,21 @@ When you rename a file in your notes directory but don't change the title, the p
48
50
49
51
If you set this option to the string `'no'` this feature will be completely disabled. If you set it to `'change_title'` it will automatically change the title to match the filename. If you set it to `'rename_file'` it will automatically rename the file on disk to match the title.
50
52
53
+
### The `g:notes_smart_quotes` option
54
+
55
+
By default the notes plug-in automatically performs several substitutions on the text you type in insert mode. Here are those substitutions:
56
+
57
+
*`'` becomes `‘` or `’` depending on where you type it
58
+
*`"` becomes `“` or `”` (same goes for these)
59
+
*`--` becomes `—`
60
+
*`->` becomes `→`
61
+
*`<-` becomes `←`
62
+
* the bullets `*`, `+` and `-` become `•`
63
+
64
+
If you don't want the plug-in to perform these substitutions, you can set this option to zero like this:
65
+
66
+
:let g:notes_smart_quotes = 0
67
+
51
68
### The `g:notes_shadowdir` option
52
69
53
70
The notes plug-in comes with some default notes containing documentation about the plug-in. This option defines the path of the directory containing these notes.
0 commit comments