Skip to content

Commit 723cdbd

Browse files
authored
Merge pull request #17 from VimWei/master
更新 Buffer local keymaps 章节中的变量作用域
2 parents f3e8f78 + be44376 commit 723cdbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let g:_navigator_cpp = {...}
112112
let g:_navigator_python = {...}
113113
114114
autocmd FileType c,cpp let b:navigator = g:_navigator_cpp
115-
autocmd FileType python let b:navigator = b:_navigator_python
115+
autocmd FileType python let b:navigator = g:_navigator_python
116116
```
117117

118118
And run `:Navigator` command and replace the original varname `g:navigator` with `*:navigator`

0 commit comments

Comments
 (0)