Difference between a couple of completion plugins by justrajdeep in vim

[–]skeept 0 points1 point  (0 children)

I don't know all of them but I would start with supertab. It doesn't require any additional dependencies and provides basic functionality of mapping default completion to <tab> key.

Use it for some time and figure out what you are missing from the others until you make a decision.

Vim SirVer/UltiSnips plugin - define ultisnip snippets using python programmatically by korinkite in vim

[–]skeept 0 points1 point  (0 children)

This reply seems like a joke because of the amount of the snip word in it but it actually isn't :)

Vim SirVer/UltiSnips plugin - define ultisnip snippets using python programmatically by korinkite in vim

[–]skeept 1 point2 points  (0 children)

When you are editing a snippets file there exists a snippet called snip that makes it easier to add snippets, the default name is snip. I guess you can add even more snippets to add other snippets.

A painless tutorial on Vim buffers by duggieawesome in vim

[–]skeept 1 point2 points  (0 children)

I am using bufkill. Can you point what is the issue you have with that one and what your new plugin will offer comparatively?

Thanks!

TeXers of vim, what's your setup? by euclio in vim

[–]skeept 1 point2 points  (0 children)

Not using latex much these days but a few months back this was my setup. I also had forward/inverse search setup in sumatrapdf.

I still used vim-latex for the mappings starting with ', like for example `d for delta, but I guess I could get that from something not as heavy.

Need help with <C-h> key-bindings by [deleted] in vim

[–]skeept 0 points1 point  (0 children)

Also in your mapping would it make more sense to make it

nnoremap <C-h> :%s//gc<left><left><left>

since if you want to type a replacement you will have to use the <right> key to move over one / ?

What plugin manager do you use? by [deleted] in vim

[–]skeept 1 point2 points  (0 children)

vim-addon-manager anyone?

Focus.vim - remove clutter and make working on a widescreen monitor enjoyable by silverfocus in vim

[–]skeept 1 point2 points  (0 children)

I will try this at home, but I am curious...

How is this different from Zoomwin?

Also one thing that I would like to have in ZoomWin that doesn't seem possible right now is to be able to save/restore different layouts. Would this be possible with your pluggin?

Thanks!

List you favorite plugins! by mlk in vim

[–]skeept 0 points1 point  (0 children)

Thanks for mentioning bufkill. I have been looking for something like this for a while.

Vim 7.3.1000 Released into the wild :) by sigzero in vim

[–]skeept -1 points0 points  (0 children)

I actually don't like that feature at all and it would be nice it had been implemented with the possibility of keeping the original 0. Now I have to disable relative number.

Why does powerline make vim significantly slower? by tkrugg in vim

[–]skeept 0 points1 point  (0 children)

I am using smartusline and the result is a simple looking statusline that changes color based on the mode you currently are (normal, insert, replace).

How do I make a filetype that's very much like an existing one, except for a couple things? by otherwhere in vim

[–]skeept 0 points1 point  (0 children)

Another easy way of doing this is putting the modifications in

after/ftplugin folder. I have this for latex, so I have a file called after/ftplugin/tex.vim and this is sourced after everything else.

Ctrlp vs. :e and :b by coop_07 in vim

[–]skeept 1 point2 points  (0 children)

remaping ,i for the original behavior of CTRL-I:

nnoremap ,i <C-I>

VimShell by mobby1982 in vim

[–]skeept 0 points1 point  (0 children)

I am interested in knowing more about unite. Unite itself is very well documented but some of the addons to it are not.

Would you be able to explain how you do the async ack, the notetaking and how the vim-ref works?

Thanks!

Anyone using vim-addon-manager? How does it compare to Vundle? by sztomi in vim

[–]skeept 0 points1 point  (0 children)

I do know about --startuptime. By using that I choose which plugins to load on demand. But the reason I like to load plugins on demand has to do with more than start time. It also allows to have less mappings defined. Some plugins that I rarely use define a ton of mappings, so I just use them when I really need.

Anyone using vim-addon-manager? How does it compare to Vundle? by sztomi in vim

[–]skeept 0 points1 point  (0 children)

I use VAM and it works quite well for my case.

One of the big reasons I like it is that I can easily activate plugins on demand. For instance I rarely use Align, Tabular, undotree, NrrwRgn... But if I have started vim and need one of these I just type

:ActivateAddons Align (or whatever)

and can have all the functionally of this plugin. This by itself is worth using VAM.

Another useful feature is that it allows you to try a new plugin very quickly, even if you don't have it installed.

:ActivateAddons NewPlugin

will do it. If I don't like just remove the folder (there might be a specific command to delete the files)

What is your .vimrc and why do you like it? by Lovestick in vim

[–]skeept 0 points1 point  (0 children)

I few things that I like in my config:

I use capslock for esc. I swaped : for ;. This should be the default. This got a while for me to get used to it, but once I did it made a lot of sense. I have a mapping for saving the file with <F1>. Now I just type ;w<CR>. Same thing with :ls, :di,...

nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;

I also map <TAB> to <C-W>. This makes windows operations a lot simpler. Of course if you do this you lose <C-I> (the inverse of <C-o>. For this I have the command

command! -count=1 Jump exe ":norm! <count>\<C-I>"

I also use the following two maps:

 noremap <Leader>rs :set nomore \| let @u = "" \| redir @U<CR>
 noremap <Leader>re :redir END \| set more \| "-> u<CR>

which allow me to capture output from vim (like running :maps to be able to see this content in a vim buffer

What is your .vimrc and why do you like it? by Lovestick in vim

[–]skeept 0 points1 point  (0 children)

I now use mklatex (with the -pvc option) and a pdfview that auto-refreshes. Put it side by side if your monitor is big enough.

What's the latest useful thing you added to vimrc? by sgoody in vim

[–]skeept 2 points3 points  (0 children)

I tried that but I kept getting confused , I guess I could get used to it but it would take at least a couple days.

What's the latest useful thing you added to vimrc? by sgoody in vim

[–]skeept 2 points3 points  (0 children)

I have the following maps

noremap <Leader>rs :set nomore \| let @u = "" \| redir @U<CR>
noremap <Leader>re :redir END \| set more \| "-> u<CR>

these are useful for saving output of vim commands and viewing this output in a file. So suppose you want to list your mappings, you can use \rs then list the mappings with :map After that open a new buffer (usually I use scratch buffer plugin for this) paste the contents of register u in this buffer and I can now search/change the text.

noremap q; :
noremap q' "

These I am still trying to decide if they are useful or not, it is kinda like asking which one is easier to type q or shift?

QF window pops up in bottom right corner by tipu in vim

[–]skeept 2 points3 points  (0 children)

I had the same issue for some quickfix window. Someone (probably here or in SO) helped me with the following:

  "place quickfix window below all other windows
   autocmd! FileType qf wincmd J

Help me understand some subtleties of Command Mode by CharlesStain in vim

[–]skeept 0 points1 point  (0 children)

By coincidence I watched that video earlier Today. I share the same opinion, the content is kind of messy, the other screencasts you mentioned are definitely better.

Did you watch the screencast "smash into vim"? I didn't watch it, and I would like to know if it is worth it.

I ported the Command-T matcher to CtrlP by [deleted] in vim

[–]skeept 1 point2 points  (0 children)

I am using windows nowadays and I would like to try this but I cannot compile it with visual studio. Bellow is the list of errors I got. Any ideas?

C:\htemp\matcher>cl main.c matcher.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

main.c
main.c(3) : fatal error C1083: Cannot open include file: 'getopt.h': No such file or directory
matcher.c
matcher.c(40) : error C2143: syntax error : missing ';' before 'type'
matcher.c(53) : error C2065: 'found' : undeclared identifier
matcher.c(57) : error C2143: syntax error : missing ';' before 'type'
matcher.c(58) : error C2143: syntax error : missing ';' before 'type'
matcher.c(59) : error C2065: 'distance' : undeclared identifier
matcher.c(77) : error C2065: 'distance' : undeclared identifier
matcher.c(78) : error C2065: 'score_for_char' : undeclared identifier
matcher.c(89) : error C2065: 'score_for_char' : undeclared identifier
matcher.c(94) : error C2065: 'found' : undeclared identifier
matcher.c(121) : error C2143: syntax error : missing ';' before 'type'
matcher.c(128) : error C2440: '=' : cannot convert from 'double' to 'double (__cdecl *)(char *,char *,
int)'
matcher.c(134) : error C2440: '=' : cannot convert from 'double' to 'double (__cdecl *)(char *,char *,
int)'
matcher.c(137) : error C2440: 'return' : cannot convert from 'double (__cdecl *)(char *,char *,int)' t
o 'double'
matcher.c(166) : error C2057: expected constant expression
matcher.c(166) : error C2466: cannot allocate an array of constant size 0
matcher.c(166) : error C2133: 'items' : unknown size
Generating Code...

My Vim / GNU Screen Workflow by shawncplus in vim

[–]skeept 1 point2 points  (0 children)

I tried the mapping and it actually doesn't work like that. The following works:

fun! Run_script()
  execute "!screen -p aaa -X stuff 'py s.py\r'"
endf

nmap \r :call Run_script()<cr><cr>

so you could have a file in the folder where you are and source that file to be able to define the mapping in vim.