run make! from subdirs

2007-02-20 Thread Ilia N Ternovich
Hi!

Someone noticed that if I add this line into .vimrc:
autocmd BufEnter * :cd %:p:h

I'll be able to run :make and vim will automatically look at the directory
where currently opened file is located for Makefile.

But if I have directory structure like this:

[d]ProjectDir
  main.cpp
  Makefile
  [dir]SrcDir1
 file1.cpp
  [dir]SrcDir2
 file2.cpp

this command do not work. Makefile is located in root ProjectDir and if I
open for example file1.cpp from SrcDir1, vim can't locate Makefile and I
HAVE TO SWITCH TO ANOTHER BUFFER which contains some source from
ProjectDir in order to compile program...

Is there any opportunity to solve this situation. I have to recompile
project very often while debug sessions, and there is really huge dir
hierarchy...  

 -- 
God bless you!
Ilia

2.6.19-gentoo-r5 AMD Athlon(tm) XP 2600+

mailto: [EMAIL PROTECTED]
icq: 198233378

VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/
VegaTrek Forum Moderator:
http://vegastrike.sourceforge.net/forums/viewforum.php?f=13

You know you're using the computer too much when: you almost every night
have a dream about an neverending emerge, and you dont have a clue about
what's beeing emerged. -- geniux

$gpg --keyserver cryptonomicon.mit.edu --search-keys tillias



:copen annoying trouble

2007-02-05 Thread Ilia N Ternovich
Hi!

When I work with many buffers inside vim and suddenly need to :copen
 :make project, vim opens buffer in which warning or error is detected.

This is very annoying, since I have to switch from pouped-up buffer where
error or warning is detected to last working one.

Is it possible to switch off autoswitching to buffer where warning or
error is detected? 

-- 
God bless you!
Ilia

2.6.18-gentoo-r6 AMD Athlon(tm) XP 2600+

mailto: [EMAIL PROTECTED]
icq: 198233378

VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/
VegaTrek Forum Moderator:
http://vegastrike.sourceforge.net/forums/viewforum.php?f=13

You know you're using the computer too much when: beautiful women start
looking as good a penguins do... -- jcmorris

$gpg --keyserver cryptonomicon.mit.edu --search-keys tillias



last line view in gvim

2007-01-13 Thread Ilia N Ternovich
Hi all!

Is there any opportunity to watch only for last 2-3 lines in vim buffer
while watching for some big output?

This means that when I create some buffer in vim, then run in it some
process, that produces big output ( for example gdb debugger ) I want to
see only last lines produced this process...

It is very annoying to debug something and always switch into another
buffer, then pressing C-End key, then switching to main buffer, making
one step with gdb and so on.

-- 
God bless you!
Ilia

2.6.18-gentoo-r4 AMD Athlon(tm) XP 2600+

mailto: [EMAIL PROTECTED]
icq: 198233378

VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/
VegaTrek Forum Moderator:
http://vegastrike.sourceforge.net/forums/viewforum.php?f=13

You know you are a geek when: you emerge this great package called
fortune-mod-gentoo-forums -- squinky86

$gpg --keyserver cryptonomicon.mit.edu --search-keys tillias



recent.vim plugin

2007-01-09 Thread Ilia N Ternovich
Hi all!

I'm trying to make recent.vim plguin working with vim-7.0
There is some kind of problem with mapping keys inside plugin:

function! OptionFiles()
let file = bufname(%)
if bufname()==recent_files
map Enter gf
set number
set noswapfile
else
set nonumber
set swapfile
   if hasmapto('gf')
unmap gf
   endif
endif
endfunction

command Recent edit ~/.vim/recent_files
autocmd BufEnter * :call OptionFiles()

I wonder why this function doesn't map Enter key to gf combination, when
I start vim... There is succesfully created recent_files buffer... But
keybinding doesn't work :(

Can anybody help me with this question

-- 
God bless you!
Ilia

2.6.18-gentoo-r4 AMD Athlon(tm) XP 2600+

mailto: [EMAIL PROTECTED]
icq: 198233378

VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/
VegaTrek Forum Moderator:
http://vegastrike.sourceforge.net/forums/viewforum.php?f=13

You know you're using the computer too much when: you are trying to fetch
the cup of coffee on your desk with the mouse pointer. -- jwj

$gpg --keyserver cryptonomicon.mit.edu --search-keys tillias



recent.vim plugin

2007-01-09 Thread Ilia N Ternovich
Hi all!

I'm trying to make recent.vim plguin working with vim-7.0
There is some kind of problem with mapping keys inside plugin:

function! OptionFiles()
let file = bufname(%)
if bufname()==recent_files
map Enter gf
set number
set noswapfile
else
set nonumber
set swapfile
   if hasmapto('gf')
unmap gf
   endif
endif
endfunction

command Recent edit ~/.vim/recent_files
autocmd BufEnter * :call OptionFiles()

I wonder why this function doesn't map Enter key to gf combination, when
I start vim... There is succesfully created recent_files buffer... But
keybinding doesn't work :(

Can anybody help me with this question

-- 
God bless you!
Ilia

2.6.18-gentoo-r4 AMD Athlon(tm) XP 2600+

mailto: [EMAIL PROTECTED]
icq: 198233378

VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/
VegaTrek Forum Moderator:
http://vegastrike.sourceforge.net/forums/viewforum.php?f=13

Q: What is more fun than stapling kittens to the wall?

A: Tearing them off!

-- Thalion

$gpg --keyserver cryptonomicon.mit.edu --search-keys tillias