|
Hi Vimmers,
I have been chasing vim plugins for a long time and found some good couples that share same semantics or similar keystrokes. First couple I want to mention is vim-pasta and smartput both laboring on the p command. Using pasta for line-wise paste is good while smartput beats at word-wise stuff. So I shared the p "commandspace" among them: p/P for vim-pasta and gp/gP for smartput (had to comment out the p/P mapping). Second couple I found useful is Supertab and neocomplcache. Assigning a weird keystroke to supertab, I joined both with: imap <expr> <TAB> neocomplcache#sources#snippets_complete#expandable() ? \ "\<Plug>(neocomplcache_snippets_expand)" : "\<Plug>SuperTabForward" Last one is SwapIt and speeddating couple which is connected from the fallback <Plug> Swapit has. Surely we have to disable speeddating mappings beforehand. What about yours? Do you have such nice couples? I want to hear about them, may be we can start a wiki page with those collections. -- Ümit Kablan -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php |
|
On Friday, May 4, 2012 10:48:12 AM UTC-5, Ümit Kablan wrote:
> Hi Vimmers, > > I have been chasing vim plugins for a long time and found some good > couples that share same semantics or similar keystrokes. > > First couple I want to mention is vim-pasta and smartput both laboring > on the p command. Using pasta for line-wise paste is good while > smartput beats at word-wise stuff. So I shared the p "commandspace" > among them: p/P for vim-pasta and gp/gP for smartput (had to comment > out the p/P mapping). > > Second couple I found useful is Supertab and neocomplcache. Assigning > a weird keystroke to supertab, I joined both with: > > imap <expr> <TAB> neocomplcache#sources#snippets_complete#expandable() ? > \ "\<Plug>(neocomplcache_snippets_expand)" : "\<Plug>SuperTabForward" > > Last one is SwapIt and speeddating couple which is connected from the > fallback <Plug> Swapit has. Surely we have to disable speeddating > mappings beforehand. > > What about yours? Do you have such nice couples? I want to hear about > them, may be we can start a wiki page with those collections. > > -- > Ümit Kablan This isn't technically what you asked (you asked about plugins), but I have: nnoremap <expr> <silent> <F3> <SID>NextThingJump() nnoremap <expr> <silent> <S-F3> <SID>PrevThingJump() function! s:NextThingJump() if &diff return "]c" elseif !empty(getloclist(0)) return ":lnext\<CR>zv" elseif !empty(getqflist()) return ":cnext\<CR>zv" else return 'n' endif endfun function! s:PrevThingJump() if &diff return "[c" elseif !empty(getloclist(0)) return ":lprev\<CR>zv" elseif !empty(getqflist()) return ":cprev\<CR>zv" else return 'N' endif endfun And also: imap <expr> <C-Space> (empty(&completefunc) ? "\<C-X>\<C-O>" : "\<C-X>\<C-U>") -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php |
| Powered by Nabble | Edit this page |
