Skip to main content

Home/ Groups/ VIM Editor
2More

chamindra - marvim - 0 views

  •  "Give your most complex macros a name and store it for future recall and use" Problem statement(s): Can't remember those complex VIM macro sequences you use frequently?Wish you could save those macros beyond your immediate session? Wish you could share your VIM macros with each other? Why not templates as well in the same script?
  •  
    save vim macros
2More

matchparen++ - Improvement over standard matchparen plugin : vim online - 0 views

  • mproves over standard matchparen.vim plugin by echoing line containing matching bracket in the status line so you can quickly see which block is terminated by this paren.  Also scans for braces/parens which are off-screen.
  •  
    this is good for brace-based languages like C++
1More

Preexisting code indentation - Vim Tips Wiki - a Wikia wiki - 0 views

  • lternative: if your file has indent 4 and you want an indent of 3 and gg=G is not working as expected, try :set inde=indent(v:lnum)/4*3 then go ahead with the well known gg=G use tabs or spaces, doesn't matter
1More

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
2More

clipbrd - Clipboard and other register content editor. : vim online - 0 views

  • lipbrd : Clipboard and other register content editor.
  • gvim +ClipBrd +only
1More

Tip #805 - Windows: gvim as an external editor : vim online - 0 views

  • This tip provides a (Windows only) means of using gvim as an external editor for almost any other program. This script has been tested with Lotus Notes and Internet Explorer on Windows NT.
3More

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.
1More

Daily Vim: Quick Paste - 0 views

  • You may have noticed that pasting outside text into Vim from insert mode can lead to awkwardly stair-stepped text. You may also know that this is easily avoidable via :set paste from normal mode. I paste from outside often enough, that I've added the following to my vimrc making it that much easier.set pastetoggle=<F5>
1More

Debugger for Vim Code? - vim_use | Google Groups - 0 views

  • >  I was wondering if there's any debugger written specifically for Vim >  code?   I've got a thorny problem on a vim plugin on Solaris (I can't >  share the code) and stepping through the code would be lovely (though I >  realize this could be difficult, given the nature of vim). As I am sure you found out from Tony's post Vim has a built in debugger for Vim scripts. What I would suggest to you is to download and use this plugin by Hari: " BreakPts - Debug Vim Scripts " Author: Hari Krishna Dara " http://www.vim.org/scripts/script.php?script_id=618 I use it regularly and love it. HTH, Dave
1More

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>
1More

Vim documentation: syntax - 0 views

  • \z1 ... \z9 */\z6* */\z7* */\z8* */\z9* *E66* *E67* Matches the same string that was matched by the corresponding sub-expression in a previous start pattern match.
1More

To switch back to normal mode automatically after inaction - Vim Tips Wiki - a Wikia wiki - 0 views

  • " set 'updatetime' to 15 seconds when in insert mode au InsertEnter * let updaterestore=&updatetime | set updatetime=15000 au InsertLeave * let &updatetime=updaterestore
1More

idle timeout to automatically leave insert mode? - vim_use | Google Groups - 0 views

  • > Due to a repetitive stress injury, I have heavily customized the keys > in VIM. I don't know this is possible, but it would help there were an > automatic exit out of insert mode after a fixed idle duration. This > would save me having to hit the<ESC>  key so frequently to exit insert > mode. In other words, once in insert mode, after not hitting any keys > for 2 seconds or so, VIM would automatically take me out of insert > mode w/o me  having to hit the<ESC>  key. > I hope that made sense. > Thanks in advance         :au CursorHoldI * stopinsert will take you out of Insert mode when you don't type anything for 'updatetime' milliseconds (default 4000). To make it 2 seconds, add         :set ut=2000
1More

different background color for Insert/Normal mode - vim_use | Google Groups - 0 views

  • > I want to customize vimrc to change background color to yellow when switched to > "Insert mode".  It should be easy but I can not find how to do it. Any help will > be appreciated. > regards,   :au InsertEnter * hi Normal term=reverse ctermbg=darkgrey guibg=yellow   :au InsertLeave * hi Normal term=NONE    ctermbg=black    guibg=white Change to taste. see         :help InsertEnter         :help InsertLeave         :help :autocmd         :help :highlight
1More

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
3More

what are safe key combinations to remap in vim - vim_use | Google Groups - 0 views

  • You can refer to the "Finding unused keys" section in the "Mapping keys in Vim" tutorial available at: http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_%28Part_2%29
  • eta keys are almost always safe (<M-A>, <M-B>, etc.). Check for mappings from plugins, etc. before using. When in doubt, use the help. For example, to see if CTRL-J is taken (it is, but there are several commands to do the same thing) type :help CTRL-J and then press CTRL-D instead of ENTER to list all results. Then view each result to see what they do and if there are any alternate ways to do the same thing before mapping. If the mapping is for one mode only, you can prepend the mode. For example, for CTRL-J in insert mode, :help i_CTRL-J
  • Oh, and you can also use the map leader (see :help <Leader>), which defaults to the backslash key. For example, nmap <leader>h :echo "hello world!"<CR>
1More

Daily Vim: Repeat Last Command Line - 0 views

  • Repeat Last Command Line To repeat the last command-line given in ex mode, you can simply enter a count followed by "@:".
2More

Vim documentation: eval - 0 views

  • :au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
  •  
    Restore the cursor to the file position in previous editing session
2More

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
2More

SCMDiff - Highlight changed lines in a file via SCM diff command : vim online - 0 views

  • It allows you to quickly toggle (through a keybinding, Ctrl-D by default) the highlighting of changed lines in a file through an SCM's diff command.
  •  
    needed some hand tweaking on my part to get it to work
‹ Previous 21 - 40 Next › Last »
Showing 20 items per page