Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

How to source all vim files in directory -


i have split .vimrc several files , placed them ~/vimfiles/vimrc.d/.

currently source each file in directory using exact name:

source ~/vimfiles/vimrc.d/file1.vim source ~/vimfiles/vimrc.d/file2.vim 

etc.

how make loop thourgh files in directory have such loop in .vimrc:

for file in ~/vimfiles/vimrc.d/*.vim    source file enfor 

as mb14 has said, if put them in ~/.vim/plugin sourced automatically. information, however, if want source of files in vimrc.d directory, (requires relatively recent vim):

for f in split(glob('~/vimfiles/vimrc.d/*.vim'), '\n')     exe 'source' f endfor 

you may interested in autoload mechanism, described in :help 41.15: if you're defining lot of functions, can make start-up bit quicker functions loaded first time they're used.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -