#vim
29 December 2007
Total 6 pages. You are browsing page 1/6.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sat Dec 29 00:00:32 2007
--- Day changed Sat Dec 29 2007
00:00 <****> that's kind of annoying
00:01 <****> because I have another mapping to make function separator-comments that goes //--
00:02 <****> and I'd rather my ^/ not pause on /
00:02 <****> you could use an abbrev instead maybe
00:05 <****> alright, wait, no, this isn't quite how I imagined it was
00:05 <****> I'm using gVim and still getting / when I type ctrl-/
00:06 <****> looks like there's no ctrl+/
00:06 <****> which is probably just a fact of ascii...
00:07 <****> Fook
00:08 <****> hmm, I'm pretty sure a co-worker has it set up correctly
00:08 <****> I know this isn't a vim issue specifically but I figured other vim users have run into it, arrow keys are turning up as control chars in edit mode in this terminal
00:08 <****> is there a way to see how his is mapped?
00:08 <****> we see the ^_s in his config files
00:09 <****> $TERM = xterm
00:10 <****> but... I don't know to make the one that corresponds to ctrl+/
00:10 <****> setting TERM to "linux" fixed it
00:12 <****> I guess what I want to know is if there is a more general way to determine how to express key combinations
00:15 <****>
00:16 <****> nanothief: that doesn't work
00:17 <****> woxidu: ^_ is ctrl-/ in some terminals
00:17 <****> woxidu: no it doesn't indeed
00:17 <****> nanothief, \amethyst: I'm using gVim. What terminal does that correspond to?
00:17 <****> woxidu: usually you can press ctrl-v then the key to see what it generates... but in your case, your terminal doesn't give the application any way to distinguish between C-/ and /, so you're out of luck
00:18 <****> woxidu: oh, gvim
00:18 <****> hm, I think gvim doesn't allow you to do ctrl-/
00:19 <****> I'm pretty sure I had this working on a machine some years ago
00:19 <****> with terminal vim
00:19 <****> and I'm pretty sure my co-worker has it working in gvim
00:19 <****> I'll try it in the terminal
00:19 <****> woxidu: if your using windows, it doesn't work in gvim
00:20 <****> nanothief: yup, looks like I can make the mapping in terminal...
00:21 <****> strange, can't think of any reason for it not to work in gVIm
00:26 <****> also, the mapping seems to stop working when I add the mapping in a conf file and then open gvim
00:32 <****> Oh! My fellow users!
00:33 <****> In gvim on Windows, how can I set a color sheme to be the default one when opening files?
00:38 <****> Find _vimrc either in program dir or maybe in documents and settings.
00:38 <****> Add :se colorscheme=.. that you type to set colorscheme.
00:41 <****> its just :colorscheme
00:42 <****> Hm, really.
00:42 <****> I have done it too long ago.
01:17 <****> how do I make an :OpenURL command that will launch firefox? I am using the vim.rails plugin and it requires an :OpenURL plugin to preview pages
01:19 <****> :he :command
01:20 <****> I guess also :he :silent
01:20 <****> MichaelRaskin_: thanks
01:51 <****> hi
01:52 <****> PHP syntax file highlights as HTML inside <<<HTML .... HTML;, also javascript and SQL
01:52 <****> I want to have XML too, but I'm totally lost on how to modify php.vim
01:53 <****> seems to use a slightly different method for each of those three (html,js,sql)...
01:54 <****> doesnt seem to work...like this :
01:54 <****>v
02:27 <****> silly question, how do i paste after the cursor? (not new line)
02:28 <****> if you copied linewise, you will paste linewise
02:28 <****> there's no trivial way to force a characterwise paste
02:28 <****> oh
02:28 <****> d'oh :)
02:29 <****> you could script it
02:29 <****> well.. if i had a sequence of lines (tabbed code).. and i wanted to only copy the non whitespace text in those lines, how could i do that?
02:29 <****> and join it onto one long line?
02:30 <****> well no i just want to yank so i can paste it elsewhere
02:30 <****> check out :help ]p
02:30 <****> :%s/\s+//g, copy, undo?
02:30 <****> I think that might be what you're getting at
02:31 <****> ok thanks
02:50 <****> how do i substitute a character for a newline
02:50 <****> when i try s/a/\n/ i get a ^@ where the newline should be
02:53 <****> wepy \n for match \r for replace
02:53 <****> ah
02:53 <****> hehe
02:53 <****> thanks
03:04 <****> do you know the syntax for substitution to do something like perl regex..
03:05 <****> like s/funcname([^)]+)/funcname(poo)
03:05 <****> or perhaps a non greedy .* would word
03:05 <****> would work
03:05 <****> non-greedy .* is .\{-}
03:06 <****> woa weird looking
03:06 <****> also, + needs a backslash too
03:06 <****> s/funcname([^)]\+)/funcname(poo)
03:06 <****> aah
03:07 <****> at least on the default magic settings
03:07 <****> is there help documentation for this regex stuff?
03:07 <****> there is documentation for everything in vim :)
03:07 <****> :h /\{
03:08 <****> there is a page somewhere comparing perl and vim regexp
03:08 <****> heh
03:09 <****> helpgrep perl
03:09 <****> might do it
03:09 <****> hah
03:09 <****> cool thanks
03:09 <****> i had another werid question.. dang forgot
03:09 <****> ah yes
03:10 <****> i suck at opening new frames/splits... so sometimes i want to yank lines from one file.. then open another file and paste them..
03:10 <****> but it doesn't seem to work unless i quit the file i yank from (minimizing won't work)
03:10 <****> is there a smarter way to do this that's easy to remember?
03:11 <****> separate vim windows?
03:11 <****> doesn't seem to work..
03:11 <****> or are you opening another file on the same window?
03:11 <****> another file
03:12 <****> so you yank, :e another, and paste?
Total 6 pages. You are browsing page 1/6.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
