Get the File name with out file extension in VIM function.
Posted
by tr-sugumar
on Stack Overflow
See other posts from Stack Overflow
or by tr-sugumar
Published on 2010-04-09T07:52:52Z
Indexed on
2010/04/09
8:13 UTC
Read the original article
Hit count: 202
vim
I want to get the fine name with out the file extension in VIM.
I wrote the following functions in my .vimrc file for compile and run the Java program.
:function! JAVA_RUN()
:!javac %^M
:endfunction
map <F3> :execute JAVA_RUN()<CR> :source $HOME/.vimrc<CR>
In side the function how can I get the file name with out the extension.
© Stack Overflow or respective owner