Skip to main content

Home/ VIM Editor/ Group items tagged vim

Rss Feed Group items tagged

anonymous

spf13 vim windows install - 0 views

vim

shared by anonymous on 26 Aug 14 - No Cached
reckoner reckoner

GVim Portable Home Page - 0 views

  • The GVim Portable Launcher allows you to run GVim from a removable drive whose letter changes as you move it to another computer. The program can be entirely self-contained on the drive and then used on any Microsoft Windows computer.
reckoner reckoner

pasting to command line - vim_use | Google Groups - 0 views

  • > What's the way for pasting to command line? The usual way I use is    :put It's linewise, but there are some stunts (coming to mind: abusing :substitute and control+r to pull in content from various registers) It also takes a register, so if you want the system clipboard, you can do    :put * -tim
reckoner reckoner

apply function to substitution? - vim_use | Google Groups - 0 views

  • is this possible: > :%s/\(.*\)/some_function(\1)/g > where some_function is something I would define myself. Python has this > function, BTW. > Thanks in advance.         :%s/.*/\=some_function(submatch(0))/ see         :help sub-replace-special         :help submatch() Note that since the * operator is greedy, .* matches the whole line, therefore the g flag doesn't change anything (there is only one whole line on each line).
  •  
    apply function to matched group in substitution
reckoner reckoner

mapping Tab in the command line - vim_use | Google Groups - 0 views

  •     set wildmenu     set wildmode=list:longest,full     set wcm=<C-Z>     map <leader>a :b <C-Z>
reckoner reckoner

Opening every buffer in its own tab - vim_use | Google Groups - 0 views

  • s Ben Fritz says, all you need is wildmenu completion on :b <Tab> An example, to show just how powerful this is: :set wildmenu wildmode=full
reckoner reckoner

automatic type along completion as in Notepad++? - vim_use | Google Groups - 0 views

  • augroup foo   au!   au CursorMovedI,InsertEnter * if search('\k\{2,}\%#\k\@!','ncb') |               \ call feedkeys("\<c-n>\<c-p>","t") | endif augroup END inoremap <expr><cr> pumvisible()?"\<c-n>\<c-y> ":"\<cr>" Pressing return-key will accept the first match. Be ready to exit the editor.
reckoner reckoner

Different colors in statusline? - vim_use | Google Groups - 0 views

  • > Hello,  Is there a way to hilight different portions of statusline > using different colors? Thanks!
reckoner reckoner

shortcut for ex ranges - vim_use | Google Groups - 0 views

  • > Hi, > After reading the thread on asynchronous processes I was just looking > at the help for the ! command which I rarely use, and after playing > with it I realized that it translates a motion from normal mode into a > range for an ex command, i.e. doing !2j gives you an ex command line > of :.,+2! to start your filter with.  This made me wonder: Is there a > way to do this without the filter?  In other words, instead of having > to type :.,+2s I could get there with a 2j combined with something.  I > realize I can do it with the ! itself by just backspacing over the ! > at the end of the ex command, but is there a more 'official' way to do > this? No, there isn't. But in your example, you know the number of lines you want to get in your range, so you can type     3: to get     :.,.+2 In general: !2j  has the form {operator}{motion}     :h operator You can create a custom operator (and name it e.g. "g:") with     :h g@ Once it has been done here (from Jan 2008, see the whole discussion) http://groups.google.com/group/vim_dev/msg/c6fb56645c188244 The details are somewhat tricky (if this reads better than ugly ...).
reckoner reckoner

GVim won't 'cd' to dropped file's dir - vim_use | Google Groups - 0 views

  • Andrew schrieb: > Is there a way to get GVim to auto-`cd` to a dropped file's directory? > My gripe is that when I `:sav` the edited file giving it a new name, it > ends up in my home directory, which *of course* is not what I'd want to > do. > I'm using version 7.0.237 on KDE 3.5 for Linux. > Thanks in advance, > Andrew     :h drag-n-drop hold down Shift while dropping the file. For similar situations, I need this often but not always, thus I mapped a function key to it:     :nn <F3> :cd %:p:h<cr>     :h ::p If you want it always, set 'autochdir'     :h 'acd
reckoner reckoner

IPython - User - A useful couple of scripts - 0 views

  • ERRCONDS = select.POLLHUP|select.POLLERR
    • reckoner reckoner
       
      this part doesn't work on Windows
  •  
    sadly, doesn't work with Windows.
« First ‹ Previous 121 - 140 of 142 Next ›
Showing 20 items per page