Closed ogier closed 12 years ago
If I understand it correctly, you want ctrlp to not pick up the langmap option? This means reseting the user's langmap option when entering the ctrlp buffer. If that's what you need, let me know how this works for you:
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index 128a818..996d7d3 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -116,7 +116,7 @@ fu! s:opts()
" Global options
let s:glbs = { 'magic': 1, 'to': 1, 'tm': 0, 'sb': 1, 'hls': 0, 'im': 0,
\ 'report': 9999, 'sc': 0, 'ss': 0, 'siso': 0, 'mfd': 200, 'mouse': 'n',
- \ 'gcr': 'a:blinkon0', 'ic': 1, 'scs': 1 }
+ \ 'gcr': 'a:blinkon0', 'ic': 1, 'scs': 1, 'lmap': '' }
if s:lazy
cal extend(s:glbs, { 'ut': ( s:lazy > 1 ? s:lazy : 250 ) })
en
Vim's langmap option is intended to remap command mode for people with odd keyboards (as opposed to keymap for insert mode). Unfortunately, ctrlp picks up langmap bindings while inputting filenames, which makes things really difficult.