Vim Tips Wiki
No edit summary
(16 intermediate revisions by 8 users not shown)
Line 3: Line 3:
 
|previous=1578
 
|previous=1578
 
|next=1580
 
|next=1580
|created=February 16, 2008
+
|created=2008
 
|complexity=basic
 
|complexity=basic
 
|author=Metacosm
 
|author=Metacosm
Line 11: Line 11:
 
|category2=
 
|category2=
 
}}
 
}}
  +
Searching the tips on this wiki can often help solve a problem encountered when using Vim. However, if you want to ask a question, you will need to subscribe to a [[Vim Tips Wiki:Community Portal|mailing list]], or join the '''#vim''' IRC channel.
If you can't find an answer to your problem on the Vim Wiki – try the #Vim IRC channel on http://freenode.net.
 
   
  +
==IRC overview==
To help centralize the vim.wikia.com site as the place to go for Vim Wiki support, [[User:Metacosm|Metacosm]] has moved the best articles from http://vi-improved.org to this wiki.
 
  +
IRC ([[Wikipedia:Internet Relay Chat|Internet Relay Chat]]) is a form of real-time text messaging (chat). A user installs a suitable [[Wikipedia:Comparison of Internet Relay Chat clients|IRC client]] program, then configures it to connect to an IRC network (such as [[Wikipedia:Freenode|freenode]]), and a specific channel on that server (such as #vim).
   
==General==
+
==Joining #vim==
*[[New to Vim|New to Vim?]]
 
*[[Vim_scripts#Best_plugins|Best plugins]]
 
*[[Quick tips]]
 
*[[Vim IRC FAQ]]
 
*[[Tutorial]] (reference version of http://vi-improved.org/tutorial.php)
 
*[[Super retab]]
 
   
  +
To join the #vim IRC channel you need to use an IRC client to connect to the freenode IRC network.
==Answered questions==
 
  +
mIrc, XChat, Miranda and Pidgin can all be used to connect to an IRC network. On Firefox you can also use the ChatZilla addon.
*Vim is confusing, where do I start? [[New to Vim]], [[Tutorial]], [http://vi-improved.com/tutorial.php Vi-Improved.org Tutorial]
 
  +
You can also use the [https://webchat.freenode.net/ freenode web chat] so you don't have to install any software.
*How do I record a macro? [[Macros]]
 
*How do I edit GPG encrypted files in Vim? [[Edit gpg encrypted files]]
 
*How do I reselect the visual range I just used? [[Visual selection]]
 
*How do I change the GUI Font (and make those changes stick)? [[Change font]]
 
*How do I make backspace work like in other editors? [[Backspace and delete problems]]
 
*How do I fix syntax highlighting problems? [[Fix syntax highlighting]]
 
*How do I paste in code without having all the indenting screwed up? [[Toggle auto-indenting for code paste]]
 
*How do I insert the current date/time into my file? [[Insert current date or time]]
 
*How do I make the options I set STAY set? [[Debug unexpected option settings]]
 
*How can you read/write system environment variables from within Vim? [[Environment variables]]
 
*How can I dump my file to html looking EXACTLY as it currently does (syntax highlighting at all)? [[Pasting code with syntax coloring in emails]]
 
*How to tell Vim to save as a new file when the file is hardlinked? [[Editing a hard link to a file]]
 
*How can I fix the line-endings in this file? [[File format]]
 
*How to exchange the current line with the line above/below? [[Swapping characters, words and lines]]
 
*How can Vim work with Visual Studio .Net? [[Integrate gvim with Visual Studio]]
 
*How can I get diff to work properly in the MS Windows port of Vim? [[Fix error E97 Cannot create diffs under Windows|Cannot create diffs under Windows]]
 
*How can I get Visual Studio like completion (i.e. Intellisense) in Vim? [[Omni completion]]
 
*How can I delete parens that surround text? See ''Surround'' at [[Vim_scripts#Best_plugins|Best plugins]]
 
   
  +
Choose an IRC server from the [http://www.freenode.net/irc_servers.shtml freenode website server listing] near you to connect to. Your client of choice will probably have a list of them configured already.
==Unanswered questions==
 
  +
Once connected you can use the <code>/join #vim</code> command to join the #vim channel (makes sense doesn't it).
*How can I make keywords autocompletable when creating a new C source file?
 
  +
In the webchat you can also enter the room you want to join right away.
*How can I redirect stderr output in Windows ? I have problem setting makeprg with a compiler whose error messages can't be catch with '>'.
 
::I believe this question is now obsolete. The default value of 'shellpipe' on Windows seems to be ">%s 2>&1" which will (with the "2>&1") redirect stderr output from :make. The help does not reflect this default value, however. It looks like the support was added back in 6.1.105 but never made it into {{help|'shellpipe'}}. --[[User:Fritzophrenic|Fritzophrenic]] 16:07, 23 March 2009 (UTC)
 
*For encrypted files, the help for encryptions states: "Text you copy or delete goes to the numbered registers. The registers can be saved in the .viminfo file, where they could be read. Change your 'viminfo' option to be safe." Wouldn't it be a lot better if Vim by default would not write all your sensitive information to the viminfo file?
 
   
  +
On the freenode IRC network you need to register your account (aka nick) to be able to chat in most channels. A [http://www.freenode.net/faq.shtml#nicksetup detailed howto] is available on the freenode site. It only takes a few minutes to register so it's not that big a hassle.
==Numpad weirdness==
 
  +
If you're using client software there's usually a way to have the registration done automatically once you log on. Google is your friend if you want to find out how to do that for your particular client.
   
  +
More detailed information on all of this is available on the [http://www.freenode.net freenode network website].
*Why do letters show up when I try to enter numbers from the keypad? -or- Why doesn't the numpad work as expected?
 
   
  +
{{todo}}
Also: I tried hitting the "Num Lock" key, but that brings up "help.txt".
 
  +
*Outline how to ask a question.
   
  +
Network http://freenode.net
''moved to: [[PuTTY numeric keypad mappings]]''
 
   
  +
==See also==
  +
[http://vi-improved.org Vi-IMproved.org] is the online home for #vim. It is maintained by [[User:Metacosm|Metacosm]] who moved the general "information on Vim" pages to the Vim Tips wiki in [[Vim Tips Wiki:New tips/200802|February 2008]]...
   
  +
Some useful pages:
 
 
*[[New to Vim|New to Vim?]]
'''Hi Daniel.''' Welcome to the wiki. It's hard finding stuff here, but I think the issue you raise above is best handled in [[VimTip503|PuTTY numeric keypad mappings]] where there is a comment mentioning "Disable application keypad mode". It would be great if you were to review that tip and either fix it yourself, or tell me what needs to be done. I would like to know if there is any merit to the tip or its comments. I suspect the answer is "no", and the whole thing should be replaced with your solution. I have used PuTTY a few times but not enough to work out if tip 503 is any use. You might like to reply here, or just edit tip 503 to how you think it should be, or put some comments at the bottom of tip 503, or edit [[User_talk:DavidCary|your talk page]] where an automated (but sincere) welcome appears. [[User:Fritzophrenic|Fritzophrenic]] and I notice all changes on the wiki so you don't have to wonder how to notify us. We will delete these comments from this page in a couple of days because this tip is not really the place for them (I'll copy the comments somewhere if necessary). [[User:JohnBeckett|JohnBeckett]] 03:46, 30 May 2009 (UTC)
 
  +
*[[Example_vimrc|Example <code>.vimrc</code>]]
 
 
*[[Vim_scripts#Best_plugins|Best plugins]]
: Good idea -- I moved this "one checkmark in PuTTY" tip to the top of [[PuTTY numeric keypad mappings|tip 503]]. This "one checkmark" solution seems much simpler and therefore better, but I don't know enough to tell if the other solution, using vimrc macros, might have some other advantage I'm missing. --[[User:DavidCary|DavidCary]] 02:50, 2 June 2009 (UTC)
 
 
*[[Quick tips]]
 
 
*[[Vim IRC FAQ]]
==Other sources==
 
  +
*[[Tutorial]]
*http://vimdoc.sourceforge.net/vimfaq.html
 
 
*[[Super retab]]
   
 
==Comments==
 
==Comments==

Revision as of 21:41, 27 March 2014

Tip 1579 Printable Monobook Previous Next

created 2008 · complexity basic · author Metacosm · version 7.0


Searching the tips on this wiki can often help solve a problem encountered when using Vim. However, if you want to ask a question, you will need to subscribe to a mailing list, or join the #vim IRC channel.

IRC overview

IRC (Internet Relay Chat) is a form of real-time text messaging (chat). A user installs a suitable IRC client program, then configures it to connect to an IRC network (such as freenode), and a specific channel on that server (such as #vim).

Joining #vim

To join the #vim IRC channel you need to use an IRC client to connect to the freenode IRC network. mIrc, XChat, Miranda and Pidgin can all be used to connect to an IRC network. On Firefox you can also use the ChatZilla addon. You can also use the freenode web chat so you don't have to install any software.

Choose an IRC server from the freenode website server listing near you to connect to. Your client of choice will probably have a list of them configured already. Once connected you can use the /join #vim command to join the #vim channel (makes sense doesn't it). In the webchat you can also enter the room you want to join right away.

On the freenode IRC network you need to register your account (aka nick) to be able to chat in most channels. A detailed howto is available on the freenode site. It only takes a few minutes to register so it's not that big a hassle. If you're using client software there's usually a way to have the registration done automatically once you log on. Google is your friend if you want to find out how to do that for your particular client.

More detailed information on all of this is available on the freenode network website.

 TO DO 

  • Outline how to ask a question.

Network http://freenode.net

See also

Vi-IMproved.org is the online home for #vim. It is maintained by Metacosm who moved the general "information on Vim" pages to the Vim Tips wiki in February 2008...

Some useful pages:

Comments