supertab

Vim supertab and jedi-vim

怎甘沉沦 提交于 2019-12-23 10:56:35
问题 Posting as a follow up to How to check if SuperTab and jedi-vim is activated? and have done what Ingo Karkat proposed. Now I wonder what is broken and how I fix it. Here is the output: :verbose imap <tab> i <Tab> <Plug>SuperTabForward Last set from ~/.vim/bundle/supertab/plugin/supertab.vim Which looks allright to me, and... :scriptnames 1: /etc/vimrc 2: /usr/share/vim/vim72/syntax/syntax.vim 3: /usr/share/vim/vim72/syntax/synload.vim 4: /usr/share/vim/vim72/syntax/syncolor.vim 5: /usr/share

How to select SuperTab completion suggestion without creating new line?

空扰寡人 提交于 2019-12-23 07:39:17
问题 When I hit Enter on SuperTab's popup suggestion, it automatically creates a new line at the end of the inserted keyword. Is it possible to select an option in the SuperTab popup without creating a new line? More specifically, is there a way for me to configure space as the method of selecting the code completion suggestion? 回答1: inoremap <expr> <Space> pumvisible() ? "\<C-y>" : " " Note the <C-y> that accepts currently selected option, you may want to use it directly instead of remapping

How can I use the Tab key to indent in vim with SuperTab enabled?

最后都变了- 提交于 2019-12-10 03:26:54
问题 I've just enabled SuperTab in vim, and if I try to indent a blank line, SuperTab is attempting to insert strings. What I'd like, I guess, would be to have SuperTab offer completions only if there is non-whitespace to the left of the cursor. I don't want to have to use Ctrl-V or Ctrl-Q or anything. 回答1: This could be caused by an old version of snipmate, update to the forked version maintained by Gargas. It has quite a few dependencies so I'd recommend using Vundle if you're not already using

Vim langmap breaks plugin (bépo)

柔情痞子 提交于 2019-12-08 20:41:27
问题 I am using a bépo keymap (http://bepo.fr) and seeking the perfect vim mapping. So far I used a long list of noremap, but for many binding (for exemple, the motion aw or Ctrl + r ), the first keystroke is well remaped but not the others, I reckon it's the expected behaviour, but then this is not what I need. Ideally I would have my keyboard totally remaped in a higher level (before the map commands) except when typing text (in insertion mode and when typing a substitution for exemple). What I

How to check if SuperTab and jedi-vim is activated?

青春壹個敷衍的年華 提交于 2019-12-05 00:07:47
问题 As the title states, how do I check if a plugin is loaded? When I hit tab (for SuperTab) all I get is the ordinary character "tab" inserted in my file and when I hit ctrl-space I just get thrown out of insert-mode (same behavior as hitting ESC ) 回答1: The :scriptnames command lists all scripts that have been sourced; check for the plugin name in its output. If it's missing, it is either due to a wrong installation or because 'runtimepath' is incorrect. Alternatively, if you know the mapping a

How to check if SuperTab and jedi-vim is activated?

耗尽温柔 提交于 2019-12-03 16:07:09
As the title states, how do I check if a plugin is loaded? When I hit tab (for SuperTab) all I get is the ordinary character "tab" inserted in my file and when I hit ctrl-space I just get thrown out of insert-mode (same behavior as hitting ESC ) The :scriptnames command lists all scripts that have been sourced; check for the plugin name in its output. If it's missing, it is either due to a wrong installation or because 'runtimepath' is incorrect. Alternatively, if you know the mapping a plugin should define :verbose imap <Tab> will show the mapping and from which script is was set.

How can I insert a real tab character in Vim?

余生长醉 提交于 2019-11-29 20:33:45
When I have my vimrc here: set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab set smarttab And I have supertab plugin installed. Whenever I am in insert mode I press tab, it shows the auto completion, but sometimes I would like to insert a real tab character in a string literal like. So what I mean whenever I press tab in double quotes string literal, it should input we a real tab character. While in insert mode or command mode (the : prompt at the bottom of the editor), type CTRL + V then TAB . Using CTRL + V signals Vim that it should take the next character literally. Even in

How can I insert a real tab character in Vim?

别等时光非礼了梦想. 提交于 2019-11-28 16:25:10
问题 When I have my vimrc here: set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab set smarttab And I have supertab plugin installed. Whenever I am in insert mode I press tab, it shows the auto completion, but sometimes I would like to insert a real tab character in a string literal like. So what I mean whenever I press tab in double quotes string literal, it should input we a real tab character. 回答1: While in insert mode or command mode (the : prompt at the bottom of the editor), type