dblume commited on 2022-06-27 14:59:09
Showing 1 changed files, with 11 additions and 3 deletions.
... | ... |
@@ -255,9 +255,17 @@ endif |
255 | 255 |
" See :help new-omni-completion for more. |
256 | 256 |
filetype plugin on |
257 | 257 |
set omnifunc=syntaxcomplete#Complete |
258 |
-" Auto completion via ctrl-space (instead of ctrl-x ctrl-o) |
|
259 |
-" set omnifunc=pythoncomplete#Complete |
|
260 |
-" inoremap <Nul> <C-x><C-o> |
|
258 |
+ |
|
259 |
+" Torn on whether I like the omni completion preview window left open or not. |
|
260 |
+" autocmd CompleteDone * pclose |
|
261 |
+ |
|
262 |
+" Omni completion via ctrl-space (in addition to ctrl-x ctrl-o) |
|
263 |
+inoremap <Nul> <C-x><C-o> |
|
264 |
+ |
|
265 |
+" Next two map j and k to C-n (next) and C-p (prev). |
|
266 |
+" But it's affected by the 'jk to ESC' mapping above, so commented out. |
|
267 |
+"inoremap <expr> j ((pumvisible())?("\<C-n>"):("j")) |
|
268 |
+"inoremap <expr> k ((pumvisible())?("\<C-p>"):("k")) |
|
261 | 269 |
|
262 | 270 |
" cscope |
263 | 271 |
if has("cscope") |
264 | 272 |